/* =====================================================================
   CENTRO DEL CORAZÓN — Hoja de estilos principal
   ---------------------------------------------------------------------
   Stack: Bootstrap 5.3 · BoxIcons · Outfit + Inter · AOS
   Paleta oficial extraída de centrodelcorazon.com (logotipo):
     Magenta  #ED008C  ·  Cian  #00ACED  ·  Azul noche  #001C38
   Índice:
     01. Tokens de diseño        09. Hero de página interna
     02. Base y tipografía       10. Contenido de servicio
     03. Utilidades              11. Sidebar y formularios
     04. Botones                 12. FAQ (acordeón)
     05. Topbar                  13. Banda CTA
     06. Navbar glass            14. Footer
     07. Megamenú escritorio     15. Flotantes
     08. Menú móvil              16. Accesibilidad / responsive
   ===================================================================== */

/* ---------------------------------------------------------------------
   01. TOKENS DE DISEÑO
   --------------------------------------------------------------------- */
:root {
    /* Marca */
    --cc-magenta: #ED008C;
    --cc-magenta-600: #D1007B;
    --cc-magenta-700: #B0006A;          /* texto magenta sobre blanco (AA) */
    --cc-magenta-50: #FFF0F8;
    --cc-cyan: #00ACED;
    --cc-cyan-600: #0090C8;
    --cc-cyan-700: #006E9C;             /* texto cian sobre blanco (AA) */
    --cc-cyan-50: #EAF8FE;
    --cc-navy: #001C38;
    --cc-navy-800: #06294D;
    --cc-navy-700: #0D3763;

    /* Neutros */
    --cc-ink: #14213A;
    --cc-body: #4A5670;
    --cc-muted: #7A859C;
    --cc-line: #E3EAF3;
    --cc-surface: #F5F8FC;
    --cc-white: #FFFFFF;

    /* Gradientes */
    --cc-grad: linear-gradient(135deg, var(--cc-magenta) 0%, #B23DD1 50%, var(--cc-cyan) 100%);
    --cc-grad-btn: linear-gradient(135deg, var(--cc-magenta-600) 0%, var(--cc-magenta) 100%);
    --cc-grad-navy: linear-gradient(135deg, var(--cc-navy) 0%, var(--cc-navy-700) 100%);
    --cc-grad-soft: linear-gradient(135deg, var(--cc-magenta-50) 0%, var(--cc-cyan-50) 100%);

    /* Tipografía */
    --ff-head: 'Outfit', system-ui, sans-serif;
    --ff-body: 'Inter', system-ui, sans-serif;

    /* Forma y profundidad */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 2px 8px rgba(0, 28, 56, .06);
    --shadow: 0 12px 32px -8px rgba(0, 28, 56, .14);
    --shadow-lg: 0 30px 60px -15px rgba(0, 28, 56, .25);
    --shadow-magenta: 0 12px 28px -8px rgba(237, 0, 140, .45);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, .85);
    --glass-border: rgba(255, 255, 255, .6);
    --glass-blur: saturate(180%) blur(18px);

    /* Layout */
    --topbar-h: 40px;
    --nav-h: 88px;
    --nav-h-scrolled: 70px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

    /* Overrides Bootstrap */
    --bs-primary: var(--cc-magenta);
    --bs-primary-rgb: 237, 0, 140;
    --bs-link-color: var(--cc-magenta-700);
    --bs-link-hover-color: var(--cc-magenta);
    --bs-body-font-family: var(--ff-body);
    --bs-body-color: var(--cc-body);
    --bs-border-color: var(--cc-line);
}

/* ---------------------------------------------------------------------
   02. BASE Y TIPOGRAFÍA
   --------------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h-scrolled) + 24px); }

body {
    font-family: var(--ff-body);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--cc-body);
    background: var(--cc-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
    font-family: var(--ff-head);
    color: var(--cc-ink);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
}
h1, .h1 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); font-weight: 800; letter-spacing: -.025em; }
h2, .h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3, .h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

a { color: var(--cc-magenta-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--cc-magenta); }

img { max-width: 100%; height: auto; }
::selection { background: var(--cc-magenta); color: #fff; }

/* ---------------------------------------------------------------------
   03. UTILIDADES
   --------------------------------------------------------------------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-sm { padding: clamp(3rem, 5vw, 4.5rem) 0; }
.bg-surface { background: var(--cc-surface); }

.text-gradient {
    background: var(--cc-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--ff-head);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cc-magenta-700);
    margin-bottom: 1rem;
}
.eyebrow::before {
    content: '';
    width: 28px; height: 2px;
    background: var(--cc-grad);
    border-radius: 2px;
}
.eyebrow--light { color: rgba(255, 255, 255, .9); }
.eyebrow--light::before { background: #fff; }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head p { font-size: 1.125rem; }

.glass {
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.img-cover {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.skip-link {
    position: fixed; top: -100px; left: 1rem; z-index: 2000;
    background: var(--cc-navy); color: #fff;
    padding: .75rem 1.25rem; border-radius: var(--radius-sm);
    transition: top .2s;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------------------------------------------------------------------
   04. BOTONES
   --------------------------------------------------------------------- */
.btn {
    --bs-btn-font-family: var(--ff-head);
    --bs-btn-font-weight: 600;
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-padding-y: .75rem;
    --bs-btn-border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    letter-spacing: .01em;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn i { font-size: 1.25em; }
.btn-lg { --bs-btn-padding-x: 2rem; --bs-btn-padding-y: .95rem; --bs-btn-font-size: 1.0625rem; }
.btn-sm { --bs-btn-padding-x: 1.1rem; --bs-btn-padding-y: .5rem; --bs-btn-font-size: .875rem; }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(0, 172, 237, .55); outline-offset: 2px; box-shadow: none; }

