/* ══════════════════════════════════════════════════════════════════════════════
   landing.css — Estilos del Sitio Corporativo LAESH (uipv1/index.html)
   Cargado después de style.css · Aplica solo a la landing page pública.
   ══════════════════════════════════════════════════════════════════════════════

   TABLA DE CONTENIDO
   ──────────────────────────────────────────────────────────────────────────────
   §1  BASE (~l.1)         Tokens inline, body, scroll, skip-to-content
   §2  NAVEGACIÓN (~l.72)  Navbar fixed, dropdown acceso, hamburger, botones
   §3  HERO (~l.198)       Hero slider, animaciones, secciones, tarjetas, grid
   §4  CARRUSELES (~l.322) Especialidades (scroll snap) · Calidad (fade)
   §5  MAPA & PRECIOS      Flotantes WA/social, mapa interactivo, precios
       (~l.361)
   §6  CATÁLOGO & CONTACTO Catálogo de estudios (acordeones), wrappers de
       (~l.439)            sección, P-LAESH-01 cleanup, Ubicación/Contacto
   §7  FOOTER (~l.702)     Footer principal, franja CTA, franja info, responsive
   §8  COMPONENTES (~l.840) Acerca de, barra progreso carrusel, galería calidad,
                            croquis, CTA promociones, cookie banner, floaters
   §9  MEDIA QUERIES       breakpoints responsivos: ≥1920 · ≤1024 · ≤767 · ≤480
       (~l.1019)           ≤375 · landscape · prefers-reduced-motion · @supports
   ──────────────────────────────────────────────────────────────────────────────
   Última actualización: 2026-08-17 · #8opt ToC + marcadores de sección
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Tipografía corporativa LAESH (Manual §2.7)
           Mosquito Std Black — fuente oficial; archivos pendientes de entrega del cliente.
           Fallback activo: 'Arial Black', Impact, sans-serif (definido en h1-h6 abajo).
           Cuando el cliente entregue los .woff2/.woff, restaurar el @font-face aquí. ── */

        /* ── Paleta oficial LAESH (Manual §2.5) ── */
        :root {
            /* Tokens canónicos — única fuente de verdad */
            --primary:            #0052B7;  /* azul LAESH */
            --primary-green:      #71CA11;  /* verde LAESH */
            --primary-green-light:#A3C912;  /* verde secundario */
            --secondary-green:    #CCE7F5;  /* azul cielo / light blue */
            --text-main:          #0f172a;
            --text-muted:         #64748b;
            --bg-page:            #f8fafc;
            --bg-surface:         #ffffff;
            --border:             #DADAD9;

            /* Alias semánticos → apuntan a tokens canónicos */
            --accent:             var(--primary-green-light);
            --brand-blue:         var(--primary);
            --brand-green:        var(--primary-green);
            --brand-green-sec:    var(--primary-green-light);
            --brand-light-blue:   var(--secondary-green);
            --brand-gray:         var(--border);
        }

        /* ── Scroll & Motion ── */
        html { scroll-behavior: smooth; }
        *, *::before, *::after { box-sizing: border-box; }

        /* ── Skip-to-content (WCAG 2.4.1) ── */
        .skip-link {
            position: absolute; top: -100px; left: 1rem; z-index: 9999;
            background: var(--brand-blue); color: #fff;
            padding: 0.5rem 1rem; border-radius: 0 0 8px 8px;
            font-weight: 700; font-size: 0.9rem; text-decoration: none;
            transition: top 0.15s;
        }
        .skip-link:focus { top: 0; }

        /* ── Body ── */
        body {
            font-family: 'Gill Sans','Gill Sans MT','Cabin',Calibri,'Trebuchet MS',sans-serif;
            background-color: #e2e8f0;
            color: var(--text-main);
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            min-height: 100dvh;
            margin: 0;
            padding: 0;
            overflow-x: clip;
        }
        h1,h2,h3,h4,h5,h6 {
            font-family: 'Mosquito Std Black','Arial Black',Impact,sans-serif;
        }

        /* ── Contenedor principal — max-width crea los márgenes grises laterales
           sobre el body #e2e8f0. El chrome decorativo (dots, URL-bar) fue
           eliminado; solo se conserva el efecto de franjas grises.
           calc(725px + 50vw) = 1450px + (100vw - 1450px)/2 → margen lateral = 50% del original ── */
        main {
            background: var(--bg-page);
            width: 100%;
            max-width: calc(725px + 50vw);
            display: flex;
            flex-direction: column;
        }


/* ── §2 NAVEGACIÓN ──────────────────────────────────────────────────────────── */

        /* ── Navbar fixed ──
           GAP-UI-02 (2026-09-22): fondo cambiado de blanco a verde LAESH sólido
           para habilitar el theming de la barra de navegación del sistema
           Android (confirmado: Chrome muestrea el fondo real del <body>, no el
           navbar ni el meta theme-color — ver body en @media ≤767px). El navbar
           en sí se probó en verde #71CA11 pero rompía el contraste: el
           wordmark "LAESH" del logo y el slogan (--brand-green) usan ese MISMO
           verde → verde sobre verde, invisible. Se usa azul claro LAESH
           (--secondary-green, #CCE7F5) en su lugar — preserva contraste tanto
           para los elementos verdes como azules del logo/slogan. El body sigue
           en verde sólido (es lo que realmente colorea la barra del sistema;
           navbar y body no necesitan ser el mismo color). */
        .navbar-sticky {
            position: fixed;
            top: 0; left: 0; right: 0;
            z-index: 1050;
            background: var(--secondary-green);
            box-shadow: 0 2px 16px rgba(15,23,42,0.08);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.45rem calc(max(1.5rem, (100vw - (725px + 50vw)) / 2 + 1.5rem)) 0.45rem calc(max(1.25rem, (100vw - (725px + 50vw)) / 2 + 1.25rem));
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }
        /* 2026-10-10 Opción B «Frescura de marca»: mismo degradado del header, translúcido.
           Sin borde inferior: la línea verde la dibuja .navbar-sticky::after (header-topbar.css)
           y así el alto del navbar no cambia al hacer scroll. */
        .navbar-sticky.navbar-scrolled {
            background: linear-gradient(90deg, rgba(204, 231, 245, 0.92) 0%, rgba(220, 239, 240, 0.92) 55%, rgba(230, 244, 215, 0.92) 100%) !important;
            backdrop-filter: blur(12px) !important;
            -webkit-backdrop-filter: blur(12px) !important;
            box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08) !important;
        }
        .landing-nav-spacer { height: 92px; flex-shrink: 0; }
        .navbar-sticky .logo {
            display: flex; align-items: center; gap: 12px;
            font-weight: 700; font-size: 1.6rem;
            color: var(--primary); text-decoration: none;
            margin-top: 0;
            flex-shrink: 0;
        }
        .navbar-sticky .nav-links {
            margin-left: 0; margin-right: 0;
            display: flex; gap: 1.15rem; align-items: center;
            margin-top: 0;
        }
        .navbar-sticky .nav-links a {
            text-decoration: none; color: var(--text-main);
            font-weight: 600; font-size: 0.96rem;
            letter-spacing: 0.02em;
            position: relative;
            padding: 0.38rem 0.65rem;
            line-height: 1.2;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .navbar-sticky .nav-links a.nav-item-multiline {
            text-align: center;
            line-height: 1.14;
            font-size: 0.88rem;
            padding: 0.25rem 0.65rem;
        }
        @media (hover: hover) and (pointer: fine) {
            .navbar-sticky .nav-links a:hover {
                color: var(--primary);
                background: rgba(0, 82, 183, 0.07);
            }
            .navbar-sticky .nav-links a.active {
                color: var(--primary);
                background: rgba(0, 82, 183, 0.10);
            }
        }
        .navbar-sticky .nav-links a::after {
            content: ''; position: absolute; bottom: 2px; left: 50%;
            transform: translateX(-50%); width: 0; height: 2px;
            border-radius: 2px;
            background: var(--primary);
            transition: width 0.3s cubic-bezier(0.16,1,0.3,1);
        }
        @media (hover: hover) and (pointer: fine) {
            .navbar-sticky .nav-links a:hover::after,
            .navbar-sticky .nav-links a.active::after {
                width: calc(100% - 1.2rem);
            }
        }

        /* ── Dropdown Acceso ── */
        .dropdown { position: relative; display: inline-block; }

        /* ── Hamburger (móvil) ── */
        .nav-hamburger {
            display: none; flex-direction: column; justify-content: center;
            align-items: center; gap: 5px; width: 44px; height: 44px;
            background: none; border: none; cursor: pointer; padding: 0.5rem;
            border-radius: 8px; transition: background 0.2s; z-index: 1051;
        }@media (hover: hover) and (pointer: fine) {
    .nav-hamburger:hover {
        background: rgba(0,82,183,0.06);
    }
}
        .nav-hamburger span {
            display: block; width: 22px; height: 2px;
            background: var(--primary); border-radius: 2px;
            transition: transform 0.25s ease, opacity 0.2s ease;
        }
        .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
        .nav-hamburger.open span:nth-child(2) { opacity: 0; }
        .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

        /* ── Botones ── */
        .btn {
            padding: 0.625rem 1.25rem; border-radius: 8px; border: none;
            font-weight: 600; font-size: 0.9rem; cursor: pointer;
            display: inline-flex; align-items: center; gap: 0.5rem;
            transition: all 0.2s ease-in-out;
        }
        .btn-primary { background: var(--primary-green); color: #0B1830; font-weight: 700; box-shadow: 0 4px 10px rgba(113,202,17,0.2); }@media (hover: hover) and (pointer: fine) {
    /* A6-fix: dark ink 8.38:1 */
        .btn-primary:hover {
        background: var(--primary); color: #fff; transform: translateY(-1px);
    }
} /* A6-fix: white on blue 8.59:1 */
        .btn-secondary { background: var(--secondary-green); color: var(--primary); }@media (hover: hover) and (pointer: fine) {
    .btn-secondary:hover {
        background: #B3DCF2; transform: translateY(-1px);
    }
}

        /* ── Animaciones scroll ── */
        .animate-on-scroll {
            opacity: 0; transform: translateY(30px);
            transition: opacity 1s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1);
        }
        .animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
        .delay-100 { transition-delay: 0.15s; }
        .delay-200 { transition-delay: 0.3s; }
        .delay-300 { transition-delay: 0.45s; }


