/**
* Template Name: Medilab
* Template URL: https://bootstrapmade.com/medilab-free-medical-bootstrap-theme/
* Updated: Aug 07 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --heading-font: "Inter",  sans-serif;
  --nav-font: "Inter",  sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #0b0f1a; /* Fondo industrial oscuro */
  --default-color: #cfd6e4; /* Texto base claro */
  --heading-color: #e7ecf7; /* Títulos más claros */
  --accent-color: #FFC107; /* CTA amarillo premium */
  --surface-color: #111827; /* Superficies (cards, cajas) */
  --contrast-color: #0b0f1a; /* Texto sobre botones claros/amarillos */
  /* Brand */
  --brand-blue: #0F5BAB;
  --brand-green: #28A745;
  --brand-yellow: #FFC107;
  /* Modern accents */
  --accent-2: #1a9b7a;
  --elevation-1: 0 8px 24px rgba(0,0,0,.08);
  --elevation-2: 0 16px 40px rgba(0,0,0,.12);
  --glass-bg: rgba(255,255,255,.7);
  --glass-border: rgba(255,255,255,.35);
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #e7ecf7;  /* Links de navegación claros */
  --nav-hover-color: #FFC107; /* Hover activo en nav */
  --nav-mobile-background-color: #111827; /* Menú móvil oscuro */
  --nav-dropdown-background-color: #111827; /* Dropdown oscuro */
  --nav-dropdown-color: #cfd6e4; /* Texto dropdown claro */
  --nav-dropdown-hover-color: #FFC107; /* Hover dropdown */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f1f7fc;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* Brand sitename */
.sitename {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Arial', sans-serif;
  letter-spacing: 1px;
}
.sitename .color1 { color: var(--heading-color); }
.sitename .color2 { color: var(--heading-color); }
.sitename .color3 { color: var(--heading-color); }
/* Improve visibility on dark header */
.sitename { color: var(--heading-color); text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.sitename span { color: inherit; }
.sitename:hover span { color: #ffffff; }
/* Fine underline border */
.sitename{ position:relative; }
.sitename::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  margin: 0 auto;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  border-radius: 2px;
  transition: width .25s ease;
}
.sitename:hover::before{ width: 100%; }

/* Sitename enhanced effect */
.sitename {
  position: relative;
  display: inline-block;
}
.sitename::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.65) 30%, transparent 60%);
  transform: translateX(-120%);
  pointer-events: none;
}
.sitename.sheen::after {
  animation: sitename-sheen 1.2s ease;
}
@keyframes sitename-sheen {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
.sitename:hover { filter: drop-shadow(0 4px 12px rgba(255, 193, 7, .25)); }

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Pulsating Play Button
------------------------------*/
.pulsating-play-btn {
  width: 94px;
  height: 94px;
  background: radial-gradient(var(--accent-color) 50%, color-mix(in srgb, var(--accent-color), transparent 75%) 52%);
  border-radius: 50%;
  display: block;
  position: relative;
  overflow: hidden;
}

.pulsating-play-btn:before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  animation-delay: 0s;
  animation: pulsate-play-btn 2s;
  animation-direction: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: steps;
  opacity: 1;
  border-radius: 50%;
  border: 5px solid color-mix(in srgb, var(--accent-color), transparent 30%);
  top: -15%;
  left: -15%;
  background: rgba(198, 16, 0, 0);
}

.pulsating-play-btn:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 100;
  transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.pulsating-play-btn:hover:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border: none;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 200;
  animation: none;
  border-radius: 0;
}

.pulsating-play-btn:hover:after {
  border-left: 15px solid var(--accent-color);
  transform: scale(20);
}

@keyframes pulsate-play-btn {
  0% {
    transform: scale(0.6, 0.6);
    opacity: 1;
  }

  100% {
    transform: scale(1, 1);
    opacity: 0;
  }
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Progress Bar
--------------------------------------------------------------*/
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), color-mix(in srgb, var(--accent-color), white 30%));
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 997;
  background-color: var(--background-color);
}

/* Topbar prettier styling */
.header .topbar {
  background: linear-gradient(180deg, rgba(13,21,38,.95) 0%, rgba(13,21,38,.85) 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--contrast-color), transparent 90%);
  position: relative;
}
.header .topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent-color), white 15%), transparent);
  opacity: .6;
}

.header .topbar .contact-info i {
  font-style: normal;
  color: var(--contrast-color);
}

/* Contact pill hover + pulse */
.header .topbar .contact-info i a,
.header .topbar .contact-info i span {
  display: inline-block;
  color: var(--contrast-color);
  text-decoration: none;
  margin-left: 1px; /* separación respecto al ícono */
  padding: 4px 4px; /* padding simétrico, ya no reservamos espacio para el punto */
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-color), transparent 92%);
  border: none;
  transition: background .25s ease, transform .2s ease, box-shadow .25s ease;
}
.header .topbar .contact-info i { 
  position: relative;
  display: flex;
  align-items: center;
}
/* Los iconos de Bootstrap Icons se muestran normalmente sin puntos glow */

.header .topbar .contact-info i a:hover,
.header .topbar .contact-info i span:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,193,7,.15);
}

@media (max-width: 575px) {

  .header .topbar .contact-info i a,
  .header .topbar .contact-info i span {
    font-size: 13px;
  }
}

.header .topbar .contact-info i a {
  line-height: 0;
  transition: 0.3s;
}

.header .topbar .contact-info i a:hover {
  color: var(--contrast-color);
  text-decoration: underline;
}

.header .topbar .social-links a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface-color), transparent 30%);
  border: 1px solid transparent;
  background-image: linear-gradient(color-mix(in srgb, var(--surface-color), transparent 30%), color-mix(in srgb, var(--surface-color), transparent 30%)),
                    linear-gradient(120deg, color-mix(in srgb, var(--accent-color), white 10%), color-mix(in srgb, var(--accent-color), transparent 60%));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.header .topbar .social-links a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  box-shadow: 0 8px 22px rgba(255,193,7,.28);
}

.header .branding {
  min-height: 60px;
  padding: 10px 0;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
  background: #ffffff;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  padding: 4px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .cta-btn,
.header .cta-btn:focus {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 14px;
  padding: 10px 24px;
  margin: 0 0 0 30px;
  border-radius: 12px;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.header .cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color), white 15%), color-mix(in srgb, var(--accent-color), transparent 10%));
  opacity: 0;
  transition: opacity .3s ease;
}

.header .cta-btn:hover::before {
  opacity: 1;
}

.header .cta-btn:hover,
.header .cta-btn:focus:hover {
  color: var(--contrast-color);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--glow-accent);
}