.btn-cc-primary {
    background: var(--cc-grad-btn);
    color: #fff;
    border: 0;
    box-shadow: var(--shadow-magenta);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.btn-cc-primary::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--cc-magenta) 0%, #C0168F 55%, var(--cc-cyan-600) 130%);
    opacity: 0; z-index: -1;
    transition: opacity .3s var(--ease);
}
.btn-cc-primary:hover, .btn-cc-primary:focus-visible { color: #fff; box-shadow: 0 18px 34px -10px rgba(237, 0, 140, .55); }
.btn-cc-primary:hover::after { opacity: 1; }

.btn-cc-outline {
    color: var(--cc-navy);
    border: 2px solid var(--cc-line);
    background: #fff;
}
.btn-cc-outline:hover { color: var(--cc-magenta-700); border-color: var(--cc-magenta); background: var(--cc-magenta-50); }

.btn-cc-light { background: #fff; color: var(--cc-navy); border: 0; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .3); }
.btn-cc-light:hover { background: #fff; color: var(--cc-magenta-700); box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .35); }

.btn-cc-ghost { color: #fff; border: 2px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); }
.btn-cc-ghost:hover { color: var(--cc-navy); background: #fff; border-color: #fff; }

/* ---------------------------------------------------------------------
   05. TOPBAR
   --------------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1030;
}
.topbar {
    height: var(--topbar-h);
    background: var(--cc-navy);
    color: rgba(255, 255, 255, .78);
    font-size: .8125rem;
    overflow: hidden;
    transition: height .35s var(--ease), opacity .35s var(--ease);
}
.topbar .container-xl { height: 100%; }
.topbar-list { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.topbar-list li { display: flex; align-items: center; gap: .4rem; }
.topbar-list i { font-size: 1rem; color: var(--cc-cyan); }
.topbar-list a { color: rgba(255, 255, 255, .85); display: inline-flex; align-items: center; gap: .4rem; }
.topbar-list a:hover { color: #fff; }
.topbar-list .bxl-facebook-circle { font-size: 1.2rem; }

/* ---------------------------------------------------------------------
   06. NAVBAR GLASS
   --------------------------------------------------------------------- */
.main-nav {
    position: relative;
    background: var(--cc-white);
    border-bottom: 1px solid rgba(0, 28, 56, .06);
    transition: box-shadow .35s var(--ease), background .35s var(--ease);
}
.main-nav::after {   /* hilo de marca */
    content: '';
    position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: var(--cc-grad);
    transform: scaleX(0); transform-origin: left;
    transition: transform .6s var(--ease);
}
.main-nav-inner {
    position: relative;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    transition: height .35s var(--ease);
}
.brand img { height: 62px; width: auto; transition: height .35s var(--ease); }

.site-header.scrolled .topbar { height: 0; opacity: 0; }
.site-header.scrolled .main-nav { background: var(--cc-white); box-shadow: var(--shadow); }
.site-header.scrolled .main-nav::after { transform: scaleX(1); }
.site-header.scrolled .main-nav-inner { height: var(--nav-h-scrolled); }
.site-header.scrolled .brand img { height: 50px; }

.nav-menu { list-style: none; margin: 0; padding: 0; gap: .25rem; align-items: center; height: 100%; }
.nav-menu > li { height: 100%; display: flex; align-items: center; }
.has-mega { position: static; }

.nav-link-cc {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .6rem 1rem;
    font-family: var(--ff-head);
    font-weight: 600;
    font-size: 1rem;
    color: var(--cc-ink);
    background: none;
    border: 0;
    border-radius: 999px;
    transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link-cc i { font-size: 1.1rem; transition: transform .3s var(--ease); }
.nav-link-cc::after {
    content: '';
    position: absolute; left: 50%; bottom: .2rem;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--cc-magenta);
    transform: translateX(-50%) scale(0);
    transition: transform .3s var(--ease-spring);
}
.nav-link-cc:hover, .nav-link-cc[aria-expanded="true"] { color: var(--cc-magenta-700); background: var(--cc-magenta-50); }
.nav-link-cc.active { color: var(--cc-magenta-700); }
.nav-link-cc.active::after { transform: translateX(-50%) scale(1); }
.nav-link-cc[aria-expanded="true"] i { transform: rotate(180deg); }

.nav-actions { display: flex; align-items: center; gap: .75rem; }

.nav-burger {
    width: 48px; height: 48px;
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    border: 0; border-radius: 14px;
    background: var(--cc-grad-soft);
}
.nav-burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--cc-navy); transition: width .3s var(--ease); }
.nav-burger span:nth-child(2) { width: 16px; margin-left: 6px; background: var(--cc-magenta); }
.nav-burger:hover span:nth-child(2) { width: 22px; margin-left: 0; }

/* ---------------------------------------------------------------------
   07. MEGAMENÚ ESCRITORIO
   --------------------------------------------------------------------- */
.mega-backdrop {
    position: fixed; inset: 0; z-index: -1;
    background: rgba(0, 28, 56, .35);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s;
}
.site-header.mega-open .mega-backdrop { opacity: 1; visibility: visible; }

.mega-panel {
    position: absolute;
    top: calc(100% - 8px);
    left: 50%;
    width: min(1180px, calc(100vw - 2rem));
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 14px) scale(.985);
    transform-origin: top center;
    transition: opacity .3s var(--ease), transform .4s var(--ease), visibility .3s;
}
.mega-panel::before {   /* barra superior de marca */
    content: '';
    position: absolute; inset: 0 0 auto 0; height: 4px;
    background: var(--cc-grad);
}
.mega-panel--compact { width: min(920px, calc(100vw - 2rem)); }
.has-mega.open .mega-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }

/* Entrada escalonada */
.mega-panel [style*="--i"] {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .4s var(--ease), transform .45s var(--ease);
    transition-delay: calc(var(--i) * 28ms + 60ms);
}
.has-mega.open .mega-panel [style*="--i"] { opacity: 1; transform: none; }

.mega-body { padding: 2rem; display: grid; gap: 1.5rem; }
.mega-body--services { grid-template-columns: 270px repeat(3, 1fr); }
.mega-body--patho { grid-template-columns: 1fr 260px; gap: 2rem; }
.mega-body--centro { grid-template-columns: 1fr 1fr 220px; }

.mega-col-title {
    display: flex; align-items: center; gap: .5rem;
    font-family: var(--ff-head);
    font-size: .75rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--cc-muted);
    padding: 0 .75rem .75rem;
    margin: 0 0 .5rem;
    border-bottom: 1px dashed var(--cc-line);
}
.mega-col-title i { font-size: 1.1rem; color: var(--cc-magenta); }

.mega-list, .mega-grid { list-style: none; margin: 0; padding: 0; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem .5rem; }