/* ── §3 HERO & ANIMACIONES ─────────────────────────────────────────────────── */

        /* ── Hero Slider (Full-Bleed / Borde a Borde sin recortes) ── */
        .hero-premium {
            position: relative;
            width: 100%;
            aspect-ratio: 1882 / 876;
            height: auto;
            max-height: calc(100vh - 100px);
            overflow: hidden;
            padding: 0;
            background: var(--bg-page);
            box-sizing: border-box;
        }
        .hero-slides  { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; max-width: none; height: 100%; margin: 0; border-radius: 0; overflow: hidden; box-shadow: none; border: none; }
        .hero-slide {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background-color: #081d3d;
            background-image: radial-gradient(circle at 50% 40%, #0052b7 0%, #081d3d 85%);
            background-size: cover !important; background-position: center center !important; background-repeat: no-repeat;
            opacity: 0; z-index: 1; border-radius: 0 !important; overflow: hidden !important;
            transition: opacity 1.2s ease-in-out;
            display: flex; align-items: flex-end; justify-content: center; padding: 2rem 2rem 2.2rem;
            /* padding-bottom: 2.2rem=35.2px — ~8px sobre dots (27.5px activo) · medio renglón arriba del rozar */
        }

        /* NA-01: Dots de paginación del hero */
        .hero-dots {
            position: absolute;
            bottom: 0.75rem;
            left: 50%;
            transform: translateX(-50%);
            z-index: 20;
            display: flex;
            gap: 0.55rem;
            align-items: center;
        }
        .hero-dot {
            width: 10px; height: 10px;
            border-radius: 50%;
            background: rgba(255,255,255,0.45);
            border: 1.5px solid rgba(255,255,255,0.7);
            cursor: pointer;
            padding: 0;
            transition: background 0.2s, transform 0.2s;
            flex-shrink: 0;
        }
        .hero-dot.active {
            background: #fff;
            transform: scale(1.3);
            border-color: #fff;
        }
        @media (hover: hover) and (pointer: fine) {
            .hero-dot:hover { background: rgba(255,255,255,0.8); }
        }

        /* A7-fix + GM-03: Botón pausa con label visible — WCAG 2.2.2 (Reubicado arriba a la derecha para no tapar textos de la imagen) */
        .hero-pause-btn {
            position: absolute;
            top: 0.75rem;
            left: 1rem;
            right: auto;
            bottom: auto;
            z-index: 20;
            width: auto;
            height: 28px;
            border-radius: 30px;
            padding: 0 0.65rem 0 0.5rem;
            gap: 0.35rem;
            border: 1.5px solid rgba(255,255,255,0.65);
            background: rgba(0,0,0,0.45);
            backdrop-filter: blur(4px);
            color: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.15s, border-color 0.15s;
            flex-shrink: 0;
            font-size: 0.75rem;
        }@media (hover: hover) and (pointer: fine) {
    .hero-pause-btn:hover {
        background: rgba(0,0,0,0.68); border-color: rgba(255,255,255,0.95);
    }
}
        .hero-pause-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
        .hero-slide.active { opacity: 1; z-index: 2; }
        /* D — Lazy-load de imágenes hero: el browser no descarga background-image de slides
           ocultos (opacity:0). Solo el slide.active dispara la descarga.
           !important necesario para superar el inline bg_style del CMS. */
        .hero-slide:not(.active) { background-image: none !important; }

        /* ── Secciones ── */
        .section-header { text-align: center; margin: 0 0 3.5rem; padding: 0 1rem; }
        .section-header h2 {
            font-size: 2.25rem; color: var(--primary);
            margin-bottom: 0.75rem; position: relative;
            display: inline-block; padding-bottom: 0.75rem;
        }
        .section-header h2::after {
            content: ''; position: absolute; bottom: 0; left: 25%; width: 50%;
            height: 3px; background: var(--primary-green); border-radius: 2px;
        }
        .section-header p { color: var(--text-muted); font-size: 1.2rem; max-width: 600px; margin: 0 auto; }

        /* ── Tarjetas ── */
        .card-premium {
            background: var(--bg-surface); border-radius: 16px; padding: 2.25rem;
            box-shadow: 0 4px 20px rgba(0,0,0,0.02);
            border: 1px solid rgba(226,232,240,0.8);
            transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
            text-align: left; position: relative; overflow: hidden;
            display: flex; flex-direction: column; justify-content: space-between; height: 100%;
        }@media (hover: hover) and (pointer: fine) {
    .card-premium:hover {
        transform: translateY(-8px) scale(1.02); box-shadow: 0 25px 35px -5px rgba(113,202,17,0.1); border-color: rgba(113,202,17,0.3);
    }
}

        /* ── Grid ── */
        .grid-layout {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2.25rem; padding: 0 2.5rem; margin-bottom: 3.5rem;
        }

        /* ── Carrusel especialidades ── */

/* ── §4 CARRUSELES ──────────────────────────────────────────────────────────── */

        .specialties-carousel-viewport { overflow: hidden; width: 100%; position: relative; padding: 0 1.5rem; }
        .specialties-carousel-track {
            display: flex; gap: 2rem; overflow-x: auto;
            scroll-behavior: smooth; scrollbar-width: none; padding: 1rem 0;
            scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
        }
        .specialties-carousel-track::-webkit-scrollbar { display: none; }
        .carousel-card {
            flex: 0 0 calc((100% - 4rem) / 3);
            display: flex; flex-direction: column; box-sizing: border-box;
            scroll-snap-align: start; scroll-snap-stop: always;
            background: #fff; border-radius: 12px; border: 1px solid var(--border);
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); overflow: hidden;
            transition: transform 0.2s ease, box-shadow 0.2s ease; margin-bottom: 2px;
        }@media (hover: hover) and (pointer: fine) {
    .carousel-card:hover {
        transform: translateY(-4px); box-shadow: 0 12px 20px rgba(0,0,0,0.08); border-color: var(--primary-green);
    }
}
        .carousel-arrow-btn {
            background: rgba(255,255,255,0.9); border: 1px solid var(--border);
            border-radius: 50%; width: 44px; height: 44px;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.08);
            transition: all 0.2s ease; z-index: 10;
        }@media (hover: hover) and (pointer: fine) {
    .carousel-arrow-btn:hover {
        background: var(--secondary-green); border-color: var(--primary-green);
    }
}



        
/* ── §5 MAPA, FLOTANTES & PRECIOS ───────────────────────────────────────────── */

/* ── WhatsApp & Social flotantes ── */
        .whatsapp-float {
            position: fixed; bottom: 110px; right: 30px;
            width: 60px; height: 60px; background: #25d366; color: white;
            border-radius: 50%; display: flex; align-items: center; justify-content: center;
            box-shadow: 0 8px 24px rgba(37,211,102,0.4); z-index: 1001;
            text-decoration: none; transition: all 0.3s ease;
        }@media (hover: hover) and (pointer: fine) {
    .whatsapp-float:hover {
        transform: scale(1.1);
    }
}
        .whatsapp-float::before {
            content: ''; position: absolute; width: 100%; height: 100%;
            border-radius: 50%; background: inherit; opacity: 0.6; z-index: -1;
            animation: pulse-ring 1.8s infinite;
        }
        @keyframes pulse-ring {
            0%   { transform: scale(1);   opacity: 0.6; }
            100% { transform: scale(1.6); opacity: 0;   }
        }
        .social-float {
            position: fixed; bottom: 30px; right: 30px;
            width: 60px; height: 60px; color: white; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            z-index: 1001; text-decoration: none; transition: all 0.3s ease;
        }@media (hover: hover) and (pointer: fine) {
    .social-float:hover {
        transform: scale(1.1);
    }
}


        /* ── Precios ── */
        .precio-cat-item {
            display: flex; justify-content: space-between; align-items: baseline;
            padding: 6px 10px; border-bottom: 1px solid #f1f5f9; font-size: 0.88rem;
        }
        .precio-cat-item:last-child { border-bottom: none; }
        .precio-cat-nombre { color: var(--text-main); flex: 1; padding-right: 8px; }
        .email-link-hover { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }@media (hover: hover) and (pointer: fine) {
    .email-link-hover:hover {
        color: var(--primary-green);
    }
}
        /* ── Responsive ≥1025px (desktop) ── */

        /* ── Responsive ≤1024px (tablet) ── */

        /* ── Tagline navbar ── */
        /* flex: 0 1 auto + max-width limita el ancho del tagline para que margin-left:auto
           del nav-links tenga espacio y los ítems queden bien separados a la derecha. */
        .navbar-tagline { font-style: italic; color: var(--brand-green); font-size: 1.01rem; font-weight: 700 !important; letter-spacing: 0.01em; white-space: normal; overflow: visible; line-height: 1.2; flex: 0 0 auto; min-width: 0; max-width: none; text-align: left; margin-left: 1rem; margin-right: auto; padding: 0 1rem; }
        .navbar-tagline .tagline-space { display: none; }
        .navbar-tagline .tagline-br { display: inline; }

        /* ── Responsive ≤768px (móvil) ── */

        /* ── Landscape compacto ── */

        /* ── ≤480px — wrapping en footer y mapa ── */

        /* ── Móvil muy pequeño ≤375px ── */

        
/* ── §6 CATÁLOGO, WRAPPERS DE SECCIÓN & CONTACTO ───────────────────────────── */