.header .cta-btn:active {
  transform: translateY(0) scale(.98);
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .cta-btn {
    order: 2;
    margin: 0 15px 0 0;
    padding: 6px 15px;
  }

  .header .navmenu {
    order: 3;
  }
}

.scrolled .header {
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
  background-color: color-mix(in srgb, var(--background-color), black 5%);
  backdrop-filter: blur(8px);
}

.scrolled .header.mobile-nav-active,
.mobile-nav-active .header {
  z-index: 9998;
}

.scrolled .header .topbar {
  height: 0;
  visibility: hidden;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu>ul>li {
    white-space: nowrap;
    padding: 15px 14px;
  }

  .navmenu>ul>li:last-child {
    padding-right: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    font-size: 15px;
    padding: 0 2px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu>ul>li>a:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--nav-hover-color);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
  }

  .navmenu a:hover:before,
  .navmenu li:hover>a:before,
  .navmenu .active:before {
    visibility: visible;
    width: 100%;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }
  .navmenu a.active:before {
    visibility: visible;
    width: 100%;
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Mobile Navigation */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 100001;
    position: relative;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
    position: relative;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff !important;
    position: fixed !important;
    font-size: 32px;
    top: 15px !important;
    right: 15px !important;
    margin-right: 0;
    z-index: 100002 !important;
  }

  .mobile-nav-active .navmenu {
    position: fixed !important;
    overflow: hidden !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(11, 15, 26, 0.98) !important;
    transition: all 0.3s ease !important;
    z-index: 100000 !important;
  }

  .mobile-nav-active .navmenu > ul {
    display: flex !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 60px !important;
    left: 20px !important;
    right: 20px !important;
    bottom: 20px !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    list-style: none !important;
    z-index: 100001 !important;
    overflow-y: auto !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
  }

  .mobile-nav-active .header {
    z-index: 99999 !important;
  }

  body.mobile-nav-active,
  body.scrolled.mobile-nav-active {
    overflow: hidden !important;
  }

  /* Ensure navmenu is always visible when active, regardless of scroll */
  body.mobile-nav-active #navmenu,
  body.scrolled.mobile-nav-active #navmenu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 100000 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.mobile-nav-active #navmenu > ul,
  body.scrolled.mobile-nav-active #navmenu > ul {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--surface-color);
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  font-size: 14px;
  position: relative;
}

.footer .footer-top {
  padding-top: 50px;
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-about .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-right: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

.footer .social-links a i {
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  border-width: 2px;
  transform: translateY(-3px);
  box-shadow: var(--glow-accent);
  background: transparent;
}

.footer .social-links a:hover i {
  transform: scale(1.15);
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  display: inline-block;
  line-height: 1;
  transition: all 0.25s ease;
  position: relative;
  padding-left: 0;
}

.footer .footer-links ul a::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  width: 4px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 50%;
  transition: transform 0.25s ease, left 0.25s ease;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
  padding-left: 12px;
}

.footer .footer-links ul a:hover::before {
  left: 0;
  transform: translateY(-50%) scaleX(1);
}

.footer .footer-contact p {
  margin-bottom: 5px;
}

.footer .copyright {
  padding-top: 25px;
  padding-bottom: 25px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 8px;
  font-size: 13px;
}

/* CTA polish in footer */
.footer .cta-btn {
  border-radius: 999px;
  box-shadow: var(--elevation-1);
  background: var(--accent-color) !important;
  color: var(--contrast-color) !important;
  border: none;
  padding: 12px 28px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer .cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color), white 15%), color-mix(in srgb, var(--accent-color), transparent 10%));
  opacity: 0;
  transition: opacity .3s ease;
}
.footer .cta-btn:hover::before { opacity: 1; }
.footer .cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--glow-accent);
}
.footer .cta-btn i {
  transition: transform .3s ease;
  display: inline-block;
}
.footer .cta-btn:hover i {
  transform: translateX(4px);
}
.footer .cta-btn:active {
  transform: translateY(0) scale(.98);
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: linear-gradient(180deg, var(--accent-color), color-mix(in srgb, var(--accent-color), var(--accent-2) 40%));
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
  box-shadow: var(--elevation-1);
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-color), white 10%), color-mix(in srgb, var(--accent-color), var(--accent-2) 30%));
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/* Dark mode baseline (auto) */
@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #0b0d12;
    --surface-color: #131722;
    --default-color: #cfd6e4;
    --heading-color: #e7ecf7;
    --contrast-color: #ffffff;
  }
  .header {
    background: linear-gradient(180deg, rgba(19,23,34,.85) 0%, rgba(19,23,34,.6) 100%);
    border-bottom-color: rgba(255,255,255,.08);
  }
  .scroll-top { box-shadow: none; }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  position: relative;
}

.page-title .heading {
  padding: 80px 0;
  border-top: 1px solid color-mix(in srgb, var(--accent-color), transparent 80%);
}

.page-title .heading h1 {
  font-size: 38px;
  font-weight: 700;
}

.page-title nav {
  background-color: color-mix(in srgb, var(--accent-color), transparent 94%);
  padding: 20px 0;
}

.page-title nav ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.page-title nav ol li+li {
  padding-left: 10px;
}

.page-title nav ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 72px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 60px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:before {
  content: "";
  position: absolute;
  display: block;
  width: 160px;
  height: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 60%);
  left: 0;
  right: 0;
  bottom: 1px;
  margin: auto;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: calc(100vh - 112px);
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.25));
  z-index: 2;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  border-radius: var(--radius-lg);
}

.hero .container {
  z-index: 3;
}

.hero .welcome h2 {
  margin: 0;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: .2px;
  color: #fff;
}

.hero .welcome p {
  font-size: 22px;
  margin: 0;
  color: #eef1f6;
}

.hero .content {
  margin-top: 40px;
}

.hero .content .why-box {
  color: var(--contrast-color);
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), black 10%));
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(255, 193, 7, 0.25);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hero .content .why-box::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero .content .why-box:hover::before {
  opacity: 1;
}

.hero .content .why-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(255, 193, 7, 0.35);
}