.mega-link {
    display: flex; align-items: center; gap: .85rem;
    padding: .65rem .75rem;
    border-radius: var(--radius);
    color: var(--cc-ink);
    position: relative;
    transition: background .25s var(--ease), transform .25s var(--ease);
}
.mega-icon {
    flex: 0 0 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--cc-grad-soft);
    color: var(--cc-magenta);
    font-size: 1.35rem;
    transition: background .3s var(--ease), color .3s var(--ease), transform .4s var(--ease-spring), box-shadow .3s var(--ease);
}
.mega-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.mega-text strong { font-family: var(--ff-head); font-weight: 600; font-size: .9688rem; }
.mega-text small { font-size: .8125rem; color: var(--cc-muted); margin-top: 2px; }
.mega-link:hover, .mega-link:focus-visible, .mega-link.active { background: var(--cc-surface); color: var(--cc-ink); transform: translateX(4px); }
.mega-link:hover .mega-icon, .mega-link:focus-visible .mega-icon, .mega-link.active .mega-icon {
    background: var(--cc-grad);
    color: #fff;
    transform: rotate(-8deg) scale(1.06);
    box-shadow: 0 8px 18px -6px rgba(237, 0, 140, .5);
}
.mega-link:hover strong, .mega-link.active strong { color: var(--cc-magenta-700); }

/* Tarjeta destacada del megamenú de servicios */
.mega-feature {
    position: relative;
    display: flex; flex-direction: column; align-items: flex-start;
    padding: 1.75rem;
    border-radius: var(--radius);
    background: var(--cc-grad-navy);
    color: rgba(255, 255, 255, .82);
    overflow: hidden;
    isolation: isolate;
}
.mega-feature::before {
    content: '';
    position: absolute; width: 260px; height: 260px; right: -120px; top: -120px; z-index: -1;
    background: radial-gradient(circle, rgba(237, 0, 140, .55), transparent 65%);
}
.mega-feature::after {
    content: '';
    position: absolute; width: 220px; height: 220px; left: -100px; bottom: -110px; z-index: -1;
    background: radial-gradient(circle, rgba(0, 172, 237, .5), transparent 65%);
}
.mega-feature-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    padding: .3rem .75rem; border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    margin-bottom: 1rem;
}
.mega-feature-badge i { color: var(--cc-magenta); animation: heartbeat 1.4s ease-in-out infinite; }
.mega-feature h3 { color: #fff; font-size: 1.375rem; margin-bottom: .5rem; }
.mega-feature p { font-size: .9rem; line-height: 1.6; margin-bottom: .5rem; }

.ecg-line { width: 100%; height: 48px; margin: .25rem 0 1.25rem; overflow: visible; }
.ecg-line path {
    fill: none;
    stroke: var(--cc-cyan);
    stroke-width: 2.5;
    stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 420; stroke-dashoffset: 420;
    filter: drop-shadow(0 0 6px rgba(0, 172, 237, .8));
}
.has-mega.open .ecg-line path { animation: ecgDraw 2.2s var(--ease) .2s infinite; }

.mega-footer {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: .9rem 2rem;
    background: var(--cc-surface);
    border-top: 1px solid var(--cc-line);
    font-size: .875rem;
}
.mega-footer span, .mega-footer a { display: inline-flex; align-items: center; gap: .4rem; }
.mega-footer i { font-size: 1.15rem; color: var(--cc-magenta); }
.mega-footer a { font-family: var(--ff-head); font-weight: 600; color: var(--cc-navy); }
.mega-footer a:hover { color: var(--cc-magenta-700); }

/* Columna de alerta (Patologías) */
.mega-alert {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--cc-grad-soft);
    border: 1px solid rgba(237, 0, 140, .12);
}
.mega-alert-title { display: flex; align-items: center; gap: .4rem; font-family: var(--ff-head); font-weight: 700; color: var(--cc-ink); margin-bottom: .75rem; }
.mega-alert-title i { color: var(--cc-magenta); font-size: 1.3rem; }
.mega-alert ul { list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: .875rem; }
.mega-alert li { position: relative; padding-left: 1.4rem; margin-bottom: .45rem; line-height: 1.4; color: var(--cc-ink); }
.mega-alert li::before {
    content: ''; position: absolute; left: 0; top: .35em;
    width: 10px; height: 10px; border-radius: 50%;
    border: 2px solid var(--cc-magenta);
}
.mega-alert-note { font-size: .75rem; color: var(--cc-muted); margin: .75rem 0 0; line-height: 1.4; }

/* Tarjetas fotográficas (El Centro) */
.mega-photo-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    isolation: isolate;
}
.mega-photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mega-photo-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.25rem;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 28, 56, .92) 100%);
    color: rgba(255, 255, 255, .85);
}
.mega-photo-overlay strong { font-family: var(--ff-head); font-size: 1.25rem; color: #fff; }
.mega-photo-overlay small { font-size: .8125rem; line-height: 1.4; }
.mega-photo-cta {
    display: inline-flex; align-items: center; gap: .25rem;
    margin-top: .5rem; font-size: .8125rem; font-weight: 600; color: var(--cc-cyan);
    transform: translateY(6px); opacity: 0;
    transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.mega-photo-card:hover img { transform: scale(1.07); }
.mega-photo-card:hover .mega-photo-cta { transform: none; opacity: 1; }

.mega-stats {
    display: flex; flex-direction: column; justify-content: center; gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    background: var(--cc-surface);
}
.mega-stats > div { display: flex; flex-direction: column; }
.stat-num { font-family: var(--ff-head); font-size: 2rem; font-weight: 800; line-height: 1; }
.mega-stats .stat-num { background: var(--cc-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: .8125rem; color: var(--cc-muted); }

/* ---------------------------------------------------------------------
   08. MENÚ MÓVIL (Offcanvas)
   --------------------------------------------------------------------- */
.mobile-menu { --bs-offcanvas-width: min(400px, 92vw); border-left: 0 !important; }
.mobile-menu .offcanvas-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--cc-line); }
.mobile-close {
    width: 44px; height: 44px; display: grid; place-items: center;
    border: 0; border-radius: 12px; background: var(--cc-surface); color: var(--cc-navy); font-size: 1.6rem;
}
.mobile-menu .offcanvas-body { padding: 1rem 1.25rem 2rem; }
.m-link, .mobile-menu .accordion-button {
    display: flex; align-items: center; gap: .75rem;
    padding: 1rem .5rem;
    font-family: var(--ff-head); font-weight: 600; font-size: 1.0625rem;
    color: var(--cc-ink);
    background: none;
    border-bottom: 1px solid var(--cc-line);
    box-shadow: none !important;
}
.m-link i, .mobile-menu .accordion-button > i { font-size: 1.3rem; color: var(--cc-magenta); }
.m-link.active { color: var(--cc-magenta-700); }
.mobile-menu .accordion-item { border: 0; background: none; }
.mobile-menu .accordion-button:not(.collapsed) { color: var(--cc-magenta-700); background: none; }
.mobile-menu .accordion-button::after { filter: hue-rotate(290deg); }
.mobile-menu .accordion-collapse { padding: .5rem 0 .75rem 1rem; border-bottom: 1px solid var(--cc-line); }
.m-group { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cc-muted); margin: .75rem 0 .25rem; }
.m-sublink { display: flex; align-items: center; gap: .6rem; padding: .5rem .25rem; color: var(--cc-body); font-size: .9688rem; border-radius: 8px; }
.m-sublink i { color: var(--cc-cyan-700); font-size: 1.1rem; }
.m-sublink:hover, .m-sublink.active { color: var(--cc-magenta-700); background: var(--cc-magenta-50); }
.mobile-cta { display: grid; gap: .75rem; margin-top: 1.75rem; }
.mobile-hours { font-size: .875rem; color: var(--cc-muted); text-align: center; margin: .5rem 0 0; }