/* ── Catálogo de Estudios — acordeones por grupo (migrado de style.css) ── */
        .orden-acc { margin-bottom: 10px; border: 1.5px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
        .orden-acc-hdr {
            display: flex; align-items: center; justify-content: space-between;
            padding: 11px 16px; background: #f1f5f9; cursor: pointer;
            font-weight: 700; font-size: 0.88rem; color: var(--primary);
            border: none; width: 100%; text-align: left; gap: 8px; user-select: none;
            transition: background 0.15s;
        }@media (hover: hover) and (pointer: fine) {
    .orden-acc-hdr:hover {
        background: #e2e8f0;
    }
}
        .orden-acc-body {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr)); /* R-CSS-06 */
            gap: 12px; padding: 14px; background: var(--bg-surface);
            overflow: hidden; max-height: 9999px; transition: max-height 0.35s ease, padding 0.3s;
        }
        /* R8: sin !important — .orden-acc-body.collapsed tiene especificidad (0,2,0) > (0,1,0) base */
        .orden-acc-body.collapsed { max-height: 0; padding-top: 0; padding-bottom: 0; }
        .orden-cat { border: 1.5px solid #e2e8f0; border-radius: 8px; overflow: hidden; transition: box-shadow 0.2s; }@media (hover: hover) and (pointer: fine) {
    .orden-cat:hover {
        box-shadow: 0 2px 10px rgba(0,82,183,0.10);
    }
}
        .orden-cat-hdr {
            background: var(--primary); color: #fff;
            font-size: 0.76rem; font-weight: 700; padding: 7px 12px;
            text-transform: uppercase; letter-spacing: 0.04em;
            font-family: 'Arial Black', Impact, sans-serif;
        }
        .orden-cat-body { padding: 8px 10px; background: var(--bg-surface); }

        /* Dots paginación del carrusel de especialidades */
        .specialties-dots {
            position: relative;
            bottom: auto;
            left: auto;
            transform: none;
            justify-content: center;
            margin-top: 0.45rem;
            margin-bottom: 0.75rem;
            display: flex;
            gap: 0.55rem;
            align-items: center;
            flex-wrap: wrap;
        }
        .specialties-dots .hero-dot {
            background: #cbd5e1;
            border: 1.5px solid #94a3b8;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            cursor: pointer;
            padding: 0;
            transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
        }
        .specialties-dots .hero-dot.active {
            background: var(--primary);
            border-color: var(--primary);
            transform: scale(1.3);
            box-shadow: 0 0 6px rgba(0, 82, 183, 0.4);
        }
        /* Responsive acordeón */

        /* ── P-LAESH-01: clases extraídas de inline styles ── */

        /* Carrusel de Áreas — Imagen flush con esquinas superiores redondeadas (border-radius: 12px 12px 0 0) */
        .carousel-card img { width: 100%; height: 295px; object-fit: cover; object-position: top center; display: block; margin: 0; border-radius: 12px 12px 0 0; border: none; }
        .carousel-card__body { padding: 0.35rem 0.9rem 0.45rem 0.9rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: flex-start; }
        .carousel-card h3, .carousel-card__body h3, .carousel-card__body [style*="font-size:1.2rem"] { color: var(--text-muted); margin-top: 0 !important; margin-bottom: 0.15rem !important; font-size: 0.98rem !important; font-weight: 700 !important; line-height: 1.25 !important; }
        .carousel-card p, .carousel-card__body p, .carousel-card__body [style*="font-size:0.95rem"] { color: var(--text-muted); margin-top: 0 !important; margin-bottom: 0 !important; line-height: 1.4 !important; font-size: 0.86rem !important; }


        /* Aviso de privacidad (modal) */
        .aviso-h4 { color: var(--primary); font-size: 0.9rem; margin: 1.25rem 0 0.35rem; }
        .aviso-p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; }
        .aviso-p--sm { margin-bottom: 0.5rem; }
        .aviso-list { color: var(--text-muted); font-size: 0.88rem; line-height: 1.75; padding-left: 1.2rem; margin-bottom: 0.75rem; }
        .aviso-list--sm { margin-bottom: 0.5rem; }

        /* Helpers de layout */
        .flex-ic-8  { display: flex; align-items: center; gap: 8px; }
        /* Transición permanente en el SVG directo del acordeón (selector estable, nunca toggled)
           Evita que la animación de cierre sea un snap — la clase .chevron-open se agrega/remueve
           pero el transition siempre está presente vía este selector. */
        .orden-acc-hdr > svg { flex-shrink: 0; transition: transform 0.2s; }
        /* Estado abierto — rotación vía clase toggleada por JS */
        .chevron-open { transform: rotate(-180deg); }

        /* Texto y botones */
        .txt-green        { color: var(--primary-green); }
        .txt-main         { color: var(--text-main); }
        .txt-primary-bold { color: var(--primary); font-weight: 700; }
        .txt-pgd-sm       { color: var(--primary); font-weight: 700; font-size: 0.87rem; margin-bottom: 0.4rem; }
        .list-link-block  { color: var(--text-main); display: block; font-size: 1.08rem; margin-bottom: 2px; }

        /* Iconos inline */
        .icon-22 { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; opacity: 0.75; }
        .icon-24 { width: 24px; height: 24px; }


/* UX-2: noscript map fallback — sin inline style */
.map-bar          { position: relative; width: 100%; display: flex; align-items: center;
                    max-width: 1380px; margin: 0 auto; padding: 0 1rem; }
.modal-scroll-body{ overflow-y: auto; max-height: 320px; padding-right: 8px; }
.modal-lg         { max-width: 680px; width: 95%; }
.modal-sm         { max-width: 600px; }
.modal-login-box  { max-width: 375px; } /* cascade wins: landing.css carga después de style.css */
.hero-logo        { height: 60px; width: auto; object-fit: contain; }
/* width:auto ignora el atributo HTML width="2634" y calcula el ancho por aspect-ratio (≈277px).
   Sin esta regla el browser usa 2634px de layout-width empujando nav-links fuera del viewport. */
.section-catalog  { margin-top: 1rem; padding: 0 1rem; max-width: 1380px;
                    margin-left: auto; margin-right: auto; text-align: center; }
.section-catalog__note {
    text-align: center;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--primary);
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    display: block;
    margin: 1rem auto 1.5rem auto;
    letter-spacing: 0.01em;
    box-shadow: none;
}
.highlight-block      { border-left: 3px solid var(--primary-green);
                         background: rgba(113,202,17,0.06);
                         padding: 0.85rem 1rem; border-radius: 0 6px 6px 0;
                         margin-top: 0.5rem; }
.txt-base-lh      { font-size: 0.92rem; line-height: 1.55; color: var(--text-main); }
.faq-p--sm2       { color: var(--text-muted); font-size: 0.87rem; line-height: 1.7; margin-bottom: 0.9rem; }
.faq-p--muted     { margin: 0; font-size: 0.88rem; line-height: 1.5; color: var(--text-muted); }
.info-col         { padding: 1rem; display: flex; flex-direction: column;
                    justify-content: flex-start; align-self: start; }
.info-col--stretch{ padding: 1rem; display: flex; flex-direction: column;
                    justify-content: flex-start; align-items: stretch; }
.txt-pgd-sub      { color: var(--primary); margin-bottom: 0.6rem; font-size: 1rem; }
.txt-primary-c    { color: var(--primary); }
.fb-bg            { background-color: #1877F2; box-shadow: 0 8px 24px rgba(24,119,242,0.4); }
/* .google-bg retirada 2026-10-14: el botón flotante de Google se quitó de index.php (la reseña va en el footer) */

/* ── Botón CTA Google Reviews (sección calidad y ubicacion) ── */
.btn-google-review {
    display: inline-flex; align-items: center; gap: .55rem;
    background: #fff; color: #3c4043;
    border: 1px solid #dadce0; border-radius: 6px;
    padding: .65rem 1.25rem; font-size: .9rem; font-weight: 600;
    text-decoration: none; transition: box-shadow .2s, background .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.btn-google-review:hover { box-shadow: 0 3px 10px rgba(0,0,0,.18); background: #f8f9fa; }
.btn-google-review--sm   { font-size: .82rem; padding: .45rem .9rem; }
/* ── Google Reviews — link inline en footer: hereda color y peso del texto adyacente ── */
.footer-google-link { color: inherit; font-weight: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer-google-link:hover { text-decoration: underline; } }

.pt-xs            { padding-top: 0.35rem; padding-bottom: 0.35rem; }

/* ── P-LAESH-01 Phase3 — index.html final cleanup ── */
.carousel-arrow-btn--left  { position: absolute; left: -10px; }
.carousel-arrow-btn--right { position: absolute; right: -10px; }

/* ── Ubicación: Datos de Contacto estrecho / Mapa ancho ─────
   Selector con ID para ganar en especificidad sobre cualquier
/* ── Ubicación y Contacto — Stack Horizontal ── */
.location-stack-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-card-horizontal {
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.contact-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    align-items: center;
    margin-top: 0.85rem;
}

/* ── Ficha Datos de Contacto e Historia (Ficha Ancha) editables en Tabla sin bordes ── */
.contact-table-rte,
.table-borderless-rte,
.table table.contact-table-rte,
.table table.table-borderless-rte,
figure.table table.contact-table-rte,
figure.table table.table-borderless-rte {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important;
    border-width: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    margin-top: 0.5rem;
}
.contact-table-rte td,
.contact-table-rte th,
.table-borderless-rte td,
.table-borderless-rte th,
.table table.contact-table-rte td,
.table table.contact-table-rte th,
.table table.table-borderless-rte td,
.table table.table-borderless-rte th,
figure.table table.contact-table-rte td,
figure.table table.contact-table-rte th,
figure.table table.table-borderless-rte td,
figure.table table.table-borderless-rte th {
    vertical-align: middle;
    padding: 8px 12px;
    border: none !important;
    border-width: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}
.contact-table-rte img,
.table-borderless-rte img {
    vertical-align: middle;
    display: inline-block;
    flex-shrink: 0;
}
@media (max-width: 960px) {
    .contact-table-rte,
    .contact-table-rte tbody,
    .contact-table-rte tr,
    .contact-table-rte td,
    .table-borderless-rte,
    .table-borderless-rte tbody,
    .table-borderless-rte tr,
    .table-borderless-rte td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .contact-table-rte td,
    .table-borderless-rte td {
        padding: 10px 0 !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }
    .contact-table-rte td:last-child,
    .table-borderless-rte td:last-child {
        border-bottom: none !important;
    }
}


.map-card {
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 82, 183, 0.12);
    box-shadow: 0 10px 25px -5px rgba(0, 82, 183, 0.08), 0 8px 10px -6px rgba(0, 82, 183, 0.04);
    height: 580px;
    min-height: 580px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.info-row-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
#ubicacion .acerca-h3 {
    margin-bottom: 0.75rem;
}

/* ── Responsive móvil para sección Ubicación ── */


/* ── §7 FOOTER ──────────────────────────────────────────────────────────────── */

/* ════════════════════════════════════════════════════════════
   FOOTER PRINCIPAL — index.html
   ════════════════════════════════════════════════════════════ */

/* Contenedor raíz — gradiente LAESH azul */
.footer-main {
    background: linear-gradient(to right, #0052B7, #002252);
    color: #fff;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}










/* ── Franja de información inferior ── */
.footer-info {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.4rem 1.5rem 0.25rem !important;
    text-align: center;
}

.footer-logo-img,
.footer-info img.footer-logo-img,
.footer-info img[src*="logo"] {
    display: block;
    max-width: 230px !important;
    width: 60%;
    height: auto !important;
    max-height: 48px;
    object-fit: contain;
    margin: 0 auto 0.25rem;
    opacity: 0.95;
    filter: brightness(0) invert(1);
}

.footer-info img {
    max-width: 100%;
    height: auto;
}

.footer-info figure.image {
    display: inline-block;
    max-width: 100%;
    margin: 0.25rem auto;
}

.footer-info figure.image:has(.footer-logo-img),
.footer-info figure.image:has(img[src*="logo"]) {
    max-width: 230px !important;
    width: 60% !important;
    margin: 0 auto 0.25rem !important;
}

.footer-text {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.35;
    margin: 0.1rem 0;
}
.footer-text a          { color: #fff; font-weight: 700; text-decoration: none; }@media (hover: hover) and (pointer: fine) {
    .footer-text a:hover {
        text-decoration: underline;
    }
}

/* ── Responsive móvil footer ── */


/* ── §8 COMPONENTES STANDALONE ──────────────────────────────────────────────── */

/* ── Sección "Acerca de" — reducir espacio inferior antes del footer ── */
#acerca-de { padding-bottom: 0; }

/* ── Ficha "25 años" — ampliar ancho solo en desktop (5rem por lateral) ── */

/* ── UX3: Barra de progreso del carrusel de especialidades ──
   Refleja scrollLeft / scrollWidth para cualquier tamaño de pantalla
   (desktop 3 tarjetas visibles, tablet 1-2, móvil 1). ── */
.carousel-progress-wrap {
    display: none !important;
}
.carousel-progress {
    height: 3px;
    background: rgba(0, 0, 0, 0.10);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}
.carousel-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.15s ease-out;
    will-change: width;
}
/* CSS-1a-fix: regla movimiento reducido movida a responsive.css Tier 0 */


/* Hero slide backgrounds — imagen inyectada inline por index.php vía $slides[N]['bg_style']
   (premisa cero fallback: imagen viene de CMS; sin imagen → fondo vacío)
   bg-slide-N solo conserva el focal point; background-image se aplica via style="" en PHP.
   bg-slide-N: desktop hereda background-size:cover de .hero-slide base (l.237);
   móvil/tablet sobreescriben a contain (Issue-3 fix: l.1169 ≤1024px, l.1261 ≤767px) */
.bg-slide-1 { background-position: center 30%; }
.bg-slide-2 { background-position: center center; }
.bg-slide-3 { background-position: center center; }
.bg-slide-4 { background-position: center 40%; }
.bg-slide-5 { background-position: center center; }

/* ── GM-03: Label del botón pausa ── */
.hero-pause-label {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    letter-spacing: 0.02em;
}


/* ── GM-02: Croquis — contenedor médico con barra de navegación alineada ── */
.map-bottom-bar {
    display: flex;
    justify-content: center;
    padding: 0.5rem 1rem 0;
    border-bottom: 1px solid rgba(0, 82, 183, 0.1);
    background: #ffffff;
    width: 100%;
}
.map-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 760px; /* Alineado exactamente con las verticales del croquis en desktop */
}
.map-sep {
    display: none;
}
#btn-map-interactive {
    background: none;
    border: none;
    padding: 0.5rem 0.5rem 0.25rem;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}
#btn-map-interactive img {
    width: 18px;
    height: 18px;
    filter: brightness(0) saturate(100%) invert(21%) sepia(87%) saturate(3025%) hue-rotate(204deg) brightness(88%) contrast(106%);
    transition: transform 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
    #btn-map-interactive:hover {
        color: var(--primary);
        border-bottom: 2px solid var(--primary-green);
    }
    #btn-map-interactive:hover img {
        transform: translateY(-1px) translateX(1px);
    }
}
#btn-map-interactive:active {
    transform: translateY(0);
}