.hero .content .why-box h3 {
  color: var(--contrast-color);
  font-weight: 700;
  font-size: 34px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.hero .content .why-box ul {
  position: relative;
  z-index: 1;
}

.hero .content .why-box ul li {
  margin-bottom: 12px;
  padding-left: 8px;
  line-height: 1.6;
}

.hero .content .why-box p {
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.hero .content .why-box .more-btn {
  color: var(--contrast-color);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
  font-weight: 600;
}

.hero .content .why-box .more-btn i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.hero .content .why-box .more-btn:hover {
  background: var(--contrast-color);
  color: var(--accent-color);
  transform: translateX(5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero .content .why-box .more-btn:hover i {
  transform: translateX(4px);
}

.hero .content .icon-box {
  text-align: center;
  border-radius: 16px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
  width: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hero .content .icon-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.05), transparent);
  transition: left 0.6s ease;
}

.hero .content .icon-box:hover::before {
  left: 100%;
}

.hero .content .icon-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(255, 193, 7, 0.2);
  border-color: var(--accent-color);
}

.hero .content .icon-box img {
  max-width: 50px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  transition: transform 0.4s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(255, 193, 7, 0.3));
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-color), transparent 10%);
  padding: 6px;
}

.hero .content .icon-box:hover img {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 24px rgba(255, 193, 7, 0.25);
  border-color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
}

.hero .content .icon-box i {
  font-size: 40px;
  color: var(--accent-color);
  transition: transform 0.4s ease;
}

.hero .content .icon-box:hover i {
  transform: scale(1.15);
}

.hero .content .icon-box h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 10px 0 20px 0;
  color: var(--heading-color);
  transition: color 0.3s ease;
}

.hero .content .icon-box:hover h4 {
  color: var(--accent-color);
}

.hero .content .icon-box p {
  font-size: 15px;
  color: var(--default-color);
  line-height: 1.7;
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h3 {
  font-size: 2rem;
  font-weight: 700;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  display: flex;
  align-items: flex-start;
  margin-top: 40px;
}

.about .content ul i {
  flex-shrink: 0;
  font-size: 48px;
  color: var(--accent-color);
  margin-right: 20px;
}

.about .content ul h5 {
  font-size: 18px;
  font-weight: 700;
}

.about .content ul p {
  font-size: 15px;
}

.about .content p:last-child {
  margin-bottom: 0;
}

.about img.img-fluid {
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.about img.img-fluid:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(255, 193, 7, 0.2);
  border-color: var(--accent-color);
}

.about .pulsating-play-btn {
  position: absolute;
  left: calc(50% - 47px);
  top: calc(50% - 47px);
}

/* Video Modal Styles */
.video-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.video-modal.show {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.video-content {
  position: relative;
  margin: 5% auto;
  padding: 0;
  width: 90%;
  max-width: 900px;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.video-content iframe {
  width: 100%;
  height: 506px;
  display: block;
  border: none;
  border-radius: 12px;
}

.close-video {
  position: absolute;
  top: 12px;
  right: 16px;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  line-height: 1;
}

.close-video:hover {
  background: rgba(255, 0, 0, 0.8);
  transform: rotate(90deg) scale(1.1);
}

@media (max-width: 768px) {
  .video-content {
    width: 95%;
    margin: 10% auto;
  }
  
  .video-content iframe {
    height: 250px;
  }
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats i {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  box-shadow: 0px 2px 25px rgba(0, 0, 0, 0.1);
  width: 54px;
  height: 54px;
  font-size: 24px;
  border-radius: 50px;
  border: 2px solid var(--background-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.stats .stats-item {
  background-color: var(--surface-color);
  margin-top: -27px;
  padding: 30px 30px 25px 30px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0px 2px 35px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  z-index: 0;
}

.stats .stats-item span {
  font-size: 32px;
  display: block;
  margin: 10px 0;
  font-weight: 700;
  color: var(--heading-color);
}

.stats .stats-item p {
  padding: 0;
  margin: 0;
  font-family: var(--heading-font);
  font-size: 16px;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  background-color: var(--surface-color);
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  padding: 80px 20px;
  transition: all ease-in-out 0.3s;
  height: 100%;
}

.services .service-item .icon {
  margin: 0 auto;
  width: 64px;
  height: 64px;
  background: var(--accent-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: 0.3s;
  transform-style: preserve-3d;
}

.services .service-item .icon i {
  color: var(--contrast-color);
  font-size: 28px;
  transition: ease-in-out 0.3s;
}

.services .service-item .icon::before {
  position: absolute;
  content: "";
  left: -8px;
  top: -8px;
  height: 100%;
  width: 100%;
  background: color-mix(in srgb, var(--accent-color), transparent 80%);
  border-radius: 5px;
  transition: all 0.3s ease-out 0s;
  transform: translateZ(-1px);
}

.services .service-item h3 {
  font-weight: 700;
  margin: 10px 0 15px 0;
  font-size: 22px;
}

.services .service-item p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.services .service-item:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.services .service-item:hover .icon {
  background: var(--surface-color);
}

.services .service-item:hover .icon i {
  color: var(--accent-color);
}

.services .service-item:hover .icon::before {
  background: color-mix(in srgb, var(--background-color), transparent 70%);
}

.services .service-item:hover h3,
.services .service-item:hover p {
  color: var(--contrast-color);
}

/*--------------------------------------------------------------
# Appointment Section
--------------------------------------------------------------*/
.appointment .php-email-form {
  width: 100%;
}

.appointment .php-email-form .form-group {
  padding-bottom: 8px;
}

.appointment .php-email-form input,
.appointment .php-email-form textarea,
.appointment .php-email-form select {
  color: var(--default-color);
  background-color: transparent;
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  padding: 10px !important;
}

.appointment .php-email-form input:focus,
.appointment .php-email-form textarea:focus,
.appointment .php-email-form select:focus {
  border-color: var(--accent-color);
}

.appointment .php-email-form input::placeholder,
.appointment .php-email-form textarea::placeholder,
.appointment .php-email-form select::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.appointment .php-email-form input,
.appointment .php-email-form select {
  height: 44px;
}

.appointment .php-email-form textarea {
  padding: 10px 12px;
}

.appointment .php-email-form button[type=submit] {
  background: var(--accent-color);
  border: 0;
  padding: 10px 35px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
}

.appointment .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

/*--------------------------------------------------------------
# Departments Section
--------------------------------------------------------------*/
.departments {
  overflow: hidden;
}

.departments .nav-tabs {
  border: 0;
}

.departments .nav-link {
  border: 0;
  padding: 14px 20px 14px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--default-color);
  border-radius: 0;
  border-right: 3px solid color-mix(in srgb, var(--default-color), transparent 90%);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  background: transparent;
}

.departments .nav-link::before {
  content: "";
  position: absolute;
  right: -3px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-color);
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.departments .nav-link:hover {
  color: var(--accent-color);
  padding-left: 8px;
}

.departments .nav-link:hover::before {
  transform: scaleY(1);
}

.departments .nav-link.active {
  color: var(--accent-color);
  padding-left: 12px;
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
}

.departments .nav-link.active::before {
  transform: scaleY(1);
}

.departments .tab-pane {
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.departments .tab-pane.active {
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.departments .details h3 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 20px;
}

.departments .details p {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.departments .details p:last-child {
  margin-bottom: 0;
}

.departments img.img-fluid {
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.departments img.img-fluid:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(255, 193, 7, 0.2);
  border-color: var(--accent-color);
}

.departments .cta-btn {
  border-radius: 999px;
  box-shadow: var(--elevation-1);
  background: var(--accent-color) !important;
  color: var(--contrast-color) !important;
  border: none;
  padding: 12px 28px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  z-index: 1;
}

.departments .cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color), white 15%), color-mix(in srgb, var(--accent-color), transparent 10%));
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 0;
}

.departments .cta-btn > * {
  position: relative;
  z-index: 2;
}

.departments .cta-btn:hover::before {
  opacity: 1;
}

.departments .cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--glow-accent);
}

.departments .cta-btn i {
  transition: transform .3s ease;
  display: inline-block;
}

.departments .cta-btn:hover i {
  transform: translateX(4px);
}

.departments .cta-btn:active {
  transform: translateY(0) scale(.98);
}

@media (max-width: 992px) {
  .departments .nav-link {
    border: 0;
    padding: 15px;
  }

  .departments .nav-link.active {
    color: var(--accent-color);
    background: var(--accent-color);
  }
}

/*--------------------------------------------------------------
# Doctors Section
--------------------------------------------------------------*/
.doctors .team-member {
  background-color: var(--surface-color);
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  border-radius: 5px;
  transition: 0.5s;
  padding: 30px;
  height: 100%;
}

@media (max-width: 468px) {
  .doctors .team-member {
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
  }
}

.doctors .team-member .pic {
  overflow: hidden;
  width: 150px;
  border-radius: 50%;
  flex-shrink: 0;
}

.doctors .team-member .pic img {
  transition: ease-in-out 0.3s;
}

.doctors .team-member:hover {
  transform: translateY(-10px);
}

.doctors .team-member .member-info {
  padding-left: 30px;
}

@media (max-width: 468px) {
  .doctors .team-member .member-info {
    padding: 30px 0 0 0;
    text-align: center;
  }
}

.doctors .team-member h4 {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 20px;
}

.doctors .team-member span {
  display: block;
  font-size: 15px;
  padding-bottom: 10px;
  position: relative;
  font-weight: 500;
}

.doctors .team-member span::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 85%);
  bottom: 0;
  left: 0;
}