/* ---------------------------------------------------------------------
   09. HERO DE PÁGINA INTERNA
   --------------------------------------------------------------------- */
.page-hero {
    position: relative;
    padding: calc(var(--topbar-h) + var(--nav-h) + clamp(3rem, 7vw, 6rem)) 0 clamp(5rem, 9vw, 8rem);
    color: rgba(255, 255, 255, .85);
    overflow: hidden;
    isolation: isolate;
    background: var(--cc-navy);
}
.page-hero-bg {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    animation: heroZoom 18s ease-out forwards;
}
.page-hero::before {   /* overlay legibilidad */
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(ellipse at 85% 20%, rgba(237, 0, 140, .35), transparent 55%),
        radial-gradient(ellipse at 10% 90%, rgba(0, 172, 237, .30), transparent 55%),
        linear-gradient(100deg, rgba(0, 28, 56, .96) 0%, rgba(0, 28, 56, .85) 45%, rgba(0, 28, 56, .45) 100%);
}
.page-hero::after {    /* curva inferior */
    content: '';
    position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; z-index: 0;
    background: #fff;
    clip-path: ellipse(75% 100% at 50% 100%);
}
.page-hero h1 { color: #fff; margin-bottom: 1.25rem; }
.page-hero .lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 620px; color: rgba(255, 255, 255, .85); margin-bottom: 2rem; }

.breadcrumb-cc { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: .875rem; }
.breadcrumb-cc a { color: rgba(255, 255, 255, .75); }
.breadcrumb-cc a:hover { color: #fff; }
.breadcrumb-cc li + li::before { content: '\203A'; margin-right: .4rem; color: var(--cc-cyan); }
.breadcrumb-cc [aria-current] { color: #fff; font-weight: 500; }

.hero-chip {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem 1rem .4rem .45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    font-size: .875rem; color: #fff;
    margin-bottom: 1.25rem;
}
.hero-chip i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--cc-grad); font-size: 1rem; }