#map-static,
.map-static-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;                /* ocupa el espacio restante de .map-card flex */
    min-height: 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #f8fafc 0%, #e0f2fe 100%);
    border-radius: 0 0 14px 14px;
}
.map-zoom-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: inherit;
    background: transparent;
    cursor: default;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s ease;
}
.map-zoom-link:active {
    transform: scale(0.995);
}
.map-zoom-img {
    display: block;
    width: 100%;
    max-width: 760px;
    height: 100%;
    object-fit: contain;    /* imagen completa, sin recorte, escala al área */
    border-radius: 6px;
    margin: 0 auto;
    transition: transform 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
    .map-zoom-link:hover .map-zoom-img {
        transform: scale(1.01);
    }
}


/* ── TU-02: Banner de consentimiento de cookies ── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9500;
    background: #0D1526;
    color: #E2E8F0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    flex-wrap: wrap;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.25);
    transform: translateY(110%);       /* oculto por defecto */
    transition: transform 0.35s ease;
}
.cookie-banner.visible  { transform: translateY(0); }    /* TU-02: JS agrega .visible */
.cookie-banner__text {
    flex: 1;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}
.cookie-banner__link {
    color: #71CA11;
    text-decoration: underline;
}
.cookie-banner__btn {
    flex-shrink: 0;
    background: #0052B7;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.45rem 1.1rem;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.cookie-banner__btn:hover { background: #003f8e; }

/* ── CTA-03: Ocultar floaters cuando modal o banner abiertos ── */
body.modal-open .whatsapp-float,
body.modal-open .social-float { opacity: 0; pointer-events: none; transition: opacity 0.2s; }



/* ── §9 MEDIA QUERIES ───────────────────────────────────────────────────────── */

/* --- MEDIA QUERIES ABSORBIDAS DESDE RESPONSIVE.CSS --- */
/* --- REGLAS GENERALES RESPONSIVAS --- */
@supports (padding: env(safe-area-inset-bottom)) {
    .sidebar { padding-bottom: env(safe-area-inset-bottom); }
    .modal-content { padding-bottom: calc(1.75rem + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
        .hero-slide,
        .whatsapp-float::before,
        .globito.pulse,
        .btn,
        .card-premium,
        .carousel-card,
        .carousel-progress-fill {
            transition: none;
            animation: none;
        }
}

@media (min-width: 1920px) {
    body { padding: env(safe-area-inset-top, 3rem) env(safe-area-inset-right, 2rem) env(safe-area-inset-bottom, 3rem) env(safe-area-inset-left, 2rem); font-size: 1.05rem; }
    .navbar-sticky { padding: 1.25rem calc(max(2rem, (100vw - (725px + 50vw)) / 2 + 2rem)) 1.25rem calc(max(2rem, (100vw - (725px + 50vw)) / 2 + 2rem)); }
    .navbar-sticky .nav-links { gap: 2.5rem; }
    .navbar-sticky .nav-links a { font-size: 1.0rem; }
    /* hero-premium: max-height:800px ya aplicado por el bloque ≥1025px — sin override adicional */
    .grid-layout {
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2.75rem;
            padding: 0 4rem;
        }
    .specialties-carousel-viewport { max-width: 1850px; padding: 0 1.5rem; }
    .carousel-card { flex: 0 0 calc((100% - 4rem) / 3); }
    .carousel-card img { height: 310px; object-fit: cover; object-position: top center; border-radius: 12px 12px 0 0; border: none; }
    .section-header h2 { font-size: 2.5rem; }
}

@media (min-width: 768px) {
    /* Hero tablet: proporción natural de imagen sin recorte */
    .hero-premium { aspect-ratio: 1882 / 876; height: auto; min-height: 320px; }
}

@media (min-width: 1025px) {
    /* Hero desktop: aspect-ratio natural con altura proporcional */
    .hero-premium { aspect-ratio: 1882 / 876; height: auto; min-height: 420px; max-height: 800px; }
    .hero-slide {
            padding-left: 8rem;
            padding-right: 8rem;
        }
    .specialties-carousel-viewport {
            max-width: 96%;
            padding: 0 1.25rem;
        }
    .specialties-carousel-track {
            gap: 1.5rem;
            padding-bottom: 4px;
        }
    .carousel-card {
            flex: 0 0 calc((100% - 3rem) / 3);
            margin-bottom: 2px;
        }
    .carousel-card img {
            height: 290px;
            object-fit: cover;
            object-position: top center;
            border-radius: 12px 12px 0 0;
            border: none;
        }
    .section-header h2 { font-size: 2.25rem; }
    .section-header p  {
            font-size: 1.1rem;
            max-width: 750px;
            margin-left: auto;
            margin-right: auto;
        }
}

@media (min-width: 1025px) {
    .navbar-sticky .nav-links { display: flex; }
    .nav-hamburger { display: none; }
}

@media (max-width: 1024px) {
    body { padding: 1rem 0; background: var(--bg-surface); }
    .browser-header { display: none; }
    .navbar-sticky { top: 0; padding: 0.65rem 1.5rem; }
    .landing-nav-spacer { height: 72px; }
    /* hero tablet ── imagen completa sin corte lateral; tarjeta y botón escalados */
    .hero-premium { aspect-ratio: 1882 / 876; height: auto; min-height: 260px; max-height: 500px; padding: 0; }
    .hero-slide   { background-size: cover !important; background-position: center center !important; border-radius: 0 !important; overflow: hidden !important; }
    /* especificidad (0,4,0) supera targeting.css :root[data-input="touch"] .btn (0,3,0)
       min-height:unset cancela la regla de 44px de toque mínimo para botones hero */
    .navbar-sticky > .nav-links { display: none; }
    .navbar-sticky > .nav-links.mobile-open {
            display: flex;
            flex-direction: column;
            position: absolute;
            top: 100%; left: 0; right: 0;
            background: rgba(255,255,255,0.98);
            padding: 1rem;
            box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        }
    .nav-hamburger { display: flex; }
    .dropdown { display: block; width: 100%; }
    .navbar-tagline { display: block; font-size: 0.78rem; font-weight: 700 !important; line-height: 1.22; white-space: normal; max-width: none; text-align: center; margin-left: auto; margin-right: auto; padding: 0 0.75rem; }
    /* hero-premium: altura controlada por breakpoints vh+min+max — sin override aquí */
    .grid-layout {
            grid-template-columns: repeat(2, minmax(0, 1fr)); /* R-CSS-06 */
            padding: 0 1.5rem;
            gap: 1.5rem;
        }
    #ubicacion .grid-layout { grid-template-columns: 1fr; }
    section { padding: 1.5rem 0; }
    .section-header { margin: 2rem 0 1.25rem; }
    #promociones > div:last-of-type { margin-bottom: 1.5rem; }
    .specialties-carousel-viewport { padding: 0 0.75rem; }
    .specialties-carousel-track { gap: 1rem; padding-bottom: 4px; }
    .carousel-card { flex: 0 0 calc(100% - 1.5rem); margin-bottom: 2px; }
    /* object-position:top center: en tablet el card ocupa ~100% ancho → cover escala imagen muy alta
       → el crop central oculta la parte superior donde están los sujetos; top center los mantiene visibles */
    .carousel-card img { height: 260px; object-fit: cover; object-position: top center; border-radius: 12px 12px 0 0; border: none; }
    .orden-acc-body { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* R-CSS-06 */
}

@media (max-width: 767px) {
    /* GAP-UI-02 (2026-09-22): confirmado en dispositivo real — el fondo del
       <body> es lo que Chrome (Android, gesture bar) colorea como barra de
       navegación del sistema. Se usa el mismo azul claro LAESH del navbar
       (--secondary-green, #CCE7F5) para que ambos coincidan visualmente. */
    body { padding: 0; background: var(--secondary-green); }
    .navbar-sticky {
            top: 0;
            border-bottom: 2px solid var(--primary);
            padding: 0.35rem 0.75rem 0.4rem;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: flex-start;
        }
    .landing-nav-spacer { height: 94px; }
    /* GAP-UI-03: logo mobile nítido sin distorsión (aspect ratio 4.61:1 intacto) */
    .navbar-sticky .logo img { height: auto; max-height: 42px; width: auto; max-width: 175px; object-fit: contain; flex-shrink: 0; margin-top: 2px; }
    .navbar-sticky .logo { order: 1; }
    /* 2026-09-25 (pedido del usuario, 2ª revisión): fila 1 = logo + hamburguesa
       (esquina superior derecha). Fila 2 = slogan (izquierda) + buscador
       (derecha, ancho reducido), EN LA MISMA fila, a la altura del texto del
       slogan — la línea azul divisoria queda justo al tope donde termina esa
       fila, sin una tercera fila para el buscador. .navbar-center-block deja
       de "desenvolverse" (ya no display:contents) — ahora es su propia fila
       flex (order:3, flex-basis:100% fuerza el salto de línea tras logo+
       hamburguesa) que acomoda internamente slogan+buscador uno junto al otro. */
    .navbar-center-block {
            order: 3;
            flex: 0 0 100%;
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 0.5rem;
            margin-top: 4px;
            border-left: none !important;
            padding-left: 0 !important;
            margin-left: 0 !important;
            min-height: auto !important;
        }
    .nav-hamburger { order: 2; }
    .navbar-tagline {
            display: inline-block;
            font-size: 0.75rem;
            font-weight: 700 !important;
            letter-spacing: 0.01em;
            line-height: 1.15;
            margin: 0;
            padding: 0;
            text-align: left;
            opacity: 0.95;
            white-space: nowrap !important;
            max-width: none;
            flex: 0 1 auto;
            min-width: 0;
        }
    .navbar-tagline .tagline-br,
    .navbar-tagline br { display: none !important; }
    .navbar-tagline .tagline-space { display: inline !important; }
    .header-search-wrap--mobile {
            max-width: 138px;
            flex: 0 0 auto;
            margin-top: 0;
            margin-left: auto;
        }
    .navbar-sticky > .nav-links { display: none; }
    .navbar-sticky > .nav-links.mobile-open {
            display: flex;
            flex-direction: column;
            position: absolute;
            top: 100%; left: 0; right: 0;
            background: rgba(255,255,255,0.98);
            padding: 1rem;
            box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        }
    .navbar-sticky > .nav-links.mobile-open a.nav-item-multiline {
            text-align: left;
        }
    .navbar-sticky > .nav-links.mobile-open a.btn-nav-medicos {
            margin-top: 0.5rem;
            align-self: flex-start;
            padding: 0.45rem 1.25rem !important;
        }
    .nav-hamburger { display: flex; }
    .dropdown { display: block; width: 100%; }
    /* ── hero móvil ── proporción exacta de imagen sin recortes laterales ──────── */
    .hero-premium { aspect-ratio: 1882 / 876; height: auto; min-height: unset; max-height: none; padding: 0; }
    .hero-slide   { background-size: 100% 100% !important; background-position: center center !important; border-radius: 0 !important; overflow: hidden !important; padding: 0; }
    .hero-dots    { bottom: 3px; gap: 0.35rem; }
    .hero-dot     { width: 7px; height: 7px; opacity: 0.75; }
    .hero-pause-btn { top: 6px; left: 8px; right: auto; height: 24px; padding: 0 0.5rem; font-size: 0.68rem; }
    /* botón pausa en móvil: solo icono, sin texto "Pausar/Reanudar" */
    .hero-pause-label { display: none; }
    .hero-pause-btn   { width: 30px; padding: 0; border-radius: 50%; justify-content: center; }
    .grid-layout {
            grid-template-columns: 1fr;
            padding: 0 1rem;
            gap: 1.25rem;
        }
    #ubicacion .grid-layout, #calidad .grid-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .orden-acc-body { grid-template-columns: 1fr; }
    section { padding: 0.75rem 0; }
    .section-header { margin: 1.25rem 0 0.75rem; padding: 0 1rem; }
    .section-header h2 { font-size: 1.6rem; }
    #promociones > div:last-of-type { margin-bottom: 1.25rem; }
    /* PR-MOB-01: títulos largos pueden romper layout en tarjetas estrechas */
    .catalog-card-btn { width: 100%; max-width: 100%; }
    .specialties-carousel-viewport { padding: 0 0.5rem; }
    .specialties-carousel-track { gap: 0.75rem; padding-bottom: 4px; }
    .carousel-card { flex: 0 0 calc(100% - 1rem); min-width: unset; margin-bottom: 2px; }
    .carousel-card img { height: 250px; object-fit: cover; object-position: top center; }
    /* .map-card height: auto removida — regla muerta sobreescrita por la de 350px a continuación */
    .map-bottom-bar { padding: 0.45rem 0.75rem 0; justify-content: center; }
    .map-bar-inner { width: 100%; }
    .map-tab-btn { font-size: 0.84rem; padding: 0.4rem 0.25rem 0.25rem; gap: 4px; }
    .map-tab-btn img { width: 15px; height: 15px; }
    #btn-map-interactive { font-size: 0.84rem; padding: 0.4rem 0.25rem 0.25rem; gap: 4px; }
    #btn-map-interactive img { width: 15px; height: 15px; }
    #ubicacion .card-premium:last-child { min-height: auto; }
    .map-card { height: 350px; min-height: 350px; }
    .footer-info { padding: 1rem 3.5rem 1.5rem 1rem !important; }
    .footer-text { font-size: 0.72rem; }
    .social-float   { width: 44px; height: 44px; bottom: 38px; right: 10px; }
    .social-float svg { width: 20px; height: 20px; }
    .whatsapp-float { width: 44px; height: 44px; bottom: 90px; right: 10px; }
    .whatsapp-float svg { width: 24px; height: 24px; }
    @supports (padding: env(safe-area-inset-bottom)) {
            .social-float   { bottom: calc(38px + env(safe-area-inset-bottom)); }
            .whatsapp-float { bottom: calc(90px + env(safe-area-inset-bottom)); }
        }
}

/* R-MOB: .orden-acc-body → 2 cols en landscape phone (540px–767px);
   el bloque max-width:767px de arriba ya establece 1fr para <540px */
@media (min-width: 540px) and (max-width: 767px) {
    .orden-acc-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .map-bottom-bar { padding: 0.4rem 0.6rem 0; }
    .map-bar-inner { width: 100%; }
    .map-tab-btn { font-size: 0.78rem; }
    #btn-map-interactive { font-size: 0.78rem; }
    #btn-map-interactive img { width: 14px; height: 14px; }
    .map-card { height: 330px; min-height: 330px; }
    .social-float   { width: 40px; height: 40px; bottom: 36px; right: 10px; }
    .social-float svg { width: 18px; height: 18px; }
    .whatsapp-float { width: 40px; height: 40px; bottom: 84px; right: 10px; }
    .whatsapp-float svg { width: 22px; height: 22px; }
    @supports (padding: env(safe-area-inset-bottom)) {
            .social-float   { bottom: calc(36px + env(safe-area-inset-bottom)); }
            .whatsapp-float { bottom: calc(84px + env(safe-area-inset-bottom)); }
        }
}

@media (max-width: 375px) {
    .social-float   { width: 38px; height: 38px; bottom: 34px; right: 8px; }
    .social-float svg { width: 17px; height: 17px; }
    .whatsapp-float { width: 38px; height: 38px; bottom: 78px; right: 8px; }
    .whatsapp-float svg { width: 20px; height: 20px; }
    @supports (padding: env(safe-area-inset-bottom)) {
            .social-float   { bottom: calc(34px + env(safe-area-inset-bottom)); }
            .whatsapp-float { bottom: calc(78px + env(safe-area-inset-bottom)); }
        }
}

@media (max-height: 480px) and (orientation: landscape) {
    .hero-premium { min-height: 200px; } /* landscape móvil: piso mínimo legible */
    section { padding: 0.5rem 0; }
    .section-header { margin: 1rem 0 0.5rem; }
    .social-float   { width: 38px; height: 38px; bottom: 22px; right: 10px; }
    .social-float svg { width: 17px; height: 17px; }
    .whatsapp-float { width: 38px; height: 38px; bottom: 66px; right: 10px; }
    .whatsapp-float svg { width: 20px; height: 20px; }
}

/* R-CSS-02 fix 2026-08-29: estado oculto en CSS; JS usa style.display='block' para revelar.
   min-height/margin-top definen el estado visible — con display:none no tienen efecto visual. */
.login-error-box { display: none; min-height: 1.5rem; margin-top: -5px; }

/* Botón nav "Médicos" — Call-to-Action institucional destacado */
.navbar-sticky .nav-links a.btn-nav-medicos {
    background: linear-gradient(135deg, #0052B7 0%, #003B85 100%) !important;
    color: #ffffff !important;
    padding: 0.38rem 1.15rem !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    font-size: 0.86rem !important;
    border: 1px solid rgba(255, 255, 255, 0.30) !important;
    box-shadow: 0 4px 12px rgba(0, 82, 183, 0.28) !important;
    letter-spacing: 0.03em !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    text-decoration: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}
.navbar-sticky .nav-links a.btn-nav-medicos svg {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: -1px;
    flex-shrink: 0;
    stroke: #ffffff !important;
}
@media (hover: hover) and (pointer: fine) {
    .navbar-sticky .nav-links a.btn-nav-medicos:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(0, 82, 183, 0.38) !important;
        filter: brightness(1.10) !important;
        background: linear-gradient(135deg, #0060d4 0%, #00459e 100%) !important;
    }
}

/* Modal login — overrides de layout (R-CSS-02 fix 2026-08-29) */
.modal-login-box .modal-body { padding-top: 0.65rem; padding-bottom: 0.75rem; }
#form-login-portal    { gap: 0.55rem; }
#login-pass           { }
#btn-login-submit     { width: 100%; }

/* ==========================================================================
   SECCIÓN PROMOCIONES / CATÁLOGO (Estilo Fiel uipv2)
   ========================================================================== */
.promo-catalog-wrap {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 1rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr); /* minmax(0,1fr) evita que el track crezca por min-content de hijos */
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: stretch;
}

/* R-MOB: 2 cols desde 480px (antes solo desde 640px) */
@media (min-width: 480px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* PR-MOB-02 (actualizado): solo forzar 1 col en móvil muy estrecho (≤479px);
   480-767px ahora muestra 2 cols, ganando area util en landscape/tablet */
@media (max-width: 479px) {
    .catalog-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ── Refined Minimal Rectangular Promo Cards ── */
.catalog-card {
    background-color: var(--bg-surface);
    border-radius: 0.625rem; /* Rectangular con esquinas suaves */
    border: 1px solid #cbd5e1;
    padding: 0;   /* Padding cero para permitir que la imagen ocupe todo el espacio */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 220px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}


/* Contenedores de imagen de promoción horizontal — ocupa el 100% del espacio libre vertical restante */
.catalog-card-img-wrap {
    width: 100%;
    flex: 1 1 auto;
    min-height: 160px;
    aspect-ratio: 1024 / 735;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    background-color: #f1f5f9;
    position: relative;
}

.catalog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    border: none;
}

/* Botón Agendar superpuesto semitransparente (Glassmorphism) sobre la imagen */
.catalog-card-btn-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.45);
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.catalog-card-btn-overlay:hover {
    background: rgba(0, 82, 183, 0.85);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 82, 183, 0.4);
}

.catalog-card-day {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary, #0052B7);
    margin-top: 0;
    margin-bottom: 0.35rem;
    padding-bottom: 0.25rem;
    border-bottom: 1.5px solid rgba(0, 82, 183, 0.12);
}
/* FIX G-CK-03 2026-09-08: display:inline bloqueaba márgenes en contenido CKEditor.
   Removido: block elements del CKEditor se respetan; margin:0/padding:0 se mantienen. */
.catalog-card-day p, .catalog-card-day h1, .catalog-card-day h2, .catalog-card-day h3 {
    margin: 0;
    padding: 0;
}






.catalog-badge {
    font-size: 10.5px;
    padding: 0.18rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    display: inline-block;
}

/* Renglón inferior: precios izq. · botón der. */
.catalog-card-bottom-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.45rem;
    border-top: 1px dashed #e2e8f0;
}





/* Badge HOY — derecha, violeta claro, pulso */
.badge-hoy {
    background-color: #ede9fe;
    color: #5b21b6;
    border: 1px solid #c4b5fd;
    font-size: 9.5px;
    letter-spacing: 0.07em;
    font-weight: 700;
    animation: pulse-hoy 2.4s ease-in-out infinite;
    margin-left: auto;   /* empuja al extremo derecho del flex row */
    flex-shrink: 0;
}

@keyframes pulse-hoy {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); }
    50%       { opacity: 0.85; box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.35); }
}