@media (max-width: 468px) {
  .doctors .team-member span::after {
    left: calc(50% - 25px);
  }
}

.doctors .team-member p {
  margin: 10px 0 0 0;
  font-size: 14px;
}

.doctors .team-member .social {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: start;
  width: 100%;
}

@media (max-width: 468px) {
  .doctors .team-member .social {
    justify-content: center;
  }
}

.doctors .team-member .social a {
  background: color-mix(in srgb, var(--default-color), transparent 94%);
  transition: ease-in-out 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  width: 36px;
  height: 36px;
}

.doctors .team-member .social a i {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-size: 16px;
  margin: 0 2px;
}

.doctors .team-member .social a:hover {
  background: var(--accent-color);
}

.doctors .team-member .social a:hover i {
  color: var(--contrast-color);
}

.doctors .team-member .social a+a {
  margin-left: 8px;
}

/*--------------------------------------------------------------
# Faq Section
--------------------------------------------------------------*/
.faq .faq-container .faq-item {
  background-color: var(--surface-color);
  position: relative;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 75%);
  border-radius: 5px;
  overflow: hidden;
}

.faq .faq-container .faq-item:last-child {
  margin-bottom: 0;
}

.faq .faq-container .faq-item h3 {
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  margin: 0 30px 0 0;
  transition: 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.faq .faq-container .faq-item h3 .num {
  color: var(--accent-color);
  padding-right: 5px;
}

.faq .faq-container .faq-item h3:hover {
  color: var(--accent-color);
}

.faq .faq-container .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.3s ease-in-out;
  visibility: hidden;
  opacity: 0;
}

.faq .faq-container .faq-item .faq-content p {
  margin-bottom: 0;
  overflow: hidden;
}

.faq .faq-container .faq-item .faq-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 16px;
  line-height: 0;
  transition: 0.3s;
  cursor: pointer;
}

.faq .faq-container .faq-item .faq-toggle:hover {
  color: var(--accent-color);
}

.faq .faq-container .faq-active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

.faq .faq-container .faq-active h3,
.faq .faq-container .faq-active h3:hover {
  color: var(--contrast-color);
}

.faq .faq-container .faq-active .faq-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  padding-top: 10px;
}

.faq .faq-container .faq-active .faq-toggle {
  transform: rotate(90deg);
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .info h3 {
  font-weight: 700;
  font-size: 32px;
  color: var(--heading-color);
  margin-bottom: 20px;
}

.testimonials .info p {
  color: var(--default-color);
  line-height: 1.8;
  font-size: 16px;
}

.testimonials .swiper {
  box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.05);
  background-color: var(--surface-color);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  box-sizing: content-box;
  min-height: 200px;
  position: relative;
  margin: 30px;
  padding: 30px;
  background: var(--surface-color);
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonials .testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(255, 193, 7, 0.15);
  border-color: var(--accent-color);
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid var(--accent-color);
  margin-right: 15px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonials .testimonial-item:hover .testimonial-img {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.testimonials .testimonial-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 10px 0 5px 0;
  color: var(--heading-color);
  transition: color 0.3s ease;
}

.testimonials .testimonial-item:hover h3 {
  color: var(--accent-color);
}

.testimonials .testimonial-item h4 {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 14px;
  margin: 0;
  font-weight: 500;
  transition: color 0.3s ease;
}

.testimonials .testimonial-item:hover h4 {
  color: var(--default-color);
}

.testimonials .testimonial-item .stars {
  margin: 10px 0;
  display: flex;
  gap: 2px;
}

.testimonials .testimonial-item .stars i {
  color: #ffc107;
  margin: 0;
  font-size: 16px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.3));
}

.testimonials .testimonial-item:hover .stars i {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 2px 6px rgba(255, 193, 7, 0.5));
}

.testimonials .testimonial-item .stars i:nth-child(odd) {
  animation: starPulse 2s ease-in-out infinite;
}

.testimonials .testimonial-item .stars i:nth-child(even) {
  animation: starPulse 2s ease-in-out 0.5s infinite;
}