.hero-stat-card {
    position: relative;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
    color: #fff;
}
.hero-stat-card .stat-num { font-size: clamp(3rem, 6vw, 4.5rem); color: #fff; display: block; }
.hero-stat-card .stat-num span { background: linear-gradient(135deg, #FF5FBF, var(--cc-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stat-card p { color: rgba(255, 255, 255, .85); margin: .5rem 0 0; font-size: .9375rem; }
.hero-stat-card small { display: block; margin-top: 1rem; font-size: .75rem; color: rgba(255, 255, 255, .6); }
.hero-stat-icons { display: flex; gap: .5rem; margin-top: 1.5rem; }
.hero-stat-icons span {
    width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 12px; background: rgba(255, 255, 255, .12); font-size: 1.35rem; color: #fff;
}
.hero-pulse {
    position: absolute; top: -18px; right: -18px;
    width: 64px; height: 64px; display: grid; place-items: center;
    border-radius: 50%; background: var(--cc-grad); color: #fff; font-size: 1.8rem;
    box-shadow: 0 0 0 0 rgba(237, 0, 140, .6);
    animation: pulseRing 2s infinite;
}

/* ---------------------------------------------------------------------
   10. CONTENIDO DE SERVICIO
   --------------------------------------------------------------------- */
.content-flow > * + * { margin-top: 1.25rem; }
.content-flow h2 { margin-top: 3.5rem; margin-bottom: 1rem; }
.content-flow h2:first-child { margin-top: 0; }
.content-flow h3 { margin-top: 2rem; }
.content-flow p { margin-bottom: 0; }
.content-flow strong { color: var(--cc-ink); }

.intro-media { position: relative; }
.intro-media .img-cover { box-shadow: var(--shadow-lg); }
.intro-badge {
    position: absolute; left: -1rem; bottom: -1.5rem;
    display: flex; align-items: center; gap: .85rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
}
.intro-badge i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--cc-grad); color: #fff; font-size: 1.5rem; }
.intro-badge strong { display: block; font-family: var(--ff-head); color: var(--cc-ink); line-height: 1.2; }
.intro-badge small { color: var(--cc-muted); font-size: .8125rem; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.check-list li { position: relative; padding-left: 2.1rem; }
.check-list li::before {
    content: '\ea41';   /* bx-check */
    font-family: 'boxicons';
    position: absolute; left: 0; top: .15em;
    width: 1.5rem; height: 1.5rem; display: grid; place-items: center;
    border-radius: 50%;
    background: var(--cc-grad-soft); color: var(--cc-magenta);
    font-size: 1.1rem;
}

/* Tarjetas de factores de riesgo */
.risk-card {
    position: relative;
    height: 100%;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--cc-line);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
    overflow: hidden;
}
.risk-card::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: var(--cc-grad); transform: scaleX(0); transform-origin: left;
    transition: transform .45s var(--ease);
}
.risk-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.risk-card:hover::after { transform: scaleX(1); }
.risk-icon {
    width: 52px; height: 52px; display: grid; place-items: center;
    border-radius: 14px; margin-bottom: 1rem;
    background: var(--cc-grad-soft); color: var(--cc-magenta); font-size: 1.6rem;
    transition: transform .45s var(--ease-spring), background .3s, color .3s;
}
.risk-card:hover .risk-icon { background: var(--cc-grad); color: #fff; transform: rotate(-8deg) scale(1.08); }
.risk-card h3 { font-size: 1.0625rem; margin-bottom: .35rem; }
.risk-card p { font-size: .9063rem; line-height: 1.6; margin: 0; }
.risk-card--fixed .risk-icon { background: #EEF1F6; color: var(--cc-navy-700); }

.tag {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .2rem .7rem; border-radius: 999px;
    font-size: .75rem; font-weight: 600; letter-spacing: .03em;
}
.tag--magenta { background: var(--cc-magenta-50); color: var(--cc-magenta-700); }
.tag--navy { background: #EEF1F6; color: var(--cc-navy-700); }

/* Destacado (callout) */
.callout {
    position: relative;
    display: flex; gap: 1.25rem;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: var(--cc-grad-soft);
    border: 1px solid rgba(237, 0, 140, .12);
}
.callout > i { flex: 0 0 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--cc-magenta); font-size: 1.6rem; box-shadow: var(--shadow-sm); }
.callout p { margin: 0; }
.callout strong { color: var(--cc-ink); }

/* Tabla de presión arterial */
.bp-table { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--cc-line); background: #fff; }
.bp-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; align-items: center; padding: 1rem 1.5rem; border-top: 1px solid var(--cc-line); font-size: .9688rem; }
.bp-row:first-child { border-top: 0; }
.bp-row--head { background: var(--cc-navy); color: rgba(255, 255, 255, .85); font-family: var(--ff-head); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.bp-row strong { font-family: var(--ff-head); display: flex; align-items: center; gap: .6rem; }
.bp-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 12px; }
.bp-dot--ok { background: #19B37A; box-shadow: 0 0 0 4px rgba(25, 179, 122, .15); }
.bp-dot--warn { background: #F5A524; box-shadow: 0 0 0 4px rgba(245, 165, 36, .18); }
.bp-dot--high { background: var(--cc-magenta); box-shadow: 0 0 0 4px rgba(237, 0, 140, .15); }

/* Síntomas */
.symptom-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.symptom {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .55rem 1rem;
    border-radius: 999px;
    background: #fff; border: 1px solid var(--cc-line);
    font-size: .9063rem; color: var(--cc-ink);
    transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.symptom i { color: var(--cc-magenta); font-size: 1.1rem; }
.symptom:hover { border-color: var(--cc-magenta); background: var(--cc-magenta-50); transform: translateY(-2px); }

/* Pasos del programa (timeline) */
.steps { position: relative; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps::before {
    content: ''; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px;
    background: linear-gradient(180deg, var(--cc-magenta), var(--cc-cyan));
    opacity: .35;
}
.step { position: relative; padding: 0 0 2.25rem 5rem; counter-increment: step; }
.step:last-child { padding-bottom: 0; }
.step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute; left: 0; top: 0;
    width: 56px; height: 56px; display: grid; place-items: center;
    border-radius: 18px;
    background: #fff; border: 2px solid transparent;
    background-image: linear-gradient(#fff, #fff), var(--cc-grad);
    background-origin: border-box; background-clip: padding-box, border-box;
    font-family: var(--ff-head); font-weight: 800; font-size: 1.1rem; color: var(--cc-magenta-700);
    box-shadow: var(--shadow-sm);
    transition: transform .4s var(--ease-spring);
}
.step:hover::before { transform: scale(1.1) rotate(-6deg); }
.step h3 { font-size: 1.1875rem; margin: .25rem 0 .4rem; }
.step p { margin: 0; }
.step-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.step-links a {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .25rem .75rem; border-radius: 999px;
    background: var(--cc-surface); border: 1px solid var(--cc-line);
    font-size: .8125rem; font-weight: 500; color: var(--cc-navy-700);
}
.step-links a:hover { background: var(--cc-magenta-50); border-color: var(--cc-magenta); color: var(--cc-magenta-700); }

/* Consejos (hábitos) */
.tip-card {
    display: flex; gap: 1rem;
    height: 100%;
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--cc-line);
    transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.tip-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.tip-card i { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--cc-cyan-50); color: var(--cc-cyan-700); font-size: 1.4rem; }
.tip-card h3 { font-size: 1rem; margin: 0 0 .25rem; }
.tip-card p { font-size: .9063rem; line-height: 1.6; margin: 0; }

/* Enlaces relacionados */
.related-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.related-chip {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .55rem 1.1rem .55rem .55rem;
    border-radius: 999px;
    background: #fff; border: 1px solid var(--cc-line);
    font-family: var(--ff-head); font-weight: 600; font-size: .9375rem; color: var(--cc-ink);
    transition: all .25s var(--ease);
}
.related-chip i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--cc-grad-soft); color: var(--cc-magenta); font-size: 1.1rem; transition: all .25s; }
.related-chip:hover { border-color: var(--cc-magenta); color: var(--cc-magenta-700); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.related-chip:hover i { background: var(--cc-grad); color: #fff; }

/* Nota de revisión (E-E-A-T) */
.review-note {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    border: 1px dashed var(--cc-line);
    font-size: .875rem; color: var(--cc-muted);
}
.review-note i { font-size: 1.75rem; color: var(--cc-cyan-700); }
.review-note strong { color: var(--cc-ink); }

/* ---------------------------------------------------------------------
   11. SIDEBAR Y FORMULARIOS
   --------------------------------------------------------------------- */
.sidebar-sticky { position: sticky; top: calc(var(--nav-h-scrolled) + 1.5rem); display: grid; gap: 1.5rem; }

.side-card { padding: 1.75rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--cc-line); box-shadow: var(--shadow-sm); }
.side-card-title { font-family: var(--ff-head); font-size: 1.1875rem; font-weight: 700; color: var(--cc-ink); margin-bottom: .35rem; }

.side-card--form {
    position: relative;
    background: var(--cc-grad-navy);
    color: rgba(255, 255, 255, .8);
    border: 0;
    overflow: hidden;
    isolation: isolate;
    box-shadow: var(--shadow-lg);
}
.side-card--form::before {
    content: ''; position: absolute; width: 280px; height: 280px; top: -140px; right: -140px; z-index: -1;
    background: radial-gradient(circle, rgba(237, 0, 140, .5), transparent 65%);
}
.side-card--form .side-card-title { color: #fff; }
.side-card--form p { font-size: .9063rem; line-height: 1.55; }

.form-cc .form-label { font-size: .8125rem; font-weight: 600; color: rgba(255, 255, 255, .85); margin-bottom: .35rem; }
.form-cc .form-control, .form-cc .form-select {
    padding: .75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .15);
    background-color: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: .9375rem;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.form-cc .form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.form-cc .form-select option { color: var(--cc-ink); }
.form-cc .form-control::placeholder { color: rgba(255, 255, 255, .5); }
.form-cc .form-control:focus, .form-cc .form-select:focus {
    border-color: var(--cc-cyan);
    background-color: rgba(255, 255, 255, .14);
    box-shadow: 0 0 0 4px rgba(0, 172, 237, .2);
    color: #fff;
}
.form-cc .invalid-feedback { color: #FF8AC9; }
.form-cc .form-control.is-invalid, .was-validated .form-cc .form-control:invalid { border-color: #FF8AC9; }
.form-privacy { font-size: .75rem; color: rgba(255, 255, 255, .55); margin: .75rem 0 0; display: flex; gap: .35rem; }

.info-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .85rem; }
.info-list li { display: flex; gap: .75rem; font-size: .9375rem; line-height: 1.5; }
.info-list i { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--cc-grad-soft); color: var(--cc-magenta); font-size: 1.2rem; }
.info-list strong { display: block; color: var(--cc-ink); font-family: var(--ff-head); font-size: .875rem; }

.side-links { list-style: none; padding: 0; margin: 1rem 0 0; }
.side-links a {
    display: flex; align-items: center; justify-content: space-between;
    padding: .7rem 0; border-bottom: 1px solid var(--cc-line);
    color: var(--cc-ink); font-weight: 500; font-size: .9375rem;
}
.side-links li:last-child a { border-bottom: 0; }
.side-links a span { display: flex; align-items: center; gap: .6rem; }
.side-links a span i { color: var(--cc-magenta); font-size: 1.15rem; }
.side-links a > i { color: var(--cc-muted); transition: transform .25s var(--ease), color .25s; }
.side-links a:hover { color: var(--cc-magenta-700); }
.side-links a:hover > i { transform: translateX(4px); color: var(--cc-magenta); }

/* ---------------------------------------------------------------------
   12. FAQ
   --------------------------------------------------------------------- */
.faq .accordion-item {
    border: 1px solid var(--cc-line);
    border-radius: var(--radius) !important;
    margin-bottom: .75rem;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .3s, border-color .3s;
}
.faq .accordion-item:has(.accordion-button:not(.collapsed)) { box-shadow: var(--shadow); border-color: transparent; }
.faq .accordion-button {
    padding: 1.25rem 1.5rem;
    font-family: var(--ff-head); font-weight: 600; font-size: 1.0625rem;
    color: var(--cc-ink);
    background: #fff;
    box-shadow: none;
}
.faq .accordion-button:not(.collapsed) { color: var(--cc-magenta-700); background: #fff; }
.faq .accordion-button:focus { box-shadow: none; }
.faq .accordion-button:focus-visible { outline: 3px solid rgba(0, 172, 237, .45); outline-offset: -3px; }
.faq .accordion-button::after {
    width: 32px; height: 32px; background-size: 14px; background-position: center;
    border-radius: 50%; background-color: var(--cc-surface);
}
.faq .accordion-button:not(.collapsed)::after { background-color: var(--cc-magenta-50); }
.faq .accordion-body { padding: 0 1.5rem 1.5rem; }

/* ---------------------------------------------------------------------
   13. BANDA CTA
   --------------------------------------------------------------------- */
.cta-band {
    position: relative;
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    background: linear-gradient(120deg, var(--cc-magenta-600) 0%, #A61FB0 45%, var(--cc-cyan-600) 100%);
    color: rgba(255, 255, 255, .88);
    overflow: hidden;
}
.cta-band::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, .15), transparent 50%);
}
.cta-ecg { position: absolute; left: 0; top: 50%; width: 100%; height: 120px; transform: translateY(-50%); opacity: .22; }
.cta-ecg path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1800; stroke-dashoffset: 1800; animation: ecgDraw 6s linear infinite; }
.cta-band-title { color: #fff; font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-bottom: .75rem; }
.cta-band-text { font-size: 1.0625rem; margin: 0; max-width: 560px; }

/* ---------------------------------------------------------------------
   14. FOOTER
   --------------------------------------------------------------------- */
.site-footer {
    position: relative;
    padding: clamp(4rem, 7vw, 5.5rem) 0 0;
    background: var(--cc-navy);
    color: rgba(255, 255, 255, .68);
    font-size: .9375rem;
    overflow: hidden;
}
.footer-glow {
    position: absolute; width: 600px; height: 600px; right: -200px; top: -300px;
    background: radial-gradient(circle, rgba(237, 0, 140, .18), transparent 60%);
    pointer-events: none;
}
.footer-brand { display: inline-block; padding: .85rem 1.1rem; background: #fff; border-radius: var(--radius); margin-bottom: 1.5rem; }
.footer-brand img { height: 60px; width: auto; display: block; }
.footer-about { line-height: 1.7; max-width: 380px; }
.footer-title { font-family: var(--ff-head); font-weight: 700; font-size: 1.0625rem; color: #fff; margin-bottom: 1.25rem; position: relative; padding-bottom: .75rem; }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--cc-grad); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-links a { color: rgba(255, 255, 255, .68); display: inline-flex; transition: color .2s, transform .25s var(--ease); }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.footer-contact li { display: flex; gap: .85rem; line-height: 1.55; }
.footer-contact i { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .07); color: var(--cc-cyan); font-size: 1.15rem; }
.footer-contact a { color: rgba(255, 255, 255, .85); }
.footer-contact a:hover { color: #fff; }
.footer-contact strong { color: #fff; font-weight: 600; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.5rem; }
.footer-social a {
    width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 12px; background: rgba(255, 255, 255, .07); color: #fff; font-size: 1.3rem;
    transition: background .3s, transform .3s var(--ease);
}
.footer-social a:hover { background: var(--cc-grad); transform: translateY(-3px); }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
    margin-top: 4rem; padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .8125rem; color: rgba(255, 255, 255, .5);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255, 255, 255, .75); }
.footer-bottom a:hover { color: #fff; }

/* ---------------------------------------------------------------------
   15. FLOTANTES
   --------------------------------------------------------------------- */
.float-wa {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1020;
    display: flex; align-items: center; gap: .6rem;
    height: 60px; padding: 0 1.25rem 0 0;
    border-radius: 999px;
    background: #25D366; color: #fff;
    box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6);
    transition: transform .3s var(--ease), box-shadow .3s;
}
.float-wa i { width: 60px; height: 60px; display: grid; place-items: center; font-size: 2rem; }
.float-wa::before {
    content: ''; position: absolute; left: 0; top: 0; width: 60px; height: 60px; border-radius: 50%;
    border: 2px solid #25D366; animation: waRing 2.2s ease-out infinite;
}
.float-wa-label { font-family: var(--ff-head); font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.float-wa:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 34px -10px rgba(37, 211, 102, .7); }

.back-to-top {
    position: fixed; right: 1.25rem; bottom: 6rem; z-index: 1020;
    width: 46px; height: 46px; display: grid; place-items: center;
    border: 0; border-radius: 14px;
    background: var(--cc-navy); color: #fff; font-size: 1.5rem;
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .3s var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--cc-magenta); }

/* ---------------------------------------------------------------------
   ANIMACIONES
   --------------------------------------------------------------------- */
@keyframes ecgDraw { 0% { stroke-dashoffset: var(--len, 420); } 60%, 100% { stroke-dashoffset: 0; } }
.cta-ecg path { --len: 1800; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.18); } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(237, 0, 140, .55); } 70% { box-shadow: 0 0 0 22px rgba(237, 0, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(237, 0, 140, 0); } }
@keyframes waRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes heroZoom { to { transform: scale(1); } }

/* ---------------------------------------------------------------------
   16. ACCESIBILIDAD Y RESPONSIVE
   --------------------------------------------------------------------- */
:focus-visible { outline: 3px solid rgba(0, 172, 237, .6); outline-offset: 2px; }

@media (max-width: 1399.98px) {
    .mega-body--services { grid-template-columns: 240px repeat(3, 1fr); padding: 1.5rem; }
    .mega-text small { display: none; }
}

@media (max-width: 1199.98px) {
    :root { --nav-h: 76px; --nav-h-scrolled: 64px; }
    .brand img { height: 52px; }
    .site-header.scrolled .brand img { height: 44px; }
}

@media (max-width: 991.98px) {
    .sidebar-sticky { position: static; }
    .intro-badge { left: 1rem; }
    .page-hero::after { height: 40px; }
}

@media (max-width: 767.98px) {
    body { font-size: 1rem; }
    :root { --topbar-h: 36px; }
    .bp-row { grid-template-columns: 1fr 1fr; gap: .25rem 1rem; padding: .9rem 1.1rem; }
    .bp-row > :first-child { grid-column: 1 / -1; }
    .bp-row--head > :first-child { display: none; }
    .float-wa { padding-right: 0; }
    .float-wa-label { display: none; }
    .step { padding-left: 4.25rem; }
    .callout { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* ---------------------------------------------------------------------
   17. LANDING PAGE (index.php)
   --------------------------------------------------------------------- */
.home-hero {
    position: relative;
    min-height: min(92vh, 860px);
    display: flex;
    align-items: center;
    padding: calc(var(--topbar-h) + var(--nav-h) + 2.5rem) 0 5.5rem;
    background: var(--cc-navy);
    color: rgba(255, 255, 255, .86);
    overflow: hidden;
    isolation: isolate;
}
.home-hero-bg {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transform: scale(1.06);
    animation: heroZoom 18s ease-out forwards;
}
.home-hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(ellipse at 82% 22%, rgba(237, 0, 140, .38), transparent 52%),
        radial-gradient(ellipse at 12% 85%, rgba(0, 172, 237, .32), transparent 50%),
        linear-gradient(105deg, rgba(0, 28, 56, .96) 0%, rgba(0, 28, 56, .86) 48%, rgba(0, 28, 56, .45) 100%);
}
.home-hero::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 72px; z-index: 0;
    background: #fff;
    clip-path: ellipse(75% 100% at 50% 100%);
}
.home-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4.1rem); margin-bottom: 1.25rem; }
.home-hero .lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: rgba(255, 255, 255, .85); max-width: 590px; margin-bottom: 2rem; }