/* Tarjeta del día actual: borde violeta sutil */
.catalog-card--hoy {
    border: 1.5px solid #a78bfa;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.10);
}

/* Renglón día + badge HOY */
.catalog-card-day-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem 0.5rem;
    margin-bottom: 0;
    border-bottom: 1px solid #e2e8f0;
    background-color: #ffffff;
    flex-shrink: 0;
}
.catalog-card-day-row .catalog-card-day {
    margin-bottom: 0;    /* mb lo lleva el row */
    flex: 1 1 auto;
    min-width: 0;
    border-bottom: none; /* el borde lo lleva la fila */
}



/* Descripción expandible (Mejora C) */
.rte-desc--expandable {
    max-height: 4.5em;
    overflow: hidden;
    position: relative;
    /* fade al borde inferior cuando está colapsado */
}
.rte-desc--expandable::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1.5em;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}
.rte-desc--expandable.is-expanded {
    max-height: none;
    overflow: visible;
}
.rte-desc--expandable.is-expanded::after {
    display: none;
}

.btn-rte-expand {
    background: none;
    border: none;
    color: #0052B7;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-bottom: 0.4rem;
    display: block;
    letter-spacing: 0.02em;
}
.btn-rte-expand:hover { text-decoration: underline; }

/* Botón de Agendar: Reducido, vistoso, ubicado abajo a la derecha */
.catalog-card-btn-compact {
    align-self: flex-end;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.72rem;
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    cursor: pointer;
}