@keyframes starPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 70%);
  font-size: 32px;
  line-height: 0;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.2));
}

.testimonials .testimonial-item:hover .quote-icon-left,
.testimonials .testimonial-item:hover .quote-icon-right {
  color: var(--accent-color);
  filter: drop-shadow(0 2px 6px rgba(255, 193, 7, 0.4));
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item:hover .quote-icon-left {
  transform: translateX(-3px);
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item:hover .quote-icon-right {
  transform: scale(-1, -1) translateX(3px);
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 15px auto 15px auto;
  color: var(--default-color);
  line-height: 1.8;
  font-size: 15px;
  position: relative;
}

.testimonials .testimonial-item p span {
  display: block;
  padding: 10px 0;
  transition: color 0.3s ease;
}

.testimonials .testimonial-item:hover p span {
  color: var(--heading-color);
}

.testimonials .swiper-wrapper {
  height: auto;
}

.testimonials .swiper-pagination {
  margin-top: 30px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
  border: 2px solid transparent;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.testimonials .swiper-pagination .swiper-pagination-bullet:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 60%);
  transform: scale(1.2);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
  width: 24px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
  transform: scale(1.1);
}

@media (max-width: 767px) {

  .testimonials .testimonials-carousel,
  .testimonials .testimonials-slider {
    overflow: hidden;
  }

  .testimonials .testimonial-item {
    margin: 15px;
  }
}

/*--------------------------------------------------------------
# Gallery Section
--------------------------------------------------------------*/
.gallery .gallery-item {
  overflow: hidden;
  border-right: 3px solid var(--background-color);
  border-bottom: 3px solid var(--background-color);
}

.gallery .gallery-item img {
  transition: all ease-in-out 0.4s;
}

.gallery .gallery-item:hover img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-item+.info-item {
  margin-top: 40px;
}

.contact .info-item i {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .php-email-form {
  height: 100%;
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: color-mix(in srgb, var(--background-color), transparent 50%);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 36px;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/
.starter-section {
  /* Add your styles here */
}


/*VIDEO*/


/* About CTA Button */
.about .cta-btn {
  border-radius: 999px;
  box-shadow: var(--elevation-1);
  background: var(--accent-color) !important;
  color: var(--contrast-color) !important;
  border: none;
  padding: 12px 28px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.about .cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color), white 15%), color-mix(in srgb, var(--accent-color), transparent 10%));
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 0;
}

.about .cta-btn > * {
  position: relative;
  z-index: 2;
}

.about .cta-btn:hover::before { opacity: 1; }
.about .cta-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--glow-accent); }
.about .cta-btn:active { transform: translateY(0) scale(.98); }

/* About Outline CTA */
.about .cta-outline {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about .cta-outline i { transition: transform .3s ease; }
.about .cta-outline:hover i { transform: translateX(4px); }

/* Servicios: icon container más redondeado */
.services .service-item .icon {
  border-radius: var(--radius-md);
}

/* About image advanced hover */
.about .position-relative {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.about .position-relative::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-sheen);
  transform: translateX(-100%);
  transition: transform .8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.about .position-relative:hover::after {
  transform: translateX(100%);
}

.about .position-relative:hover img.img-fluid {
  transform: scale(1.03);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28), 0 0 0 1px color-mix(in srgb, var(--accent-color), transparent 70%);
}

/* Gallery modern styles */
.gallery .gallery-modern {
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  height: 400px;
  display: flex;
  flex-direction: column;
  background-color: var(--surface-color);
  position: relative;
}

.gallery .gallery-modern::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  transition: transform .8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.gallery .gallery-modern:hover::after { transform: translateX(100%); }

.gallery .gallery-modern:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.gallery .gallery-modern .gallery-image { flex: 1; overflow: hidden; border-radius: inherit; }

.gallery .gallery-modern .gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  border-radius: inherit;
}

.gallery .gallery-modern:hover .gallery-image img { transform: scale(1.05); }

.gallery .gallery-modern .gallery-info {
  background-color: transparent;
  padding: 15px;
  text-align: center;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery .gallery-modern .gallery-info h5 {
  font-size: 1.05rem;
  color: var(--heading-color);
  font-weight: 700;
  margin-bottom: 5px;
}

.gallery .gallery-modern .gallery-info p {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .gallery .gallery-modern { height: 340px; }
}

/* Gallery filters */
.gallery-filters .filter-btn {
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  color: var(--default-color);
  background: transparent;
  transition: all .25s ease;
}

.gallery-filters .filter-btn:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-1px);
}

.gallery-filters .filter-btn.active {
  color: var(--contrast-color);
  background: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 6px 16px rgba(255, 193, 7, 0.3);
}

/* Hide helper */
.gallery-col.is-hidden { display: none !important; }

/* Gallery filters - enhanced container */
.gallery-filters { background: color-mix(in srgb, var(--surface-color), transparent 8%); border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%); border-radius: 16px; padding: 10px 12px; backdrop-filter: blur(6px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); animation: filtersIn .5s ease both; }
@keyframes filtersIn { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }
.gallery-filters .filter-btn { position: relative; overflow: hidden; border-radius: 999px; padding: 10px 16px; border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%); color: var(--default-color); background: color-mix(in srgb, var(--surface-color), transparent 30%); transition: all .25s ease; }
.gallery-filters .filter-btn .count { margin-left: 6px; font-weight: 600; font-size: 12px; opacity: .8; }
.gallery-filters .filter-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%); transform: translateX(-120%); transition: transform .6s ease; }
.gallery-filters .filter-btn:hover::after { transform: translateX(120%); }
.gallery-filters .filter-btn:hover { color: var(--contrast-color); background: var(--accent-color); border-color: var(--accent-color); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255, 193, 7, 0.25); }
.gallery-filters .filter-btn.active, .gallery-filters .filter-btn[aria-pressed="true"] { color: var(--contrast-color); background: var(--accent-color); border-color: var(--accent-color); box-shadow: 0 8px 20px rgba(255, 193, 7, 0.35); }
.gallery-filters .filter-btn.active::before, .gallery-filters .filter-btn[aria-pressed="true"]::before { content: ""; position: absolute; left: 18px; right: 18px; bottom: 6px; height: 2px; background: var(--contrast-color); opacity: .55; border-radius: 2px; }
.gallery-filters .filter-btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent-color), white 20%); outline-offset: 2px; }

/* Gallery count styling */
#gallery-count { color: color-mix(in srgb, var(--default-color), transparent 20%); transition: opacity .25s ease, transform .25s ease; display: inline-block; }
#gallery-count.updating { opacity: 0; transform: translateY(-4px); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chip {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
  color: color-mix(in srgb, var(--accent-color), black 20%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 70%);
}