.hero-metrics {
    display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
    margin-top: 2.5rem; padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-metric strong { display: block; font-family: var(--ff-head); font-size: 1.85rem; font-weight: 800; color: #fff; line-height: 1.1; }
.hero-metric span { font-size: .875rem; color: rgba(255, 255, 255, .7); }

.hero-glass-panel {
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 32px 64px -20px rgba(0, 0, 0, .55);
    color: #fff;
}
.hero-glass-panel h2 { color: #fff; font-size: 1.35rem; margin-bottom: .5rem; }
.hero-glass-list { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; gap: .75rem; }
.hero-glass-list li { display: flex; align-items: center; gap: .75rem; font-size: .9375rem; color: rgba(255, 255, 255, .9); }
.hero-glass-list i { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .14); color: var(--cc-cyan); font-size: 1.15rem; }

/* Pilares */
.pillar-card {
    position: relative;
    height: 100%;
    padding: 2rem 1.75rem;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--cc-line);
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
    overflow: hidden;
}
.pillar-card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: var(--cc-grad); transform: scaleX(0); transform-origin: left;
    transition: transform .4s var(--ease);
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-icon {
    width: 60px; height: 60px; display: grid; place-items: center;
    border-radius: 18px; background: var(--cc-grad-soft); color: var(--cc-magenta);
    font-size: 1.85rem; margin-bottom: 1.25rem;
    transition: transform .4s var(--ease-spring), background .3s, color .3s;
}
.pillar-card:hover .pillar-icon { background: var(--cc-grad); color: #fff; transform: rotate(-6deg) scale(1.06); }
.pillar-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.pillar-card p { font-size: .9375rem; margin-bottom: 1rem; }
.pillar-link { font-family: var(--ff-head); font-weight: 600; font-size: .9375rem; display: inline-flex; align-items: center; gap: .3rem; }

/* Tabs de servicios */
.service-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.service-tabs .nav-link {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .7rem 1.35rem;
    border-radius: 999px;
    font-family: var(--ff-head); font-weight: 600; font-size: .9688rem;
    color: var(--cc-ink); background: #fff; border: 1px solid var(--cc-line);
    transition: all .25s var(--ease);
}
.service-tabs .nav-link:hover { border-color: var(--cc-magenta); color: var(--cc-magenta-700); }
.service-tabs .nav-link.active { background: var(--cc-grad-btn); color: #fff; border-color: transparent; box-shadow: var(--shadow-magenta); }

.service-card {
    display: flex; flex-direction: column; height: 100%;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--cc-line);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(237, 0, 140, .25); }
.service-card-icon {
    width: 54px; height: 54px; display: grid; place-items: center;
    border-radius: 16px; background: var(--cc-grad-soft); color: var(--cc-magenta); font-size: 1.65rem;
    margin-bottom: 1.1rem; transition: all .35s var(--ease-spring);
}
.service-card:hover .service-card-icon { background: var(--cc-grad); color: #fff; transform: scale(1.08) rotate(-6deg); }
.service-card h3 { font-size: 1.1875rem; margin-bottom: .45rem; }
.service-card p { font-size: .9375rem; flex: 1; margin-bottom: 1rem; }
.service-card-more { font-family: var(--ff-head); font-weight: 600; font-size: .9rem; color: var(--cc-magenta-700); display: inline-flex; align-items: center; gap: .3rem; }
.service-card:hover .service-card-more i { transform: translateX(4px); transition: transform .25s; }

/* Tarjeta de patología en home */
.patho-card {
    display: flex; align-items: flex-start; gap: 1rem;
    height: 100%; padding: 1.25rem;
    border-radius: var(--radius);
    background: #fff; border: 1px solid var(--cc-line);
    color: var(--cc-ink);
    transition: all .3s var(--ease);
}
.patho-card i {
    flex: 0 0 44px; height: 44px; display: grid; place-items: center;
    border-radius: 12px; background: var(--cc-grad-soft); color: var(--cc-magenta); font-size: 1.35rem;
    transition: all .3s var(--ease-spring);
}
.patho-card h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.patho-card p { font-size: .875rem; color: var(--cc-muted); margin: 0; line-height: 1.45; }
.patho-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.patho-card:hover i { background: var(--cc-grad); color: #fff; transform: rotate(-6deg); }
.patho-card:hover h3 { color: var(--cc-magenta-700); }

/* ---------------------------------------------------------------------
   18. CUERPO MÉDICO / STAFF (cuerpo-medico.php)
   --------------------------------------------------------------------- */
.staff-hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.staff-stat-box {
    padding: 1.25rem; border-radius: var(--radius);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    text-align: center; color: #fff;
}
.staff-stat-box strong { display: block; font-family: var(--ff-head); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.staff-stat-box span { font-size: .8125rem; color: rgba(255, 255, 255, .8); }

.director-spotlight {
    position: relative;
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: var(--radius-xl);
    background: var(--cc-grad-navy);
    color: rgba(255, 255, 255, .86);
    overflow: hidden;
    isolation: isolate;
    box-shadow: var(--shadow-lg);
}
.director-spotlight::before {
    content: ''; position: absolute; width: 420px; height: 420px; right: -140px; top: -160px; z-index: -1;
    background: radial-gradient(circle, rgba(237, 0, 140, .45), transparent 65%);
}
.director-spotlight::after {
    content: ''; position: absolute; width: 320px; height: 320px; left: -100px; bottom: -140px; z-index: -1;
    background: radial-gradient(circle, rgba(0, 172, 237, .35), transparent 65%);
}
.director-photo-wrap {
    position: relative;
    max-width: 280px; margin: 0 auto;
    padding: 6px; border-radius: 50%;
    background: var(--cc-grad);
    box-shadow: 0 20px 45px -10px rgba(237, 0, 140, .45);
}
.director-photo-wrap img {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center;
    border-radius: 50%; border: 4px solid var(--cc-navy); display: block;
}
.director-spotlight h2 { color: #fff; margin-bottom: .35rem; }
.director-quote {
    padding: 1rem 1.25rem; margin: 1.25rem 0;
    border-left: 3px solid var(--cc-cyan);
    background: rgba(255, 255, 255, .07);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic; color: #fff;
}

.staff-filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-btn {
    padding: .55rem 1.25rem; border-radius: 999px;
    border: 1px solid var(--cc-line); background: #fff;
    font-family: var(--ff-head); font-weight: 600; font-size: .9375rem; color: var(--cc-ink);
    cursor: pointer; transition: all .25s var(--ease);
}
.filter-btn:hover { border-color: var(--cc-magenta); color: var(--cc-magenta-700); }
.filter-btn.active { background: var(--cc-grad-btn); color: #fff; border-color: transparent; box-shadow: var(--shadow-magenta); }

.doctor-item { transition: opacity .3s var(--ease), transform .3s var(--ease); }
.doctor-item.is-hidden { display: none; }

.doctor-card {
    position: relative;
    height: 100%;
    display: flex; flex-direction: column;
    padding: 2rem 1.75rem;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--cc-line);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
    transform-style: preserve-3d;
}
.doctor-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(237, 0, 140, .25); }

.doctor-avatar {
    width: 148px; height: 148px; margin: 0 auto 1.25rem;
    padding: 4px; border-radius: 50%;
    background: var(--cc-grad);
    box-shadow: 0 12px 26px -10px rgba(237, 0, 140, .4);
}
.doctor-avatar img {
    width: 100%; height: 100%; object-fit: cover; object-position: top center;
    border-radius: 50%; border: 3px solid #fff; display: block;
}
.doctor-role {
    display: inline-block; padding: .25rem .85rem; border-radius: 999px;
    background: var(--cc-magenta-50); color: var(--cc-magenta-700);
    font-family: var(--ff-head); font-size: .78rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; margin-bottom: .75rem;
}
.doctor-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.doctor-summary { font-size: .9063rem; color: var(--cc-body); margin-bottom: 1rem; flex: 1; }
.doctor-countries { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-bottom: 1.25rem; }
.country-chip {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .2rem .65rem; border-radius: 999px;
    background: var(--cc-surface); border: 1px solid var(--cc-line);
    font-size: .75rem; font-weight: 600; color: var(--cc-navy);
}

.timeline-list { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline-list::before { content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--cc-grad); opacity: .45; }
.timeline-list li { position: relative; padding-left: 2rem; margin-bottom: .85rem; font-size: .9375rem; }
.timeline-list li::before {
    content: ''; position: absolute; left: 2px; top: .45em;
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff; border: 3px solid var(--cc-magenta);
}

/* ---------------------------------------------------------------------
   19. NUESTRO CENTRO Y GALERÍA (centro-del-corazon.php)
   --------------------------------------------------------------------- */
.facility-card {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow);
}
.facility-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); display: block; }
.facility-card:hover img { transform: scale(1.05); }
.facility-caption {
    position: absolute; inset: auto 0 0 0; padding: 1.1rem 1.25rem;
    background: linear-gradient(180deg, transparent, rgba(0, 28, 56, .88));
    color: #fff; font-family: var(--ff-head); font-weight: 600; font-size: .95rem;
}

/* ---------------------------------------------------------------------
   20. CONTACTO (contacto.php)
   --------------------------------------------------------------------- */
.contact-card {
    height: 100%; padding: 1.75rem; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--cc-line); box-shadow: var(--shadow-sm);
}
.contact-card i {
    width: 52px; height: 52px; display: grid; place-items: center;
    border-radius: 14px; background: var(--cc-grad-soft); color: var(--cc-magenta);
    font-size: 1.6rem; margin-bottom: 1rem;
}
.map-frame {
    width: 100%; height: 100%; min-height: 360px; border: 0;
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
}

@media (max-width: 767.98px) {
    .staff-hero-stats { grid-template-columns: 1fr; }
}