.catalog-card-btn-compact:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.45);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.catalog-card-btn-compact svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.catalog-card-btn-compact:hover svg {
    transform: scale(1.15);
}

/* ==========================================================================
   SECCIÓN CALIDAD — 3 Fichas Estáticas (Estructura Fiel Especialidades .carousel-card)
   ========================================================================== */
.calidad-cards-grid {
    display: flex;
    flex-wrap: wrap; /* R-MOB: permite 2 col en tablet sin romper 3 col en desktop */
    gap: 2rem;
    padding: 1rem 0;
    margin-top: 0;
    margin-bottom: 2rem;
    width: 100%;
    align-items: stretch;
    box-sizing: border-box;
}

.calidad-cards-grid .carousel-card {
    flex: 0 0 calc((100% - 4rem) / 3);
    width: calc((100% - 4rem) / 3);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 2px;
}

.calidad-cards-grid .carousel-card img {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    object-position: top center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px 12px 0 0 !important;
    box-sizing: border-box !important;
}

@media (min-width: 1920px) {
    .calidad-cards-grid .carousel-card {
        flex: 0 0 calc((100% - 4rem) / 3);
    }
}

/* R-MOB: tablet (768px–1024px) → 2 columnas */
@media (min-width: 768px) and (max-width: 1024px) {
    .calidad-cards-grid {
        gap: 1rem;
    }
    .calidad-cards-grid .carousel-card {
        flex: 0 0 calc(50% - 0.5rem);
        width: calc(50% - 0.5rem);
    }
    .calidad-cards-grid .carousel-card img {
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        object-position: top center !important;
    }
}

/* R-MOB: móvil (≤767px) → 1 columna */
@media (max-width: 767px) {
    .calidad-cards-grid {
        gap: 1.25rem;
    }
    .calidad-cards-grid .carousel-card {
        flex: 0 0 100%;
        width: 100%;
    }
    .calidad-cards-grid .carousel-card img {
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        object-position: top center !important;
    }
}




/* ── §CAT-INFO: Botón "+" + Tooltip de detalles por estudio ──────────────── */

/* Botón circular "+" en cada renglón */
.precio-info-btn {
    flex-shrink: 0;
    align-self: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-green);
    background: transparent;
    color: var(--primary-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: background 0.15s, color 0.15s, transform 0.1s;
    margin-left: 6px;
}
@media (hover: hover) and (pointer: fine) {
    .precio-info-btn:hover {
        background: var(--primary-green);
        color: #fff;
        transform: scale(1.15);
    }
}

/* Tooltip flotante */
.precio-info-tooltip {
    position: fixed;
    z-index: 1500; /* por debajo del modal (2000 en style.css) y por encima de navbar (1050) */
    width: 340px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border: 1.5px solid var(--primary-green);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 82, 183, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.15s, transform 0.15s;
    overflow: hidden;
    font-family: inherit;
}
.precio-info-tooltip.pit-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Barra de título (verde LAESH) */
.pit-hdr {
    background: var(--primary-green);
    color: #0B1830;
    padding: 8px 12px 8px 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.pit-nombre {
    flex: 1;
    min-width: 0;
    font-weight: 700;
    font-size: 0.78rem;
    line-height: 1.32;
    word-break: break-word;
}
.pit-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #0B1830;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    padding: 4px 6px;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.75;
    margin-top: 1px;
    transition: opacity 0.1s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.pit-close:hover { opacity: 1; }

/* Cuerpo del tooltip — Rejilla Híbrida Global (Desktop & Mobile) */
.pit-body {
    padding: 7px 11px 9px;
    background: #ffffff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
    row-gap: 3px;
    max-height: min(72vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Secciones a ancho completo */
.pit-sec {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* Secciones emparejadas en 2 columnas */
.pit-sec-muestra {
    grid-column: 1 / 2;
    align-self: start;
}
.pit-sec-contenedor {
    grid-column: 2 / 3;
    align-self: start;
}
.pit-sec-clave {
    grid-column: 1 / 2;
    align-self: start;
}
.pit-sec-tiempo {
    grid-column: 2 / 3;
    align-self: start;
}

.pit-sec-title {
    font-size: 0.73rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    line-height: 1.25;
}

.pit-sec-box {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 0 0 10px;
    margin: 0;
    font-size: 0.71rem;
    color: #0052B7;
    line-height: 1.25;
}

/* Sub-grid de 2 columnas para múltiples pruebas incluidas */
.pit-pruebas--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 2px;
    padding-left: 10px;
}

.pit-prueba-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #0052B7;
    font-size: 0.71rem;
    font-weight: 500;
    line-height: 1.25;
    word-break: break-word;
}

.pit-prueba-item::before {
    content: '•';
    display: inline-block;
    color: #0052B7;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Ajustes Ergonómicos Específicos para Móviles (≤ 640px) ── */
@media (max-width: 640px) {
    .precio-info-tooltip {
        width: calc(100vw - 32px);
        max-width: 375px;
        box-shadow: 0 8px 30px rgba(0, 82, 183, 0.22);
    }
    .pit-hdr {
        padding: 7px 10px 7px 12px;
    }
    .pit-nombre {
        font-size: 0.76rem;
        line-height: 1.28;
    }
    .pit-body {
        padding: 6px 10px 8px;
        column-gap: 8px;
        row-gap: 2px;
        max-height: min(72vh, 410px);
    }
    .pit-sec {
        gap: 0;
        margin-bottom: 1px;
    }
    .pit-sec-title {
        font-size: 0.72rem;
        line-height: 1.2;
    }
    .pit-sec-box {
        font-size: 0.70rem;
        padding-left: 10px;
        line-height: 1.2;
    }
    .pit-prueba-item {
        font-size: 0.70rem;
        line-height: 1.2;
    }
}

/* 2026-09-25 (pedido del usuario): en desktop, el contenido de la ventana
   emergente de detalle de estudio (tooltip .precio-info-tooltip) se
   incrementa ~20% — ancho, paddings, gaps y tipografía de cada bloque, más
   el tope de alto (max-height) para que quepa el contenido más grande sin
   recortarse. Escopeado a ≥641px (el bloque de arriba ya cubre ≤640px) —
   mobile no se toca. Mismos selectores/especificidad que la regla base sin
   media query — gana por orden de aparición (esta va después) en vez de
   por !important. */
@media (min-width: 641px) {
    .precio-info-tooltip {
        width: 408px; /* 340px × 1.2 */
    }
    .pit-hdr {
        padding: 10px 14px 10px 14px; /* 8/12 × 1.2 */
    }
    .pit-nombre {
        font-size: 0.94rem; /* 0.78rem × 1.2 */
    }
    .pit-close {
        font-size: 1.38rem; /* 1.15rem × 1.2 */
        min-width: 38px;
        min-height: 38px;
        padding: 5px 7px;
    }
    .pit-body {
        padding: 8px 13px 11px; /* 7/11/9 × 1.2 */
        column-gap: 12px;       /* 10px × 1.2 */
        row-gap: 4px;           /* 3px × 1.2 */
        max-height: min(72vh, 504px); /* 420px × 1.2 */
    }
    .pit-sec-title {
        font-size: 0.88rem; /* 0.73rem × 1.2 */
    }
    .pit-sec-box {
        font-size: 0.85rem;   /* 0.71rem × 1.2 */
        padding-left: 12px;   /* 10px × 1.2 */
    }
    .pit-pruebas--grid {
        column-gap: 10px; /* 8px × 1.2 */
    }
    .pit-prueba-item {
        font-size: 0.85rem; /* 0.71rem × 1.2 */
    }
    .pit-prueba-item::before {
        font-size: 1.02rem; /* 0.85rem × 1.2 */
    }
}

/* Quiénes Somos — Fichas superiores (Por qué confiar, Misión, Visión):
   En Laptop/Desktop (≥1025px) conviven en un MISMO RENGLÓN de 3 columnas
   ocupando la longitud horizontal total de 1380px, alineado exactamente con la Ficha Historia de abajo. */
#acerca-de .grid-acerca-cards,
.grid-acerca-cards {
    display: grid;
    gap: 1.25rem;
    width: 100%;
    max-width: 1380px;
    padding: 0;
    margin: 0 auto 1.25rem auto;
    box-sizing: border-box;
}

/* Desktop / Laptop ≥1025px → Renglones de 3 columnas homologados a 1380px de extremo a extremo */
@media (min-width: 1025px) {
    #acerca-de .grid-acerca-cards,
    .grid-acerca-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        width: 100% !important;
        max-width: 1380px !important;
        padding: 0 !important;
        margin: 0 auto 1.25rem auto !important;
        box-sizing: border-box !important;
    }
    .section-catalog {
        padding: 0;
        max-width: 1380px;
    }
    .location-stack-layout {
        padding: 0;
        max-width: 1380px;
    }

    /* Calidad e Instalaciones — Renglón de 3 columnas homologado a 1380px */
    #calidad .map-bar {
        padding: 0;
        max-width: 1380px;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    #calidad .specialties-carousel-viewport {
        padding: 0;
        width: 100%;
    }
    .calidad-cards-grid {
        gap: 1.25rem;
        padding: 0.5rem 0 2rem 0;
        max-width: 1380px;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .calidad-cards-grid .carousel-card {
        flex: 0 0 calc((100% - 2.5rem) / 3);
        width: calc((100% - 2.5rem) / 3);
        box-sizing: border-box;
    }

    /* Carrusel de Instalaciones y Tecnología — Renglón de 1380px (3 tarjetas visibles por vista) */
    #especialidades .map-bar {
        padding: 0;
        max-width: 1380px;
        width: 100%;
        margin: 0 auto;
        position: relative;
        box-sizing: border-box;
    }
    #especialidades .specialties-carousel-viewport {
        padding: 0;
        width: 100%;
        overflow: hidden;
    }
    #especialidades .specialties-carousel-track {
        gap: 1.25rem;
        padding: 0.5rem 0 1rem 0;
        width: 100%;
        box-sizing: border-box;
    }
    #especialidades .specialties-carousel-track .carousel-card {
        flex: 0 0 calc((100% - 2.5rem) / 3);
        width: calc((100% - 2.5rem) / 3);
        box-sizing: border-box;
    }
    #especialidades .carousel-arrow-btn--left {
        left: -22px;
    }
    #especialidades .carousel-arrow-btn--right {
        right: -22px;
    }
    .carousel-progress-wrap {
        max-width: 1380px;
        margin: 0 auto 0.5rem auto;
        padding: 0;
    }
}