/* Before/After slider */
.ba-card { overflow: hidden; }
.ba-slider { position: relative; width: 100%; height: 100%; min-height: 240px; }
.ba-slider img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-after-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.ba-after { position: absolute; inset: 0; }
.ba-range { position: absolute; left: 0; right: 0; bottom: 10px; width: 80%; margin: 0 auto; left: 10%; appearance: none; height: 4px; background: color-mix(in srgb, var(--default-color), transparent 80%); border-radius: 999px; }
.ba-range::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-color); border: 2px solid var(--contrast-color); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.ba-handle { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent-color); left: 50%; transform: translateX(-1px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-color), transparent 60%); }
.ba-label { position: absolute; top: 10px; padding: 2px 8px; border-radius: 6px; font-size: 12px; background: rgba(0,0,0,.4); color: #fff; }
.ba-label.before { left: 10px; }
.ba-label.after { right: 10px; }

@media (max-width: 576px) {
  .ba-range { width: 88%; left: 6%; }
}

/* MVV section cards */
.mvv .mvv-card {
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.mvv .mvv-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-sheen);
  transform: translateX(-120%);
  transition: transform .8s ease;
  pointer-events: none;
}
.mvv .mvv-card:hover::after { transform: translateX(120%); }
.mvv .mvv-card:hover { transform: translateY(-4px); border-color: var(--accent-color); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.mvv .mvv-card .card-title { color: var(--heading-color); }
.mvv .mvv-card .card-text { color: color-mix(in srgb, var(--default-color), transparent 15%); }
.mvv .mvv-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(255,193,7,.25);
}
.mvv .mvv-icon i { color: var(--contrast-color); }

/* Timeline */
.timeline .timeline-track {
  position: relative;
  margin: 0 auto;
  max-width: 860px;
  padding: 10px 0;
}
.timeline .timeline-track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: color-mix(in srgb, var(--default-color), transparent 80%);
  transform: translateX(-1px);
}
.timeline .timeline-item {
  position: relative;
  width: 50%;
  padding: 16px 24px;
}
.timeline .timeline-item .content {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.timeline .timeline-item .dot {
  position: absolute;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 70%);
}
.timeline .timeline-item:nth-child(odd) { left: 0; }
.timeline .timeline-item:nth-child(odd) .dot { right: -5px; }
.timeline .timeline-item:nth-child(odd) .content { margin-right: 40px; }
.timeline .timeline-item:nth-child(even) { left: 50%; }
.timeline .timeline-item:nth-child(even) .dot { left: -5px; }
.timeline .timeline-item:nth-child(even) .content { margin-left: 40px; }

@media (max-width: 768px) {
  .timeline .timeline-track::before { left: 8px; }
  .timeline .timeline-item { width: 100%; left: 0 !important; padding-left: 28px; }
  .timeline .timeline-item .dot { left: 3px !important; right: auto !important; }
  .timeline .timeline-item .content { margin: 0 0 0 16px !important; }
}

/* Trust (Certifications & Clients) */
.trust .trust-card {
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  transition: transform var(--duration) var(--ease-standard), box-shadow var(--duration) var(--ease-standard), border-color var(--duration) var(--ease-standard);
}
.trust .trust-card i { color: var(--accent-color); font-size: 20px; }
.trust .trust-card span { color: var(--heading-color); font-weight: 600; }
.trust .trust-card:hover { transform: translateY(-2px); box-shadow: var(--elevation-2); border-color: var(--accent-color); }

.trust .logos-marquee { overflow: hidden; border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%); }
.trust .logos-marquee .track {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 12px 20px;
  animation: marquee 18s linear infinite;
}
.trust .logos-marquee img { height: 36px; width: auto; opacity: .85; filter: contrast(1.05); }
.trust .logos-marquee img:hover { opacity: 1; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Timeline embellishments */
.timeline .timeline-track::before { box-shadow: 0 0 0 1px color-mix(in srgb, var(--default-color), transparent 80%), 0 0 12px rgba(255,193,7,.08) inset; }
.timeline .timeline-item .dot { animation: dotPulse 2s ease-in-out infinite; }
@keyframes dotPulse { 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.25); } }

/* Marquee logos hover to color */
.trust .logos-marquee img { filter: grayscale(100%) contrast(1.05); opacity: .75; transition: filter .3s var(--ease-standard), opacity .3s var(--ease-standard), transform .3s var(--ease-standard); }
.trust .logos-marquee img:hover { filter: grayscale(0%); opacity: 1; transform: translateY(-2px); }

/*--------------------------------------------------------------
# Nosotros (MVV, Timeline, KPIs, Trust)
---------------------------------------------------------------*/
/* MVV elevated background with animated blob */
.mvv { position: relative; overflow: clip; }
.mvv::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(600px 600px at var(--mx,50%) var(--my,30%), rgba(255,193,7,.18), transparent 60%), radial-gradient(400px 400px at 70% 10%, rgba(14,165,233,.12), transparent 60%); filter: blur(30px); opacity: .8; animation: floatBlob 12s ease-in-out infinite alternate; pointer-events: none; }
@keyframes floatBlob { 0%{ transform: translateY(-10px) scale(1); } 100%{ transform: translateY(10px) scale(1.05); } }

/* MVV cards + sheen */
.mvv .mvv-card { background-color: var(--surface-color); border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; border-radius: 16px; overflow: hidden; position: relative; }
.mvv .mvv-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 100%); transform: translateX(-120%); transition: transform .8s ease; pointer-events: none; }
.mvv .mvv-card:hover::after { transform: translateX(120%); }
.mvv .mvv-card:hover { transform: translateY(-4px) scale(1.01); border-color: var(--accent-color); box-shadow: 0 16px 44px rgba(0,0,0,.20); }
.mvv .mvv-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--accent-color); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(255,193,7,.25); transition: transform .35s ease; }
.mvv .mvv-card:hover .mvv-icon { transform: translateY(-3px) rotate(-2deg); }
.mvv .mvv-icon i { color: var(--contrast-color); }

/* Section title underline animation */
.section-title h2 { position: relative; display: inline-block; padding-bottom: 8px; }
.section-title h2::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 3px; background: var(--accent-color); border-radius: 3px; transform: translateX(-50%); transition: width .5s ease; }
.section-title:hover h2::after { width: 60%; }