#acerca-de .grid-acerca-cards .card-premium {
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.grid-single-history {
    display: block;
    width: 100%;
    max-width: 1380px;
    margin: 0.35rem auto 1rem auto;
    box-sizing: border-box;
}

#acerca-de .card-premium,
.grid-acerca-cards .card-premium,
.grid-single-history .card-premium {
    resize: none;
    box-sizing: border-box;
    width: 100%;
}

.grid-single-history .card-premium {
    overflow: visible !important;
    overflow-y: visible !important;
    height: auto !important;
    min-height: 270px;
}

/* Medida fija centrada para el contenedor del video en Desktop/Laptop (+15% adicional horizontal = 1173px) */
#video .grid-single-history {
    max-width: 1173px !important;
    margin: 0.35rem auto 1rem auto !important;
}

#video .grid-single-history .card-premium,
#video .card-premium {
    height: auto !important;
    max-height: none !important;
    min-height: unset !important;
    overflow: hidden !important;
    padding: 0.75rem 1.25rem !important;
}

.grid-single-history .card-premium .modal-scroll-body,
.grid-single-history .card-premium .history-content-wrap {
    max-height: none !important;
    min-height: 150px;
    overflow: visible !important;
    overflow-y: visible !important;
}

.grid-single-history .ck5-output img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    border-radius: 8px;
}

#video .modal-scroll-body {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
}

#video .ck5-output {
    padding: 0.75rem 0 !important;
}

/* R-MOB: Quiénes Somos → tablet/iPad (≤1024px) — layout, padding y card widths
   grid-template-columns no necesita !important aquí: la base ya es 2 cols y el selector
   #acerca-de (1,1,0) supera en especificidad a .grid-layout.grid-1-1-auto (0,2,0) de style.css.
   El resto sí usa !important porque otros stylesheets ganan esas propiedades sin él. */
@media (max-width: 1024px) {
    #acerca-de {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    #acerca-de .grid-acerca-cards,
    .grid-acerca-cards {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-bottom: 1rem !important;
        box-sizing: border-box !important;
    }
    .grid-single-history {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 1rem 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    #acerca-de .card-premium,
    .grid-acerca-cards .card-premium,
    .grid-single-history .card-premium {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 200px;
        box-sizing: border-box !important;
        border-radius: 16px !important;
        margin: 0 !important;
    }
    .sec-pad-1-5 {
        padding: 0.5rem 1.25rem !important;
        box-sizing: border-box !important;
    }
}

/* Ajuste de proximidad estrecha entre Quiénes Somos y Estudios (móvil ↔ desktop) */
/* R8: #id spec (1,0,0) supera section (0,0,1) — sin !important */
#acerca-de {
    padding-bottom: 0.25rem;
}

#especialidades {
    padding-top: 0.25rem;
}

#especialidades .section-header {
    margin-top: 0.25rem;
}

/* Fix for CKEditor media embeds covering their own resize handles.
   Nota: inline style="resize:both" tiene prioridad máxima; !important requerido aquí (no-R8 excepción: inline-style override) */
.ck5-output div[style*="resize: both"] {
    box-sizing: border-box !important;
    padding: 0 16px 16px 0 !important;
    background-color: #f8fafc;
}

/* Fix C4 — Móvil (≤767px): transición animate-on-scroll más rápida.
   Desktop usa 1s (efecto premium en pantalla grande + CPU rápida).
   Móvil: 0.45s + delays comprimidos — percepción de respuesta inmediata
   sin sacrificar el efecto visual. DRY: solo se sobreescribe la transición. */
@media (max-width: 767px) {
    .animate-on-scroll {
        transition: opacity 0.45s ease-out, transform 0.45s ease-out;
    }
    .delay-100 { transition-delay: 0.05s; }
    .delay-200 { transition-delay: 0.1s;  }
    #especialidades .carousel-arrow-btn {
        display: flex !important;
        position: absolute;
        top: 38%;
        transform: translateY(-50%);
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border: 1px solid rgba(0, 82, 183, 0.18);
        box-shadow: 0 4px 12px rgba(0, 40, 120, 0.2);
        z-index: 15;
        align-items: center;
        justify-content: center;
        padding: 0;
        cursor: pointer;
        transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    }
    #especialidades .carousel-arrow-btn:active {
        transform: translateY(-50%) scale(0.92);
        background: #ffffff;
        box-shadow: 0 2px 6px rgba(0, 40, 120, 0.25);
    }
    #especialidades .carousel-arrow-btn--left {
        left: 4px;
    }
    #especialidades .carousel-arrow-btn--right {
        right: 4px;
    }
    #especialidades .carousel-arrow-btn img {
        width: 20px;
        height: 20px;
    }

    /* Móviles vertical: flechas sin fondo circular blanco y con máximo realce visual */
    @media (orientation: portrait) {
        #especialidades .carousel-arrow-btn {
            background: transparent !important;
            border: none !important;
            border-radius: 0 !important;
            box-shadow: none !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            width: 44px !important;
            height: 54px !important;
            padding: 0 !important;
        }
        #especialidades .carousel-arrow-btn:active {
            background: transparent !important;
            box-shadow: none !important;
            transform: translateY(-50%) scale(1.15) !important;
        }
        #especialidades .carousel-arrow-btn--left {
            left: 2px !important;
        }
        #especialidades .carousel-arrow-btn--right {
            right: 2px !important;
        }
        #especialidades .carousel-arrow-btn img {
            width: 36px !important;
            height: 36px !important;
            filter: brightness(0) invert(1) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 8px rgba(0, 0, 0, 0.85)) !important;
            transition: transform 0.15s ease, filter 0.15s ease;
        }
        /* Responsividad móvil vertical: preservar ancho completo sin recortar imagen apaisada */
        #especialidades .carousel-card img {
            width: 100% !important;
            height: auto !important;
            aspect-ratio: 16 / 11 !important;
            object-fit: cover !important;
            object-position: center center !important;
        }
    }
    #especialidades .specialties-carousel-track .carousel-card {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    #especialidades .specialties-dots {
        margin-top: 0.35rem;
        margin-bottom: 0.6rem;
        gap: 0.38rem;
        padding: 0 0.5rem;
        justify-content: center;
        flex-wrap: nowrap;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    #especialidades .specialties-dots::-webkit-scrollbar {
        display: none;
    }
    #especialidades .specialties-dots .hero-dot {
        width: 8px;
        height: 8px;
        border-width: 1px;
        flex-shrink: 0;
    }
    #especialidades .specialties-dots .hero-dot.active {
        transform: scale(1.35);
    }
}

/* Tablet (768px–1024px) — Carrusel de especialidades: 2 tarjetas por vista */
@media (min-width: 768px) and (max-width: 1024px) {
    #especialidades .specialties-carousel-track .carousel-card {
        flex: 0 0 calc((100% - 1rem) / 2);
        width: calc((100% - 1rem) / 2);
        box-sizing: border-box;
    }
}

/* Utilitarios limpios extraídos desde PHP inline styles */
.contact-col-gap { display: flex; flex-direction: column; gap: 0.75rem; }
.cursor-default { cursor: default; }
.map-link-flex { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

/* ── Cursor Pointer en Fichas de Promoción ── */
.catalog-card[data-promo-img] {
    cursor: pointer;
}

/* ── Modal Estilizado de Imagen Completa (Visor Adaptativo sin Barras Oscuras) ── */
.modal-promo-overlay {
    background: rgba(15, 23, 42, 0.65) !important; /* Telón translúcido suave */
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    padding: 1.5rem 1rem !important;
    z-index: 99999 !important;
    display: none !important;
    align-items: center;
    justify-content: center;
}
#modal-img-promo.show,
.modal-promo-overlay.show,
.modal.show.modal-promo-overlay {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.modal-img-promo-content {
    max-width: min(90vw, 920px) !important;
    width: fit-content !important;
    max-height: 92vh !important;
    height: auto !important;
    margin: auto !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0,0,0,0.08) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    resize: none !important;
}

.modal-img-promo-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

.modal-img-promo-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    padding-right: 42px; /* Espacio para el botón de cerrar */
    width: 100%;
    line-height: 1.35;
}