/* Magnetic + ripple button */
.mvv .btn { position: relative; overflow: hidden; transform: translateZ(0); transition: transform .2s ease; }
.mvv .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,193,7,.25); }
.mvv .btn::after { content: ""; position: absolute; width: 8px; height: 8px; background: rgba(255,255,255,.6); border-radius: 50%; transform: translate(-50%, -50%) scale(0); opacity: .8; pointer-events: none; }
.mvv .btn.rippling::after { animation: ripple .6s ease-out; }
@keyframes ripple { 0%{ transform: translate(var(--rx, -50%), var(--ry, -50%)) scale(0); opacity: .6;} 100%{ transform: translate(var(--rx, -50%), var(--ry, -50%)) scale(30); opacity: 0; } }

/* Timeline base */
.timeline .timeline-track { position: relative; margin: 0 auto; max-width: 860px; padding: 10px 0; }
.timeline .timeline-track::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: color-mix(in srgb, var(--default-color), transparent 80%); transform: translateX(-1px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--default-color), transparent 80%), 0 0 12px rgba(255,193,7,.08) inset; height: 0; transition: height 1.2s ease; }
.timeline .timeline-track.in-view::before { height: 100%; }
.timeline .timeline-item { position: relative; width: 50%; padding: 16px 24px; }
.timeline .timeline-item .content { background: var(--surface-color); border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%); border-radius: 16px; padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.12); opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .6s ease, box-shadow .3s ease; position: relative; }
.timeline .timeline-item:nth-child(odd) .content { transform: translateX(-24px); }
.timeline .timeline-item:nth-child(even) .content { transform: translateX(24px); }
.timeline .timeline-item.revealed .content { opacity: 1; transform: translateX(0) translateY(0); box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.timeline .timeline-item .dot { position: absolute; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 70%); animation: dotPulse 2s ease-in-out infinite; }
@keyframes dotPulse { 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.25); } }
.timeline .timeline-item:nth-child(odd) { left: 0; }
.timeline .timeline-item:nth-child(odd) .dot { right: -5px; }
.timeline .timeline-item:nth-child(odd) .content { margin-right: 40px; }
.timeline .timeline-item:nth-child(even) { left: 50%; }
.timeline .timeline-item:nth-child(even) .dot { left: -5px; }
.timeline .timeline-item:nth-child(even) .content { margin-left: 40px; }
.timeline .timeline-item .content::before { content: ""; position: absolute; top: 22px; height: 2px; background: color-mix(in srgb, var(--accent-color), transparent 30%); width: 0; transition: width .5s ease; }
.timeline .timeline-item:nth-child(odd) .content::before { right: -40px; }
.timeline .timeline-item:nth-child(even) .content::before { left: -40px; }
.timeline .timeline-item.revealed:nth-child(odd) .content::before { width: 40px; }
.timeline .timeline-item.revealed:nth-child(even) .content::before { width: 40px; }
.timeline .timeline-item .content:hover { box-shadow: 0 16px 40px rgba(255,193,7,.15); }
@media (max-width: 768px) {
  .timeline .timeline-track::before { left: 8px; }
  .timeline .timeline-item { width: 100%; left: 0 !important; padding-left: 28px; }
  .timeline .timeline-item .dot { left: 3px !important; right: auto !important; }
  .timeline .timeline-item .content { margin: 0 0 0 16px !important; }
}

/* KPIs */
#kpis .kpi-card { border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%); background: var(--surface-color); border-radius: 16px; padding: 16px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
#kpis .kpi-card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,.12); border-color: var(--accent-color); }
#kpis .kpi-value { font-size: 36px; font-weight: 800; color: var(--heading-color); line-height: 1; background: linear-gradient(90deg, #fff, #ffe08a, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; animation: shineText 3s linear infinite; text-shadow: 0 2px 16px rgba(255,193,7,.15); }
#kpis .kpi-label { font-size: 14px; color: color-mix(in srgb, var(--default-color), transparent 15%); }
@keyframes shineText { 0%{ background-position: -200% 50%; } 100%{ background-position: 200% 50%; } }

/* Trust */
.trust .trust-card { border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%); background: var(--surface-color); border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 10px; justify-content: center; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; transform: perspective(600px) rotateX(0deg) rotateY(0deg); }
.trust .trust-card i { color: var(--accent-color); font-size: 20px; }
.trust .trust-card span { color: var(--heading-color); font-weight: 600; }
.trust .trust-card:hover { transform: perspective(600px) rotateX(2deg) rotateY(-3deg); box-shadow: 0 16px 40px rgba(0,0,0,.12); border-color: var(--accent-color); }
.trust .logos-marquee { overflow: hidden; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%); }
.trust .logos-marquee .track { display: flex; gap: 40px; align-items: center; padding: 12px 20px; animation: marquee 18s linear infinite; }
.trust .logos-marquee img { height: 36px; width: auto; opacity: .75; filter: grayscale(100%) contrast(1.05); transition: filter .3s ease, opacity .3s ease, transform .3s ease; }
.trust .logos-marquee img:hover { opacity: 1; filter: grayscale(0%); transform: translateY(-2px); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* About image sheen effect */
.about .position-relative {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
.about .position-relative::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-120%);
  transition: transform .8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.about .position-relative:hover::after { transform: translateX(120%); }
.about .position-relative:hover img.img-fluid {
  transform: scale(1.03);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28), 0 0 0 1px color-mix(in srgb, var(--accent-color), transparent 70%);
}

/* Gallery reveal & tilt */
.gallery .gallery-col { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .6s ease; }
.gallery .gallery-col.revealed { opacity: 1; transform: translateY(0); }
.gallery .gallery-modern { transform-style: preserve-3d; }
.gallery .gallery-modern:hover { transform: translateY(-4px) rotateX(1deg) rotateY(-1deg); }
.gallery .gallery-modern .gallery-image img { will-change: transform; }

/*--------------------------------------------------------------
# Header Topbar Effects (contact + socials)
---------------------------------------------------------------*/
.header .topbar .container { animation: topbarIn .4s ease both; }
@keyframes topbarIn { from { opacity: 0; transform: translateY(-6px);} to { opacity: 1; transform: translateY(0);} }

.header .topbar .contact-info { gap: 18px; }
.header .topbar .contact-info i { color: var(--contrast-color); opacity: .9; }
.header .topbar .contact-info i a,
.header .topbar .contact-info i span { color: var(--contrast-color); position: relative; padding-left: 6px; }

/* underline reveal on hover for email/phone */
.header .topbar .contact-info i a::after,
.header .topbar .contact-info i span::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  opacity: .85;
}
.header .topbar .contact-info i a:hover::after,
.header .topbar .contact-info i span:hover::after { transform: scaleX(1); }

/* Sin punto separador entre items - los iconos de Bootstrap se muestran normalmente */

/* Social links in topbar */
.header .topbar .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--contrast-color), transparent 70%);
  color: var(--contrast-color);
  margin-left: 8px;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.header .topbar .social-links a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%); transform: translateX(-120%); transition: transform .6s ease; }
.header .topbar .social-links a:hover::after { transform: translateX(120%); }
.header .topbar .social-links a:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255,193,7,.25);
}

/* Topbar layout refinements */
.header .topbar .contact-info { gap: 14px; }
.header .topbar .contact-info i { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.header .topbar .contact-info i a,
.header .topbar .contact-info i span { white-space: nowrap; line-height: 1; }

@media (max-width: 575px) {
  .header .topbar .contact-info { gap: 10px; }
  .header .topbar .contact-info i { gap: 4px; font-size: 13px; }
}

/* Estilos para el módulo de Blog (coherencia con diseño general) */

/* Widget de búsqueda */
.sidebar-item.search-form {
    background: var(--surface-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sidebar-item.search-form input.form-control {
    background: color-mix(in srgb, var(--background-color), transparent 50%);
    border-color: color-mix(in srgb, var(--default-color), transparent 80%);
    color: var(--default-color);
    padding: 12px 16px;
    border-radius: 50px 0 0 50px;
    box-shadow: none;
}

.sidebar-item.search-form input.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.sidebar-item.search-form button.btn-primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--contrast-color);
    border-radius: 0 50px 50px 0;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.sidebar-item.search-form button.btn-primary:hover {
    background: color-mix(in srgb, var(--accent-color), white 10%);
}

/* Widget de Categorías */
.sidebar-item.categories {
    background: var(--surface-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sidebar-item.categories .sidebar-title {
    color: var(--heading-color);
    border-bottom: 2px solid var(--accent-color) !important;
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 20px !important;
}

.sidebar-item.categories ul li a {
    color: var(--default-color);
    transition: all 0.3s ease;
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-item.categories ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.sidebar-item.categories ul li a .badge {
    background-color: color-mix(in srgb, var(--default-color), transparent 90%) !important;
    color: var(--default-color) !important;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%) !important;
    transition: all 0.3s ease;
}

.sidebar-item.categories ul li a:hover .badge {
    background-color: var(--accent-color) !important;
    color: var(--contrast-color) !important;
    border-color: var(--accent-color) !important;
}

/* Widget de Posts Recientes */
.sidebar-item.recent-posts {
    background: var(--surface-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sidebar-item.recent-posts .post-item {
    margin-bottom: 20px;
}

.sidebar-item.recent-posts .post-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    margin-right: 15px;
}

.sidebar-item.recent-posts .post-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.sidebar-item.recent-posts .post-item h4 a {
    color: var(--heading-color);
    transition: 0.3s;
}

.sidebar-item.recent-posts .post-item h4 a:hover {
    color: var(--accent-color);
}

.sidebar-item.recent-posts .post-item time {
    display: block;
    font-size: 13px;
    color: color-mix(in srgb, var(--default-color), transparent 40%);
}

/* Tarjetas de Blog en lista */
.blog .blog-list-item {
    background: var(--surface-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    margin-bottom: 30px;
}

.blog .blog-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.blog .blog-list-item .blog-img {
    position: relative;
    overflow: hidden;
}

.blog .blog-list-item .blog-img img {
    transition: transform 0.6s ease;
    width: 100%;
}

.blog .blog-list-item:hover .blog-img img {
    transform: scale(1.05);
}

.blog .blog-list-item .blog-content {
    padding: 25px;
}

.blog .blog-list-item .blog-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.blog .blog-list-item .blog-title a {
    color: var(--heading-color);
    transition: 0.3s;
}

.blog .blog-list-item .blog-title a:hover {
    color: var(--accent-color);
}

.blog .blog-list-item .blog-meta {
    margin-bottom: 15px;
    font-size: 14px;
    color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.blog .blog-list-item .blog-meta i {
    color: var(--accent-color);
    margin-right: 5px;
}

.blog .blog-list-item .read-more {
    margin-top: 15px;
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    transition: 0.3s;
}

.blog .blog-list-item .read-more:hover {
    color: color-mix(in srgb, var(--accent-color), white 20%);
    transform: translateX(5px);
}

/* Paginación */
.blog-pagination .pagination {
    margin-top: 40px;
    justify-content: center;
}

.blog-pagination .pagination .page-link {
    background: var(--surface-color);
    color: var(--default-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    transition: 0.3s;
}

.blog-pagination .pagination .page-link:hover,
.blog-pagination .pagination .page-item.active .page-link {
    background: var(--accent-color);
    color: var(--contrast-color);
    border-color: var(--accent-color);
}

.blog-pagination .pagination .page-link:focus {
    box-shadow: none;
}

/* Widget CTA (WhatsApp) */
.sidebar-item.cta-widget .card {
    background: linear-gradient(135deg, var(--brand-blue), color-mix(in srgb, var(--brand-blue), black 20%));
    color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: 0 8px 24px rgba(15, 91, 171, 0.25);
}

.sidebar-item.cta-widget .icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

.sidebar-item.cta-widget h4 {
    color: #ffffff;
    font-weight: 700;
}

.sidebar-item.cta-widget p {
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-item.cta-widget .btn {
    background: #ffffff;
    color: var(--brand-blue);
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
}

.sidebar-item.cta-widget .btn:hover {
    background: var(--accent-color);
    color: var(--contrast-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Clases de utilidad y componentes para Blog y Layout */
.text-light-low { color: var(--default-color) !important; opacity: 0.7; }
.text-light-mid { color: var(--default-color) !important; opacity: 0.85; }
.text-muted-custom { color: color-mix(in srgb, var(--default-color), transparent 60%) !important; }
.border-soft { border-color: color-mix(in srgb, var(--default-color), transparent 85%) !important; }

.blog-article-container {
    background: var(--surface-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.blog-article-container .article-title { color: var(--heading-color); }
.blog-article-container .meta-item i { color: var(--accent-color); }
.blog-article-container .meta-text { color: color-mix(in srgb, var(--default-color), transparent 30%); }

/* Article Body Typography (Public) */
.article-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--default-color);
}
.article-body h3 {
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Utility & Color Helpers (Shared) */
.text-light-low { color: var(--default-color) !important; opacity: 0.7; }
.text-light-mid { color: var(--default-color) !important; opacity: 0.85; }
.text-muted-custom { color: color-mix(in srgb, var(--default-color), transparent 60%) !important; }
.border-soft { border-color: color-mix(in srgb, var(--default-color), transparent 85%) !important; }