.modal-img-promo-title h1,
.modal-img-promo-title h2,
.modal-img-promo-title h3,
.modal-img-promo-title h4 {
    display: inline;
    font-size: 0.96rem !important;
    font-weight: 700 !important;
    color: var(--primary, #0052b7) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: inherit !important;
}

.modal-img-promo-title p {
    display: inline;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    color: #475569 !important;
    margin: 0 0 0 0.45rem !important;
    padding: 0 !important;
    line-height: inherit !important;
}

.modal-img-promo-title span {
    line-height: inherit !important;
}

/* Cruz de cerrar visible con alto contraste sobre fondo claro */
.modal-img-promo-header .close-modal {
    position: absolute;
    right: 1.25rem;
    background: rgba(15, 23, 42, 0.1) !important;
    border: 1px solid rgba(15, 23, 42, 0.2) !important;
    color: #0f172a !important;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-img-promo-header .close-modal:hover {
    background: rgba(15, 23, 42, 0.2) !important;
}

.modal-img-promo-body {
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    flex: 0 1 auto !important;
    height: auto !important;
    width: auto !important;
    max-width: 100% !important;
    background: transparent !important; /* Cero fondo azul marino */
    max-height: calc(92vh - 60px) !important;
}

/* Imagen en tamaño real adaptativa sin deformación ni barras laterales */
.modal-img-promo-real {
    max-width: min(88vw, 880px) !important;
    max-height: calc(88vh - 65px) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 0 0 14px 14px !important;
    box-shadow: none !important;
}

@media (max-width: 767px) {
    .modal-promo-overlay {
        padding: 1rem 0.75rem !important;
        background: rgba(10, 14, 26, 0.78) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }
    #modal-img-promo.show,
    .modal-promo-overlay.show,
    .modal.show.modal-promo-overlay {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .modal-img-promo-content {
        max-width: calc(100vw - 1.5rem) !important;
        width: fit-content !important;
        max-height: 90vh !important;
        height: auto !important; /* Tarjeta flotante centrada, sin altura 100% rígida */
        margin: auto !important;
        border-radius: 14px !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,0.12) !important;
        background: #ffffff !important;
        overflow: hidden !important;
    }
    .modal-img-promo-header {
        padding: 0.65rem 0.9rem;
        border-radius: 14px 14px 0 0;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
    }
    .modal-img-promo-title {
        font-size: 0.82rem;
        line-height: 1.3;
        padding-right: 36px;
    }
    .modal-img-promo-title h1,
    .modal-img-promo-title h2,
    .modal-img-promo-title h3,
    .modal-img-promo-title h4 {
        display: inline;
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        color: var(--primary, #0052b7) !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .modal-img-promo-title p {
        display: inline;
        font-size: 0.76rem !important;
        font-weight: 400 !important;
        color: #475569 !important;
        margin: 0 0 0 0.35rem !important;
        padding: 0 !important;
    }
    .modal-img-promo-body {
        padding: 0 !important;
        flex: 0 1 auto !important;
        height: auto !important;
        width: 100% !important;
        max-height: calc(90vh - 55px) !important;
        background: transparent !important; /* Cero franjas azul marino arriba/abajo */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .modal-img-promo-real {
        max-height: calc(85vh - 60px) !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 0 0 14px 14px !important;
        object-fit: contain !important;
        box-shadow: none !important;
        display: block !important;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   § BUSCADOR DE ESTUDIOS CON AUTOCOMPLETADO PERMANENTE EN HEADER (DESKTOP & MOBILE)
   ══════════════════════════════════════════════════════════════════════════ */

/* Contenedor desktop vertical: Desacoplado — buscador reubicado antes de Médicos */

/* Envoltorio común del buscador */
.header-search-wrap {
    position: relative;
    display: block;
}

/* Caja de búsqueda estilizada */
.header-search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #0052b7;
    border-radius: 24px;
    padding: 3px 12px;
    box-shadow: 0 1px 4px rgba(0, 82, 183, 0.12);
    transition: all 0.2s ease-in-out;
}
.header-search-box:focus-within {
    border-color: #71ca11;
    box-shadow: 0 0 0 3px rgba(113, 202, 17, 0.25), 0 2px 8px rgba(0,0,0,0.1);
    background: #ffffff;
}

/* Input text de búsqueda */
.header-search-input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: inherit;
    font-weight: 500;
    color: #0f172a;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
}
.header-search-input::placeholder {
    color: #64748b;
    font-size: 1.05rem;
    font-weight: 400;
}

/* Botón de limpiar "x" */
.header-search-clear {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    margin-left: 4px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.header-search-clear:hover {
    color: #ef4444;
}

/* ── Ajustes específicos DESKTOP ── */
.header-search-wrap--desktop {
    width: 280px;
    flex-shrink: 0;
}
.header-search-wrap--desktop .header-search-box {
    height: 36px;
    padding: 0 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid rgba(0, 82, 183, 0.25);
    box-shadow: 0 2px 8px rgba(0, 82, 183, 0.06);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.25s ease;
}
.header-search-wrap--desktop .header-search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 183, 0.16), 0 4px 12px rgba(0, 82, 183, 0.10);
    background: #ffffff;
    width: 295px;
}
.header-search-wrap--desktop .header-search-box input.header-search-input {
    font-size: 0.92rem;
    font-weight: 500;
    text-align: left;
}
.header-search-wrap--desktop .header-search-box input.header-search-input::placeholder {
    font-size: 0.85rem;
    color: #64748b;
}

/* ── Ajustes específicos MOBILE ── */
.header-search-wrap--mobile {
    width: 100%;
    max-width: 185px;
    margin-top: 2px;
    align-self: flex-end;
}
.header-search-wrap--mobile .header-search-box {
    height: 25px;
    padding: 1px 7px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    justify-content: flex-start;
}
.header-search-wrap--mobile .header-search-box input.header-search-input {
    font-size: 0.74rem;
    text-align: left;
}
.header-search-wrap--mobile .header-search-box input.header-search-input::placeholder {
    font-size: 0.72rem;
}
.header-search-wrap--mobile .header-search-clear {
    font-size: 0.95rem;
}
.header-search-wrap--mobile .header-search-results {
    right: 0;
    left: auto;
    transform: none;
    width: 280px;
    max-width: 82vw;
}

/* Reglas de visibilidad desktop vs mobile.
   2026-10-10: el corte es 1280px (antes 768px). Entre 768 y 1279 (iPad, tablets,
   laptops angostas) el menú es hamburguesa y el buscador de escritorio quedaba
   escondido dentro de él → no había buscador en el header. Ahora en ese rango se
   muestra el buscador del header (--mobile) y el de escritorio solo desde 1280px. */
@media (min-width: 1280px) {
    .header-search-wrap--mobile {
        display: none !important;
    }
}
@media (min-width: 768px) {
    .navbar-center-block {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        border-left: 1.5px solid rgba(0, 82, 183, 0.20);
        padding-left: 1.25rem;
        margin-left: 1rem;
        margin-right: 2rem;
        min-height: 38px;
        flex-shrink: 0;
    }
    .navbar-sticky .nav-links {
        margin-right: auto;
        gap: 1.15rem;
        align-items: center;
    }
    .navbar-sticky .nav-links a:not(.nav-item-multiline):not(.btn-nav-medicos) {
        white-space: nowrap;
    }
}
@media (max-width: 1279px) {
    .header-search-wrap--desktop {
        display: none !important;
    }
}

/* ── Dropdown Flotante de Resultados de Búsqueda ── */
.header-search-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    max-width: 90vw;
    max-height: 340px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.18), 0 4px 6px -2px rgba(0, 0, 0, 0.08);
    z-index: 2000;
    padding: 4px 0;
}
.header-search-wrap--desktop .header-search-results {
    right: 0;
    left: auto;
    transform: none;
}
.header-search-results::-webkit-scrollbar {
    width: 6px;
}
.header-search-results::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Ítem de resultado */
.header-search-item {
    display: flex;
    flex-direction: column;
    padding: 7px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
    text-align: left;
}
.header-search-item:last-child {
    border-bottom: none;
}
.header-search-item:hover,
.header-search-item.is-selected {
    background: #e0f2fe;
}
.header-search-item-nombre {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}
.header-search-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 2px;
}
.header-search-item-clave {
    font-weight: 600;
    color: #0052b7;
    background: #e2e8f0;
    padding: 1px 5px;
    border-radius: 4px;
}
.header-search-item-muestra {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header-search-empty {
    padding: 12px;
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
}

/* ── Abanico Dinámico: Mis Resultados de Búsqueda ── */
.orden-acc--search-results {
    border: 2px solid var(--primary-green);
    box-shadow: 0 4px 14px rgba(113, 202, 17, 0.18);
    margin-bottom: 14px;
    animation: fadeInSlideDown 0.35s ease-out;
}
.orden-acc--search-results .orden-acc-hdr {
    background: #f0fdf4;
    color: #065f46;
}
.orden-acc--search-results .orden-acc-hdr:hover {
    background: #dcfce7;
}
@keyframes fadeInSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ── Resalte luminoso y contorno de 5 segundos (lila claro) para estudio seleccionado en búsqueda ── */
@keyframes estudioBuscadoOutline {
    0% {
        outline: 2.5px solid #a855f7;
        outline-offset: 2px;
        background-color: #faf5ff !important;
        box-shadow: 0 0 16px rgba(168, 85, 247, 0.45);
        border-radius: 6px;
    }
    15% {
        outline: 2.5px solid #c084fc;
        outline-offset: 2px;
        background-color: #f3e8ff !important;
        box-shadow: 0 0 18px rgba(192, 132, 252, 0.50);
        border-radius: 6px;
    }
    30% {
        outline: 2.5px solid #a855f7;
        outline-offset: 2px;
        background-color: #f3e8ff !important;
        box-shadow: 0 0 16px rgba(168, 85, 247, 0.45);
        border-radius: 6px;
    }
    75% {
        outline: 2px solid rgba(192, 132, 252, 0.85);
        outline-offset: 2px;
        background-color: #faf5ff !important;
        box-shadow: 0 0 12px rgba(192, 132, 252, 0.30);
        border-radius: 6px;
    }
    100% {
        outline: 2px solid transparent;
        outline-offset: 0;
        background-color: transparent !important;
        box-shadow: none;
        border-radius: 0;
    }
}

.estudio-buscado-highlight {
    animation: estudioBuscadoOutline 5s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
    position: relative;
    z-index: 5;
    transition: background-color 0.3s;
}

/* ── Modal login: wrapper ojo contraseña ─────────────────────────────────── */
#modal-login .pw-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
#modal-login .pw-input-wrap .form-input {
    flex: 1;
    padding-right: 2.4rem;
}
#modal-login .btn-pw-eye {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.15rem;
    cursor: pointer;
    color: var(--text-muted, #64748b);
    display: flex;
    align-items: center;
    line-height: 1;
}
#modal-login .btn-pw-eye:hover  { color: var(--primary, #0ea5e9); }
#modal-login .btn-pw-eye:focus-visible { outline: 2px solid var(--primary, #0ea5e9); border-radius: 3px; }


