        :root {
            --primary-blue: #0066FF;
            --dark-blue: #0A192F;
            --text-muted: #64748B;
            --light-bg: #F8FAFC;
            --glass-bg: rgba(255, 255, 255, 0.45);
            --glass-border: rgba(255, 255, 255, 0.5);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Urbanist', sans-serif;
        }

        body {
            -webkit-user-select: none;
            -moz-user-select: none;
            user-select: none;
            background: linear-gradient(160deg, #0a1f5c 0%, #0d2d8a 35%, #1040b8 65%, #0a2070 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding: 50px 30px;
            position: relative;
            overflow-x: hidden;
        }

        /* Aurora WebGL background */
        #aurora-canvas {
            position: fixed;
            inset: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
        }

        /* Orbe desactivado — reemplazado por Aurora */
        .bg-orb { display: none; }

        /* Hex canvas desactivado */
        #hex-canvas { display: none; }

        .body-watermark {
            position: absolute;
            top: 2%;
            left: 6%;
            font-size: 160px;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.06);
            pointer-events: none;
            z-index: 2;
            letter-spacing: -3px;
        }

        /* Cuadros decorativos laterales */
        .deco-sq {
            position: fixed;
            border: 2px solid rgba(255,255,255,0.18);
            border-radius: 10px;
            pointer-events: none;
            z-index: 1;
        }
        .deco-sq.tl1 { width: 55px; height: 55px; top: 90px; left: 14px; }
        .deco-sq.tl2 { width: 36px; height: 36px; top: 170px; left: 22px; opacity: .5; }
        .deco-sq.tr1 { width: 55px; height: 55px; top: 90px; right: 14px; }
        .deco-sq.tr2 { width: 36px; height: 36px; top: 170px; right: 22px; opacity: .5; }
        .deco-sq.bl1 { width: 48px; height: 48px; bottom: 200px; left: 14px; opacity: .4; }
        .deco-sq.br1 { width: 48px; height: 48px; bottom: 200px; right: 14px; opacity: .4; }

        /* VENTANA FLOTANTE */
        .landing-wrapper {
            width: 100%;
            max-width: 1480px;
            background-color: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
            border: 1px solid var(--glass-border);
            box-shadow: 
                0 4px 30px rgba(0, 0, 0, 0.02),
                0 45px 100px rgba(0, 15, 60, 0.35),
                inset 0 2px 4px rgba(255, 255, 255, 0.9);
            border-radius: 32px;
            overflow: clip;
            position: relative;
            z-index: 5;
        }

        /* Pantalla móvil: oculta por defecto en desktop, CSS la activa en móvil */
        #mobile-search-screen { display: none; }

        /* HERO */
        .hero-section {
            background-image: url('https://drqysosbqdkbtvgsellj.supabase.co/storage/v1/object/public/assets/hero-doctor.webp');
            background-size: cover;
            background-position: right center;
            background-repeat: no-repeat;
            padding: 32px 80px 48px 80px;
            position: relative;
            min-height: 780px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            z-index: 10;
        }

        .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 24px; color: var(--dark-blue); }
        .logo span { display: block; font-size: 10px; font-weight: 400; color: var(--text-muted); margin-top: -4px; letter-spacing: 2px; text-transform: uppercase; }

        .nav-glass-pill {
            background: rgba(255,255,255,0.60);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255,255,255,0.75);
            padding: 6px 8px;
            border-radius: 50px;
            display: flex;
            gap: 4px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.06);
        }
        .nav-glass-pill a {
            text-decoration: none;
            color: #334155;
            font-size: 14px;
            font-weight: 500;
            padding: 8px 20px;
            border-radius: 50px;
            transition: all .2s;
        }
        .nav-glass-pill a.active {
            background: #FFFFFF;
            color: var(--dark-blue);
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        }
        .nav-glass-pill a:hover:not(.active) { background: rgba(255,255,255,0.5); }

        .header-actions { display: flex; align-items: center; gap: 8px; }
        .icon-btn {
            background: rgba(255,255,255,0.60);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.75);
            font-size: 15px;
            color: #334155;
            cursor: pointer;
            width: 38px; height: 38px;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            transition: background .2s;
        }
        .icon-btn:hover { background: white; }

        .btn-appointment {
            background-color: var(--primary-blue);
            color: white;
            border: none;
            padding: 11px 24px;
            border-radius: 50px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0,102,255,0.28);
            transition: all 0.2s;
        }
        .btn-appointment:hover { background: #0052d4; transform: translateY(-1px); }

        .btn-login {
            text-decoration: none !important;
            background: transparent;
            border: none;
            color: var(--dark-blue);
            padding: 10px 18px;
            border-radius: 50px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .btn-login:hover { background: rgba(255,255,255,0.6); }

        /* Botón paciente — outline */
        .btn-paciente {
            text-decoration: none !important;
            background: white;
            border: 1.5px solid #dde5ff;
            color: var(--dark-blue);
            padding: 10px 20px;
            border-radius: 50px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 7px;
        }
        .btn-paciente:hover { border-color: var(--primary-blue); color: var(--primary-blue); }

        /* Botón paciente — con dropdown */
        .btn-paciente-wrap { position: relative; }
        .paciente-dropdown {
            display: none;
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            background: white;
            border: 1px solid #e8eeff;
            border-radius: 16px;
            box-shadow: 0 12px 36px rgba(0,40,120,0.14);
            min-width: 270px;
            z-index: 9999;
            overflow: hidden;
        }
        .btn-paciente-wrap.open .paciente-dropdown { display: block; }

        /* Botón médico — con dropdown */
        .btn-professional-wrap { position: relative; }
        .btn-professional {
            text-decoration: none !important;
            background: var(--primary-blue);
            border: none;
            color: white;
            padding: 10px 20px;
            border-radius: 50px;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 14px rgba(0,102,255,0.25);
        }
        .btn-professional:hover { background: #0052d4; transform: translateY(-1px); }
        .btn-professional i.chevron { font-size: 10px; transition: transform .2s; }
        .btn-professional-wrap.open .btn-professional i.chevron { transform: rotate(180deg); }

        /* Dropdown del botón médico */
        .professional-dropdown {
            display: none;
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            background: white;
            border: 1px solid #e8eeff;
            border-radius: 16px;
            box-shadow: 0 12px 36px rgba(0,40,120,0.14);
            min-width: 280px;
            z-index: 9999;
            overflow: hidden;
        }
        .btn-professional-wrap.open .professional-dropdown { display: block; }
        .pro-drop-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 18px;
            font-size: 13px;
            font-weight: 600;
            color: var(--dark-blue);
            text-decoration: none;
            transition: background .15s;
            border-bottom: 1px solid #f1f5f9;
        }
        .pro-drop-item i { flex-shrink: 0; margin-top: 1px; }
        .pro-drop-item > div { display: flex; flex-direction: column; }
        .pro-drop-item > div > span:first-child { white-space: nowrap; font-size: 13px; font-weight: 600; }
        .pro-drop-item .sub { font-size: 11px; font-weight: 400; color: #94a3b8; white-space: nowrap; display: block; }
        .pac-drop-header {
            padding: 10px 18px 8px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: #94a3b8;
            border-bottom: 1px solid #f1f5f9;
            white-space: nowrap;
        }
        .pac-drop-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 18px;
            font-size: 13px;
            font-weight: 600;
            color: var(--dark-blue);
            text-decoration: none;
            transition: background .15s;
            border-bottom: 1px solid #f1f5f9;
            white-space: nowrap;
        }
        .pac-drop-item:last-child { border-bottom: none; }
        .pac-drop-item:hover { background: #f5f8ff; color: var(--primary-blue); }
        .pac-drop-item i { width: 16px; color: var(--primary-blue); font-size: 13px; flex-shrink: 0; }
        .pac-drop-item div { display: flex; flex-direction: column; }
        .pac-drop-item .sub { font-size: 11px; font-weight: 400; color: #94a3b8; white-space: nowrap; }
        .pro-drop-item:last-child { border-bottom: none; }
        .pro-drop-item:hover { background: #f5f8ff; color: var(--primary-blue); }
        .pro-drop-item i { width: 18px; color: var(--primary-blue); font-size: 14px; }
        .pro-drop-item .sub { font-size: 11px; font-weight: 400; color: #94a3b8; display: block; margin-top: 1px; }

        /* ── Píldora de sesión activa ── */
        .session-pill {
            display: flex; /* siempre visible cuando el wrapper es visible */
            align-items: center;
            gap: 10px;
            background: rgba(255,255,255,0.70);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255,255,255,0.85);
            border-radius: 50px;
            padding: 5px 14px 5px 6px;
            font-size: 13px;
            font-weight: 600;
            color: var(--dark-blue);
            cursor: pointer;
            transition: all .2s;
            box-shadow: 0 2px 12px rgba(0,40,120,0.10);
            position: relative;
        }
        .session-pill:hover { background: white; box-shadow: 0 4px 18px rgba(0,40,120,0.14); }
        .session-avatar {
            width: 28px; height: 28px; border-radius: 50%;
            object-fit: cover;
            background: var(--primary-blue);
            display: flex; align-items: center; justify-content: center;
            color: white; font-size: 12px; font-weight: 700;
            flex-shrink: 0;
            overflow: hidden;
        }
        .session-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
        .session-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .session-role-badge {
            font-size: 10px; font-weight: 700; padding: 2px 8px;
            border-radius: 20px; margin-left: 2px;
        }
        .session-role-badge.paciente { background: #EEF4FF; color: var(--primary-blue); }
        .session-role-badge.medico   { background: #DCFCE7; color: #16a34a; }

        .session-plan-badge {
            font-size: 10px; font-weight: 700; padding: 2px 8px;
            border-radius: 20px; margin-left: -4px;
            align-items: center; gap: 3px;
        }
        .session-plan-badge.free { background: #F1F5F9; color: #64748B; }
        .session-plan-badge.pro  { background: linear-gradient(135deg, #FCD34D, #F59E0B); color: #92400E; }

        /* dropdown de sesión */
        .session-dropdown {
            display: none;
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            background: white;
            border: 1px solid #e8eeff;
            border-radius: 16px;
            box-shadow: 0 12px 36px rgba(0,40,120,0.14);
            min-width: 220px;
            z-index: 9999;
            overflow: hidden;
        }
        .session-pill-wrap { position: relative; }
        .session-pill-wrap.open .session-dropdown { display: block; }
        .session-drop-header {
            padding: 12px 16px 8px;
            font-size: 10px; font-weight: 700;
            text-transform: uppercase; letter-spacing: 1.5px;
            color: #94a3b8; border-bottom: 1px solid #f1f5f9;
        }
        .session-drop-item {
            display: flex; align-items: center; gap: 12px;
            padding: 12px 16px; font-size: 13px; font-weight: 600;
            color: var(--dark-blue); text-decoration: none;
            transition: background .15s; border-bottom: 1px solid #f1f5f9;
            cursor: pointer;
        }
        .session-drop-item:last-child { border-bottom: none; }
        .session-drop-item:hover { background: #f5f8ff; color: var(--primary-blue); }
        .session-drop-item i { width: 16px; color: var(--primary-blue); font-size: 13px; }
        .session-drop-item.danger { color: #ef4444; }
        .session-drop-item.danger i { color: #ef4444; }
        .session-drop-item.danger:hover { background: #fff5f5; color: #ef4444; }
        .pro-drop-header {
            padding: 12px 18px 8px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: #94a3b8;
            border-bottom: 1px solid #f1f5f9;
        }

        /* Hero content */
        .hero-main { max-width: 560px; position: relative; z-index: 10; margin-top: 42px; }

        .precision-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(224,240,255,0.9);
            border: 1px solid rgba(0,102,255,0.15);
            padding: 7px 16px;
            border-radius: 50px;
            margin-bottom: 18px;
        }
        .precision-dot { width: 7px; height: 7px; background: var(--primary-blue); border-radius: 50%; }
        .precision-badge span { font-size: 12px; font-weight: 600; color: var(--primary-blue); }

        .hero-main h1 {
            font-size: 66px;
            font-weight: 800;
            color: var(--dark-blue);
            line-height: 1.05;
            margin-bottom: 20px;
            letter-spacing: -2px;
        }
        .hero-main h1 .blue {
            background: linear-gradient(90deg, #0044ff 0%, #3b82f6 30%, #6366f1 60%, #3b82f6 80%, #0044ff 100%);
            background-size: 200% auto;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            color: transparent;
            animation: gradientShift 4s ease infinite;
            display: inline-block;
        }

        .hero-main p { color: var(--text-muted); font-size: 15px; line-height: 1.65; max-width: 400px; }

        .cta-row { display: flex; align-items: center; gap: 28px; margin-top: 32px; }

        /* ── HERO SEARCH BAR ── */
        .hero-search-bar {
            display: inline-flex;
            align-items: center;
            background: white;
            border-radius: 50px;
            box-shadow: 0 8px 32px rgba(0,40,120,0.18);
            overflow: visible;
            position: relative;
            border: 1.5px solid rgba(255,255,255,0.6);
            width: 100%;
            max-width: 600px;
        }
        .hero-search-field {
            flex: 1;
            position: relative;
            min-width: 0;
        }
        .hero-search-field:first-child {
            border-right: 1px solid #e2e8f0;
        }
        .hero-search-input {
            width: 100%;
            padding: 15px 12px 15px 40px;
            border: none;
            background: transparent;
            font-family: 'Urbanist', sans-serif;
            font-size: 14px;
            font-weight: 500;
            color: #0A192F;
            outline: none;
            border-radius: 50px 0 0 50px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .hero-search-field:last-of-type .hero-search-input {
            border-radius: 0;
        }
        .hero-search-input::placeholder { color: #94a3b8; font-weight: 400; }
        .hero-search-field > i.field-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: #0066FF;
            font-size: 13px;
            pointer-events: none;
        }
        /* Dropdown custom */
        .hero-dropdown {
            display: none;
            position: fixed;
            background: white;
            border: 1.5px solid #dde5ff;
            border-radius: 14px;
            z-index: 999999;
            max-height: 260px;
            overflow-y: auto;
            box-shadow: 0 8px 28px rgba(0,40,120,0.14);
            font-family: 'Urbanist', sans-serif;
            min-width: 220px;
        }
        .hero-dropdown-item {
            padding: 11px 18px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            color: #0A192F;
            cursor: pointer;
            border-bottom: 1px solid #f1f5f9;
            transition: background .12s;
        }
        .hero-dropdown-item:last-child { border-bottom: none; }
        .hero-dropdown-item:hover { background: #f1f5ff; }
        .hero-dropdown-item i { color: #0066FF; font-size: 12px; width: 14px; flex-shrink: 0; }
        .hero-dropdown-item .item-sub { color: #94a3b8; font-size: 12px; margin-left: auto; white-space: nowrap; }
        .hero-search-btn {
            background: #0066FF;
            border: none;
            color: white;
            padding: 13px 22px;
            border-radius: 0 50px 50px 0;
            font-family: 'Urbanist', sans-serif;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 7px;
            transition: background .2s;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .hero-search-btn:hover { background: #0052d4; }
        @keyframes heroWiggle {
            0%,100% { transform: translateY(0); }
            20% { transform: translateY(-4px); }
            40% { transform: translateY(2px); }
            60% { transform: translateY(-3px); }
            80% { transform: translateY(1px); }
        }
        .hero-search-bar.wiggle { animation: heroWiggle 0.6s ease; }

        .btn-explore {
            background-color: var(--primary-blue);
            color: white;
            border: none;
            padding: 14px 20px 14px 28px;
            border-radius: 50px;
            font-size: 15px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 14px;
            cursor: pointer;
            box-shadow: 0 10px 28px rgba(0,102,255,0.28);
            transition: all 0.2s;
        }
        .btn-explore:hover { background: #0052d4; transform: translateY(-2px); }
        .btn-explore .arrow-circle {
            background-color: rgba(255,255,255,0.25);
            width: 28px; height: 28px;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 12px;
        }

        .happy-patients { display: flex; align-items: center; gap: 12px; }
        .avatar-group { display: flex; }
        .avatar-group img {
            width: 34px; height: 34px;
            border-radius: 50%;
            border: 2px solid white;
            margin-left: -9px;
            object-fit: cover;
        }
        .avatar-group img:first-child { margin-left: 0; }
        .happy-patients .info strong { display: block; font-size: 15px; font-weight: 800; color: var(--dark-blue); }
        .happy-patients .info span { font-size: 12px; color: var(--text-muted); }

        /* STATS GLASS BAR — SpotlightCard */
        .stats-glass-bar {
            --mouse-x: 50%;
            --mouse-y: 50%;
            --spotlight-color: rgba(0, 102, 255, 0.18);

            background: rgba(255,255,255,0.38);
            backdrop-filter: blur(20px) saturate(160%);
            -webkit-backdrop-filter: blur(20px) saturate(160%);
            border: 1px solid rgba(255,255,255,0.55);
            border-radius: 20px;
            display: inline-flex;
            padding: 20px 10px;
            position: relative;
            z-index: 10;
            max-width: 620px;
            overflow: hidden;
            box-shadow:
                0 4px 24px rgba(0,40,120,0.08),
                inset 0 1px 0 rgba(255,255,255,0.8);
        }

        /* Spotlight radial gradient that follows the cursor */
        .stats-glass-bar::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(
                circle at var(--mouse-x) var(--mouse-y),
                var(--spotlight-color),
                transparent 70%
            );
            opacity: 0;
            transition: opacity 0.4s ease;
            pointer-events: none;
            border-radius: inherit;
        }
        .stats-glass-bar:hover::before {
            opacity: 1;
        }
        .stat-item { display: flex; align-items: center; gap: 14px; padding: 4px 28px; }
        .stat-item:not(:last-child) { border-right: 1px solid rgba(0,80,200,0.12); }
        .stat-icon { width: 42px; height: 42px; background: rgba(235,242,255,0.7); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary-blue); font-size: 1.1rem; border: 1px solid rgba(200,220,255,0.5); flex-shrink:0; }
        .stat-item .stat-title { font-size: 13.5px; font-weight: 800; color: var(--dark-blue); line-height: 1.2; }
        .stat-item .lbl { font-size: 11.5px; color: var(--text-muted); line-height: 1.3; margin-top: 2px; }

        /* ── SECCIÓN INTRO ── */
        .intro-text-section {
            text-align: center;
            background-color: var(--light-bg);
            padding: 100px 80px 80px;
        }
        .intro-text-section .sub-label {
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: 14px;
        }
        .intro-text-section .sub-label strong { color: #334155; }
        .intro-text-section h2 {
            font-size: 2.55rem;
            font-weight: 800;
            color: var(--dark-blue);
            max-width: 820px;
            margin: 0 auto;
            line-height: 1.15;
        }
        .intro-text-section h2 .muted { color: rgba(10,25,47,0.22); font-weight: 800; }
        .intro-text-section h2 .blue { color: var(--primary-blue); }

        /* ── RotatingText ── */
        .rotating-text-block {
            margin-top: 52px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0px;
        }
        .rotating-text-main {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
            font-size: 2.55rem;
            font-weight: 800;
            color: var(--dark-blue);
            flex-wrap: wrap;
            line-height: 1.3;
        }
        .rotating-text-secondary {
            font-size: 1.1rem;
            font-weight: 600;
            color: rgba(10,25,47,0.55);
            margin-top: 6px;
            letter-spacing: 0.01em;
        }
        /* The blue pill box */
        .rt-pill {
            display: inline-flex;
            align-items: center;
            background: var(--primary-blue);
            color: white;
            border-radius: 12px;
            padding: 4px 18px 6px;
            overflow: hidden;
            min-width: 260px;
            justify-content: center;
            position: relative;
        }
        /* Characters inside the pill */
        .rt-char {
            display: inline-block;
            transform: translateY(100%);
            opacity: 0;
            transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease;
        }
        .rt-char.visible {
            transform: translateY(0);
            opacity: 1;
        }
        .rt-char.exit-up {
            transform: translateY(-120%);
            opacity: 0;
        }

        /* ── Animated gradient text ── */
        @keyframes gradientShift {
            0%   { background-position: 0% 50%; }
            50%  { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        .gradient-text {
            background: linear-gradient(90deg,
                #0044ff 0%,
                #3b82f6 25%,
                #6366f1 50%,
                #3b82f6 75%,
                #0044ff 100%
            );
            background-size: 200% auto;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            color: transparent;
            animation: gradientShift 4s ease infinite;
            display: inline;
        }

        /* ── SERVICIOS ── */
        .services-section { padding: 90px 80px; background: #FFFFFF; }
        .services-header-split {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 50px;
        }
        .services-title-left span.sub { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--primary-blue); font-weight: 600; display: block; margin-bottom: 8px; }
        .services-title-left h2 { font-size: 40px; color: var(--dark-blue); font-weight: 800; line-height: 1.2; }
        .services-title-left h2 span {
            background: linear-gradient(90deg, #0044ff 0%, #3b82f6 30%, #6366f1 60%, #3b82f6 80%, #0044ff 100%);
            background-size: 200% auto;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            color: transparent;
            animation: gradientShift 4s ease infinite;
        }
        .services-text-right { max-width: 400px; font-size: 14px; color: var(--text-muted); line-height: 1.7; }
        .services-text-right a { color: var(--primary-blue); text-decoration: none; font-weight: 600; display: inline-block; margin-top: 8px; }

        .cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
        .service-card {
            background: #FFFFFF;
            border: 1px solid #EAF0F6;
            border-radius: 22px;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
            box-shadow: 0 4px 6px rgba(0,0,0,0.01), 0 15px 35px rgba(10,25,50,0.05);
        }
        .service-card:hover { transform: translateY(-8px); box-shadow: 0 8px 12px rgba(0,0,0,0.02), 0 28px 60px rgba(10,25,50,0.1); }
        .service-card img { width: 100%; height: 210px; object-fit: cover; display: block; }
        .service-card-body { padding: 24px; }
        .service-icon { width: 42px; height: 42px; background: #EEF4FF; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: var(--primary-blue); font-size: 1rem; margin-bottom: 14px; }
        .service-card h4 { font-size: 20px; color: var(--dark-blue); margin-bottom: 10px; font-weight: 700; }
        .service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 18px; }
        .card-action { color: var(--primary-blue); text-decoration: none; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
        .card-action:hover { text-decoration: underline; }

        .center-btn-container { display: flex; justify-content: center; margin-top: 48px; }
        .btn-view-all {
            background-color: var(--primary-blue);
            color: white; border: none;
            padding: 14px 36px; border-radius: 50px;
            font-size: 15px; font-weight: 600;
            display: flex; align-items: center; gap: 10px;
            cursor: pointer; box-shadow: 0 6px 22px rgba(0,102,255,0.22);
            transition: all .2s;
        }
        .btn-view-all:hover { background: #0052d4; transform: translateY(-1px); }

        /* ── VIDEO BANNER ── */
        .video-banner-section { padding: 0 80px 80px; background: white; }
        .video-box {
            width: 100%; height: 400px;
            border-radius: 26px;
            display: flex; flex-direction: column;
            justify-content: center; align-items: center;
            color: white; text-align: center; gap: 14px;
            position: relative;
            overflow: hidden;
        }
        .video-box-bg {
            position: absolute;
            inset: 0;
            width: 100%; height: 100%;
            object-fit: cover;
            z-index: 0;
            border-radius: 26px;
        }
        .video-box-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,0.38);
            border-radius: 26px;
            z-index: 1;
        }
        .video-box-content {
            position: relative;
            z-index: 2;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 14px;
        }
        .play-btn {
            width: 72px; height: 72px;
            background: white; color: var(--primary-blue);
            border-radius: 50%;
            display: flex; justify-content: center; align-items: center;
            font-size: 24px; cursor: pointer;
            box-shadow: 0 8px 30px rgba(0,0,0,0.2);
            transition: transform .2s;
        }
        .play-btn:hover { transform: scale(1.1); }
        .video-box h3 { font-size: 26px; font-weight: 700; }
        .video-box p { font-size: 14px; opacity: .85; max-width: 400px; }

        /* ── DOCTORES ── */
        .doctors-section { padding: 90px 80px; background: white; }
        .section-hdr { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 38px; }
        .section-hdr h2 { font-size: 38px; font-weight: 800; color: var(--dark-blue); line-height: 1.2; }
        .section-hdr h2 span {
            background: linear-gradient(90deg, #0044ff 0%, #3b82f6 30%, #6366f1 60%, #3b82f6 80%, #0044ff 100%);
            background-size: 200% auto;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            color: transparent;
            animation: gradientShift 4s ease infinite;
        }
        .section-hdr-right { display: flex; align-items: center; gap: 10px; }
        .arr-btn { width: 34px; height: 34px; border: 1.5px solid #dde5ff; border-radius: 50%; background: none; color: #888; font-size: .75rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
        .arr-btn:hover { background: var(--primary-blue); color: white; border-color: var(--primary-blue); }

        .doctors-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
        .doctor-card { border-radius: 20px; overflow: hidden; border: 1px solid #edf2ff; background: white; transition: box-shadow .3s, transform .3s; }
        .doctor-card:hover { box-shadow: 0 14px 36px rgba(0,102,255,0.1); transform: translateY(-4px); }
        .doctor-card img { width: 100%; height: 340px; object-fit: cover; object-position: top center; display: block; }
        .doctor-info { padding: 16px 18px; }
        .doctor-info h4 { font-size: 15px; font-weight: 700; color: var(--dark-blue); margin-bottom: 3px; }
        .doctor-info span { font-size: 13px; color: var(--primary-blue); font-weight: 500; }
        .doctor-card { cursor: pointer; }
        .doctor-card .doctor-hint { font-size: 11px; color: #94a3b8; margin-top: 6px; display: flex; align-items: center; gap: 4px; }

        /* ── MODAL MÉDICO ── */
        .doc-modal-overlay {
            display: none;
            position: fixed; inset: 0;
            background: rgba(10,25,47,0.55);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            z-index: 99999;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .doc-modal-overlay.open { display: flex; }
        .doc-modal {
            background: white;
            border-radius: 28px;
            max-width: 700px;
            width: 100%;
            box-shadow: 0 30px 80px rgba(0,40,120,0.22);
            overflow: hidden;
            animation: modalIn .3s cubic-bezier(.34,1.56,.64,1);
            position: relative;
        }
        @keyframes modalIn {
            from { opacity: 0; transform: scale(0.92) translateY(20px); }
            to   { opacity: 1; transform: scale(1) translateY(0); }
        }
        .doc-modal-header {
            display: flex;
            align-items: flex-end;
            gap: 24px;
            padding: 36px 36px 0;
            background: linear-gradient(135deg, #eef4ff 0%, #f0f7ff 100%);
        }
        .doc-modal-photo {
            width: 120px;
            height: 140px;
            object-fit: cover;
            object-position: top center;
            border-radius: 16px;
            border: 3px solid white;
            box-shadow: 0 8px 24px rgba(0,102,255,0.15);
            flex-shrink: 0;
            margin-bottom: -20px;
        }
        .doc-modal-headline { padding-bottom: 24px; }
        .doc-modal-headline h2 { font-size: 24px; font-weight: 800; color: var(--dark-blue); margin-bottom: 4px; }
        .doc-modal-badge {
            display: inline-flex; align-items: center; gap: 6px;
            background: var(--primary-blue); color: white;
            font-size: 12px; font-weight: 600;
            padding: 4px 12px; border-radius: 50px;
            margin-bottom: 6px;
        }
        .doc-modal-years {
            font-size: 12px; color: #64748b; font-weight: 500;
            display: flex; align-items: center; gap: 5px; margin-top: 4px;
        }
        .doc-modal-body { padding: 32px 36px 36px; }
        .doc-modal-bio {
            font-size: 14px; color: #475569; line-height: 1.8;
            margin-bottom: 24px;
        }
        .doc-modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
        .doc-modal-tag {
            background: #eef4ff; color: var(--primary-blue);
            font-size: 12px; font-weight: 600;
            padding: 5px 13px; border-radius: 50px;
            border: 1px solid rgba(0,102,255,0.12);
        }
        .doc-modal-stats {
            display: grid; grid-template-columns: repeat(3,1fr);
            gap: 12px; margin-bottom: 28px;
        }
        .doc-stat {
            background: #f8fafc; border-radius: 14px;
            padding: 14px 16px; text-align: center;
            border: 1px solid #e8eeff;
        }
        .doc-stat strong { display: block; font-size: 22px; font-weight: 800; color: var(--dark-blue); }
        .doc-stat span { font-size: 11px; color: #64748b; font-weight: 500; }
        .doc-modal-footer { display: flex; gap: 10px; }
        .doc-modal-btn-primary {
            flex: 1; background: var(--primary-blue); color: white;
            border: none; border-radius: 50px; padding: 13px 24px;
            font-size: 14px; font-weight: 700; cursor: pointer;
            font-family: 'Urbanist', sans-serif;
            transition: all .2s;
        }
        .doc-modal-btn-primary:hover { background: #0052d4; transform: translateY(-1px); }
        .doc-modal-btn-secondary {
            background: #f1f5f9; color: var(--dark-blue);
            border: none; border-radius: 50px; padding: 13px 24px;
            font-size: 14px; font-weight: 600; cursor: pointer;
            font-family: 'Urbanist', sans-serif;
            transition: all .2s;
        }
        .doc-modal-btn-secondary:hover { background: #e2e8f0; }
        .doc-modal-close {
            position: absolute; top: 16px; right: 16px;
            width: 36px; height: 36px;
            background: white; border: none; border-radius: 50%;
            font-size: 16px; cursor: pointer; color: #64748b;
            display: flex; align-items: center; justify-content: center;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            transition: all .2s;
        }
        .doc-modal-close:hover { background: #fee2e2; color: #ef4444; }

        /* ── APPOINTMENT BANNER ── */
        .appt-wrap { padding: 0 80px 80px; }
        .appointment-banner {
            background: linear-gradient(135deg, #0044d4 0%, #1a6bff 100%);
            border-radius: 26px;
            padding: 60px;
            color: white;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }
        .appointment-banner h2 { font-size: 34px; font-weight: 800; margin-bottom: 14px; line-height: 1.25; }
        .appointment-banner p { opacity: .82; font-size: 14px; line-height: 1.65; }
        .appt-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
        .appt-input {
            background: rgba(255,255,255,0.12);
            border: 1px solid rgba(255,255,255,0.22);
            border-radius: 12px;
            padding: 13px 16px;
            color: white;
            font-size: 14px;
            font-family: 'Urbanist', sans-serif;
            outline: none;
            transition: border .2s, background .2s;
        }
        .appt-input::placeholder { color: rgba(255,255,255,0.55); }
        .appt-input:focus { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.18); }
        .appt-input option { color: #111; background: white; }
        .appt-submit {
            grid-column: 1 / -1;
            background: white;
            color: var(--primary-blue);
            border: none;
            border-radius: 30px;
            padding: 14px;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            font-family: 'Urbanist', sans-serif;
            transition: all .2s;
        }
        .appt-submit:hover { background: #f0f5ff; transform: translateY(-1px); }

        /* ── TECH ── */
        /* ── TESTIMONIOS ── */
        .testimonials-section { background: var(--light-bg); padding: 90px 80px; }
        .testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 38px; }
        .test-card {
            border: 1px solid #e2e8f0;
            padding: 26px;
            border-radius: 20px;
            background: white;
            transition: box-shadow .3s;
        }
        .test-card:hover { box-shadow: 0 8px 28px rgba(0,102,255,0.08); }
        .user-info { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
        .user-info img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
        .user-info h4 { font-size: 14px; font-weight: 700; color: var(--dark-blue); margin-bottom: 2px; }
        .user-info span { font-size: 12px; color: var(--text-muted); }
        .stars { color: #FFC107; font-size: 13px; margin-bottom: 10px; }
        .q-icon { color: var(--primary-blue); font-size: 1.4rem; margin-bottom: 10px; }
        .test-card p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

        /* ── CTA AZUL ── */
        .cta-wrap { padding: 0 80px 80px; }
        .cta-band {
            background: linear-gradient(135deg, #0044d4, #1560ee);
            border-radius: 26px;
            padding: 66px 70px;
            color: white;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
            overflow: hidden;
            position: relative;
        }
        .cta-band::after {
            content: '';
            position: absolute; right: -80px; bottom: -80px;
            width: 320px; height: 320px;
            border-radius: 50%;
            border: 70px solid rgba(255,255,255,0.05);
            pointer-events: none;
        }
        .cta-badge-pill {
            display: inline-flex; align-items: baseline; gap: 10px;
            background: rgba(255,255,255,0.14);
            backdrop-filter: blur(8px);
            border-radius: 14px;
            padding: 10px 20px;
            margin-bottom: 20px;
        }
        .cta-badge-pill .num { font-size: 1.6rem; font-weight: 900; }
        .cta-badge-pill .lbl { font-size: 13px; opacity: .8; max-width: 130px; line-height: 1.35; }
        .cta-band h2 { font-size: 28px; font-weight: 700; margin-bottom: 26px; line-height: 1.45; }
        .btn-white {
            background: white; color: var(--primary-blue);
            border: none; padding: 13px 30px;
            border-radius: 30px; font-size: 15px; font-weight: 700;
            cursor: pointer; display: inline-flex; align-items: center; gap: 9px;
            font-family: 'Urbanist', sans-serif;
            transition: transform .2s, box-shadow .2s;
        }
        .btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.18); }
        .cta-right { position: relative; display: flex; justify-content: center; align-items: center; }
        .cta-right img { max-width: 420px; width: 100%; border-radius: 18px; object-fit: cover; }
        .cta-float {
            position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
            background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
            border-radius: 14px; padding: 16px 20px; text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        }
        .cta-float .pct { font-size: 1.8rem; font-weight: 900; color: var(--primary-blue); }
        .cta-float .lbl { font-size: 11px; color: #889; line-height: 1.4; }

        /* ── FOOTER ── */
        footer {
            background: #f8faff;
            padding: 70px 80px 30px;
            border-top: 1px solid #edf2ff;
        }
        .footer-grid {
            display: grid;
            grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
            gap: 50px;
            margin-bottom: 50px;
        }
        .f-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
        .f-logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg,#0066ff,#4c8bff); border-radius: 9px; display: flex; align-items: center; justify-content: center; color: white; font-size: .85rem; }
        .f-logo strong { font-size: 1.1rem; font-weight: 900; color: var(--dark-blue); }
        .f-logo small { font-size: .6rem; color: #aaa; letter-spacing: 2px; text-transform: uppercase; display: block; }
        footer .f-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 18px; }
        .socials { display: flex; gap: 8px; }
        .s-btn { width: 34px; height: 34px; background: var(--primary-blue); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: .8rem; cursor: pointer; transition: background .2s; }
        .s-btn:hover { background: #0044c8; }
        footer h5 { font-size: 14px; font-weight: 700; color: var(--dark-blue); margin-bottom: 16px; }
        .f-links { list-style: none; }
        .f-links li { margin-bottom: 10px; }
        .f-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color .2s; }
        .f-links a:hover { color: var(--primary-blue); }
        .f-contact-item { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
        .f-contact-item i { color: var(--primary-blue); font-size: .85rem; width: 14px; }
        .f-contact-item span { font-size: 13px; color: var(--text-muted); }
        .f-email-row {
            display: flex; border-radius: 30px; overflow: hidden;
            border: 1px solid #dde8ff; margin-top: 12px;
        }
        .f-email-row input { flex:1; border:none; padding:11px 16px; font-size:13px; outline:none; color:#333; background:white; font-family:'Urbanist',sans-serif; }
        .f-email-row button { background:var(--primary-blue); color:white; border:none; padding:11px 18px; font-size:13px; font-weight:600; cursor:pointer; font-family:'Urbanist',sans-serif; transition:background .2s; }
        .f-email-row button:hover { background:#0044c8; }
        .footer-bottom { border-top:1px solid #e8eeff; padding-top:22px; text-align:center; font-size:12px; color:#aab; }

        @media (max-width:1024px) {
            .hero-section { background-image: url('https://drqysosbqdkbtvgsellj.supabase.co/storage/v1/object/public/assets/hero-doctor.webp'); }
            .services-header-split,.appt-form-grid,.cta-band,.footer-grid { grid-template-columns:1fr; }
            .cards-grid,.doctors-grid,.testimonials-grid { grid-template-columns:1fr; }
            .hero-main h1 { font-size: 42px; }
        }

        /* ══════════════════════════════════════════
           STRIPE-STYLE MODAL SYSTEM
        ══════════════════════════════════════════ */

        /* Service cards get a corner icon to hint clickability */
        .service-card {
            cursor: pointer;
            position: relative;
        }
        .service-card::after {
            content: '';
            position: absolute;
            top: 14px; right: 14px;
            width: 28px; height: 28px;
            background: rgba(255,255,255,0.85);
            border: 1px solid rgba(200,220,255,0.5);
            border-radius: 8px;
            background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.75 3.25L10.25 3.25L10.25 5.75' stroke='%230066FF' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6.75 5.25L10.25 3.25' stroke='%230066FF' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M5.25 3.75H2.75C2.198 3.75 1.75 4.198 1.75 4.75V9.25C1.75 9.802 2.198 10.25 2.75 10.25H7.25C7.802 10.25 8.25 9.802 8.25 9.25V6.75' stroke='%230066FF' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: center;
            opacity: 0;
            transform: scale(0.85);
            transition: opacity 0.2s, transform 0.2s;
        }
        .service-card:hover::after {
            opacity: 1;
            transform: scale(1);
        }

        /* ── Backdrop overlay ── */
        .modal-backdrop {
            position: fixed;
            inset: 0;
            z-index: 9000;
            background: rgba(10, 18, 40, 0.45);
            backdrop-filter: blur(12px) saturate(150%);
            -webkit-backdrop-filter: blur(12px) saturate(150%);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }
        .modal-backdrop.open {
            opacity: 1;
            pointer-events: auto;
        }

        /* ── Modal panel ── */
        .modal-panel {
            background: #fff;
            border-radius: 20px;
            width: 100%;
            max-width: 860px;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            transform: translateY(24px) scale(0.97);
            transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                        opacity 0.3s ease;
            opacity: 0;
            box-shadow: 0 8px 40px rgba(0,20,80,0.18), 0 2px 12px rgba(0,0,0,0.08);
        }
        .modal-backdrop.open .modal-panel {
            transform: translateY(0) scale(1);
            opacity: 1;
        }

        /* Close button */
        .modal-close {
            position: sticky;
            top: 0;
            z-index: 10;
            display: flex;
            justify-content: flex-end;
            padding: 16px 20px 0;
            background: transparent;
            pointer-events: none;
        }
        .modal-close-btn {
            width: 36px; height: 36px;
            border-radius: 10px;
            border: 1px solid rgba(0,80,200,0.15);
            background: rgba(245,248,255,0.95);
            color: var(--dark-blue);
            cursor: pointer;
            display: flex;align-items:center;justify-content:center;
            font-size: 14px;
            transition: background 0.15s, transform 0.15s;
            pointer-events: auto;
        }
        .modal-close-btn:hover { background: #e8eeff; transform: scale(1.08); }

        /* Modal hero image */
        .modal-hero {
            width: 100%;
            height: 260px;
            object-fit: cover;
            display: block;
            margin-top: -52px; /* sit behind close btn row */
            border-radius: 20px 20px 0 0;
        }

        /* Modal body */
        .modal-body {
            padding: 32px 40px 40px;
        }
        .modal-tag {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(0,102,255,0.08);
            color: var(--primary-blue);
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            padding: 5px 12px;
            border-radius: 20px;
            margin-bottom: 16px;
        }
        .modal-title {
            font-size: 28px;
            font-weight: 800;
            color: var(--dark-blue);
            margin-bottom: 12px;
            letter-spacing: -0.5px;
            line-height: 1.25;
        }
        .modal-desc {
            font-size: 15px;
            color: var(--text-muted);
            line-height: 1.7;
            margin-bottom: 28px;
        }

        /* Feature list */
        .modal-features {
            list-style: none;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 32px;
        }
        .modal-features li {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            font-size: 14px;
            color: var(--dark-blue);
            font-weight: 500;
        }
        .modal-features li::before {
            content: '';
            width: 18px; height: 18px;
            border-radius: 50%;
            background: rgba(0,102,255,0.1);
            flex-shrink: 0;
            margin-top: 1px;
            background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%230066FF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: center;
        }

        /* Sub-cards at bottom */
        .modal-subcards {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            border-top: 1px solid rgba(0,80,200,0.08);
            padding-top: 28px;
        }
        .modal-subcard {
            background: var(--light-bg);
            border-radius: 14px;
            padding: 20px;
            border: 1px solid rgba(0,80,200,0.06);
        }
        .modal-subcard-icon {
            width: 36px; height: 36px;
            border-radius: 10px;
            background: rgba(0,102,255,0.1);
            display: flex; align-items: center; justify-content: center;
            color: var(--primary-blue);
            font-size: 14px;
            margin-bottom: 12px;
        }
        .modal-subcard h5 {
            font-size: 13px;
            font-weight: 700;
            color: var(--dark-blue);
            margin-bottom: 6px;
        }
        .modal-subcard p {
            font-size: 12px;
            color: var(--text-muted);
            line-height: 1.5;
        }

        /* CTA row */
        .modal-cta-row {
            display: flex;
            gap: 12px;
            margin-bottom: 32px;
        }
        .modal-btn-primary {
            padding: 12px 24px;
            background: var(--primary-blue);
            color: #fff;
            border-radius: 50px;
            font-size: 14px;
            font-weight: 600;
            border: none;
            cursor: pointer;
            transition: opacity 0.15s;
            text-decoration: none;
            display: inline-flex; align-items: center; gap: 8px;
        }
        .modal-btn-primary:hover { opacity: 0.88; }
        .modal-btn-secondary {
            padding: 12px 24px;
            background: transparent;
            color: var(--primary-blue);
            border-radius: 50px;
            font-size: 14px;
            font-weight: 600;
            border: 1.5px solid rgba(0,102,255,0.3);
            cursor: pointer;
            transition: background 0.15s;
            text-decoration: none;
            display: inline-flex; align-items: center; gap: 8px;
        }
        .modal-btn-secondary:hover { background: rgba(0,102,255,0.05); }

        @media (max-width: 640px) {
            .modal-features { grid-template-columns: 1fr; }
            .modal-subcards { grid-template-columns: 1fr; }
            .modal-body { padding: 24px 20px 32px; }
        }


        /* ══════════════════════════════════════════
           REVIEW MODAL — Patient Story Style
        ══════════════════════════════════════════ */
        .test-card { cursor: pointer; position: relative; transition: transform 0.2s, box-shadow 0.2s; }
        .test-card::after {
            content: 'Read full story →';
            position: absolute;
            bottom: 16px; right: 18px;
            font-size: 11px;
            font-weight: 600;
            color: var(--primary-blue);
            opacity: 0;
            transition: opacity 0.2s;
            letter-spacing: 0.02em;
        }
        .test-card:hover::after { opacity: 1; }

        /* Second backdrop (stacks above service modal) */
        #reviewModal {
            z-index: 9100;
        }

        /* Review modal panel — different shape */
        #reviewModal .modal-panel {
            max-width: 640px;
            border-radius: 24px;
            overflow: hidden;
        }

        /* Colored gradient top band */
        .rev-header {
            background: linear-gradient(135deg, #0033cc 0%, #0066ff 50%, #6366f1 100%);
            padding: 36px 36px 80px;
            position: relative;
        }
        .rev-header-quote {
            font-size: 80px;
            line-height: 0.6;
            color: rgba(255,255,255,0.18);
            font-family: Georgia, serif;
            position: absolute;
            top: 28px; right: 32px;
        }
        .rev-stars-top {
            display: flex;
            gap: 4px;
            margin-bottom: 16px;
        }
        .rev-stars-top span {
            color: #fbbf24;
            font-size: 18px;
        }
        .rev-quote-text {
            font-size: 18px;
            color: #fff;
            line-height: 1.55;
            font-weight: 500;
            letter-spacing: -0.01em;
            position: relative;
            z-index: 1;
        }

        /* Avatar overlap */
        .rev-avatar-row {
            display: flex;
            align-items: flex-end;
            gap: 16px;
            padding: 0 36px;
            margin-top: -48px;
            position: relative;
            z-index: 2;
            margin-bottom: 24px;
        }
        .rev-avatar {
            width: 88px; height: 88px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid #fff;
            box-shadow: 0 4px 20px rgba(0,20,80,0.18);
            flex-shrink: 0;
        }
        .rev-name-block {
            padding-bottom: 6px;
        }
        .rev-name-block h3 {
            font-size: 20px;
            font-weight: 800;
            color: var(--dark-blue);
            margin-bottom: 3px;
        }
        .rev-name-block span {
            font-size: 13px;
            color: var(--text-muted);
            font-weight: 500;
        }

        /* Body content */
        .rev-body {
            padding: 0 36px 36px;
        }
        .rev-extended-quote {
            font-size: 14px;
            color: #4a5568;
            line-height: 1.75;
            border-left: 3px solid rgba(0,102,255,0.25);
            padding-left: 16px;
            margin-bottom: 28px;
            font-style: italic;
        }

        /* Detail pills */
        .rev-pills {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 28px;
        }
        .rev-pill {
            display: flex;
            align-items: center;
            gap: 7px;
            padding: 7px 14px;
            background: var(--light-bg);
            border: 1px solid rgba(0,80,200,0.1);
            border-radius: 20px;
            font-size: 12px;
            color: var(--dark-blue);
            font-weight: 600;
        }
        .rev-pill i { color: var(--primary-blue); font-size: 11px; }

        /* Rating breakdown */
        .rev-ratings {
            background: var(--light-bg);
            border-radius: 14px;
            padding: 20px 20px 16px;
            margin-bottom: 28px;
        }
        .rev-ratings h4 {
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--text-muted);
            margin-bottom: 14px;
        }
        .rev-rating-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }
        .rev-rating-label {
            font-size: 12px;
            color: var(--text-muted);
            width: 110px;
            flex-shrink: 0;
        }
        .rev-rating-bar-wrap {
            flex: 1;
            height: 6px;
            background: rgba(0,80,200,0.1);
            border-radius: 10px;
            overflow: hidden;
        }
        .rev-rating-bar {
            height: 100%;
            border-radius: 10px;
            background: linear-gradient(90deg, #0066ff, #6366f1);
            transition: width 0.8s cubic-bezier(0.34,1.2,0.64,1);
        }
        .rev-rating-num {
            font-size: 12px;
            font-weight: 700;
            color: var(--dark-blue);
            width: 24px;
            text-align: right;
        }

        /* CTA bottom */
        .rev-cta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 20px;
            border-top: 1px solid rgba(0,80,200,0.08);
        }
        .rev-cta-text {
            font-size: 13px;
            color: var(--text-muted);
        }
        .rev-cta-text strong { color: var(--dark-blue); }
        .rev-close-btn {
            background: #f1f5ff;
            border: none;
            border-radius: 50px;
            padding: 10px 20px;
            font-size: 13px;
            font-weight: 600;
            color: var(--primary-blue);
            cursor: pointer;
            transition: background 0.15s;
        }
        .rev-close-btn:hover { background: #e0e8ff; }


        /* ══════════════════════════════════════════
           BOTÓN EXPLORE — animación periódica
        ══════════════════════════════════════════ */

        /* Pulse ring que aparece cada X segundos */
        @keyframes btnPulseRing {
            0%   { transform: scale(1);    opacity: 0.7; }
            60%  { transform: scale(1.55); opacity: 0; }
            100% { transform: scale(1.55); opacity: 0; }
        }

        /* Wiggle/vibración del botón */
        @keyframes btnWiggle {
            0%,100% { transform: translateX(0)   rotate(0deg);   }
            10%      { transform: translateX(-4px) rotate(-1.5deg); }
            20%      { transform: translateX(4px)  rotate(1.5deg);  }
            30%      { transform: translateX(-3px) rotate(-1deg);   }
            40%      { transform: translateX(3px)  rotate(1deg);    }
            50%      { transform: translateX(-2px) rotate(-0.5deg); }
            60%      { transform: translateX(2px)  rotate(0.5deg);  }
            70%      { transform: translateX(-1px) rotate(0);       }
            80%      { transform: translateX(0);                    }
        }

        /* Glow flash en el botón */
        @keyframes btnGlow {
            0%,100% { box-shadow: 0 10px 28px rgba(0,102,255,0.28); }
            50%      { box-shadow: 0 10px 42px rgba(0,102,255,0.65),
                                   0  0  22px rgba(0,102,255,0.40); }
        }

        .btn-explore-wrap {
            position: relative;
            display: inline-flex;
        }

        /* El anillo de pulso */
        .btn-explore-wrap::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 50px;
            background: transparent;
            border: 2px solid rgba(0,102,255,0.55);
            opacity: 0;
            pointer-events: none;
        }
        .btn-explore-wrap.wiggling::before {
            animation: btnPulseRing 0.7s ease-out forwards;
        }
        .btn-explore-wrap.wiggling .btn-explore {
            animation: btnWiggle 0.6s ease-in-out,
                       btnGlow   0.6s ease-in-out;
        }

        /* ══════════════════════════════════════════
           CURSOR PERSONALIZADO AZUL
        ══════════════════════════════════════════ */
        * { cursor: none !important; }

        #nx-cursor {
            position: fixed;
            top: 0; left: 0;
            pointer-events: none;
            z-index: 2147483647;
            will-change: transform;
        }

        /* Cursor principal — triángulo azul tipo play */
        #nx-cursor-arrow {
            width: 0; height: 0;
            border-top: 9px solid transparent;
            border-bottom: 9px solid transparent;
            border-left: 16px solid #0066FF;
            filter: drop-shadow(0 2px 6px rgba(0,102,255,0.50));
            transition: transform 0.1s ease, filter 0.15s;
            transform-origin: 0 50%;
        }

        /* Anillo exterior que hace lag */
        #nx-cursor-ring {
            position: fixed;
            top: 0; left: 0;
            width: 36px; height: 36px;
            border: 1.5px solid rgba(0,102,255,0.45);
            border-radius: 50%;
            pointer-events: none;
            z-index: 2147483646;
            transform: translate(-50%, -50%);
            transition: width 0.2s, height 0.2s, border-color 0.2s;
            will-change: transform;
        }

        /* Estados hover */
        body.cursor-hover #nx-cursor-arrow {
            border-left-color: #003ccc;
            filter: drop-shadow(0 2px 10px rgba(0,102,255,0.75));
            transform: scale(1.25);
        }
        body.cursor-hover #nx-cursor-ring {
            width: 52px; height: 52px;
            border-color: rgba(0,102,255,0.6);
        }

        /* Clic — contracción rápida */
        body.cursor-click #nx-cursor-arrow {
            transform: scale(0.75);
        }
        body.cursor-click #nx-cursor-ring {
            width: 20px; height: 20px;
            border-color: rgba(0,102,255,0.9);
        }

        /* ══════════════════════════════════════════
           MODAL DE AUTENTICACIÓN
        ══════════════════════════════════════════ */
        .auth-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(5, 15, 50, 0.55);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.25s ease;
        }
        .auth-backdrop.open {
            opacity: 1;
            pointer-events: all;
        }
        .auth-modal {
            background: white;
            border-radius: 28px;
            width: 100%;
            max-width: 440px;
            padding: 40px;
            box-shadow: 0 24px 80px rgba(0,15,60,0.22), 0 4px 20px rgba(0,0,0,0.08);
            position: relative;
            transform: translateY(20px) scale(0.97);
            transition: transform 0.28s cubic-bezier(0.16,1,0.3,1);
        }
        .auth-backdrop.open .auth-modal {
            transform: translateY(0) scale(1);
        }
        .auth-modal-close {
            position: absolute;
            top: 18px; right: 18px;
            width: 34px; height: 34px;
            border-radius: 50%;
            border: none;
            background: #f1f5ff;
            color: #64748b;
            font-size: 14px;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: background 0.15s;
        }
        .auth-modal-close:hover { background: #e0e8ff; color: var(--dark-blue); }

        .auth-logo {
            display: flex; align-items: center; gap: 8px;
            font-weight: 700; font-size: 18px; color: var(--dark-blue);
            margin-bottom: 24px;
        }
        .auth-logo i { color: var(--primary-blue); }

        /* Tabs */
        .auth-tabs {
            display: flex;
            background: #f1f5ff;
            border-radius: 14px;
            padding: 4px;
            margin-bottom: 28px;
            gap: 4px;
        }
        .auth-tab {
            flex: 1;
            padding: 10px;
            border: none;
            background: transparent;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            color: #64748b;
            cursor: pointer;
            transition: all 0.2s;
            font-family: 'Urbanist', sans-serif;
        }
        .auth-tab.active {
            background: white;
            color: var(--dark-blue);
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        /* Google button */
        .btn-google {
            width: 100%;
            display: flex; align-items: center; justify-content: center; gap: 10px;
            padding: 13px;
            border: 1.5px solid #e2e8f0;
            border-radius: 14px;
            background: white;
            font-size: 14px;
            font-weight: 600;
            color: var(--dark-blue);
            cursor: pointer;
            transition: all 0.2s;
            font-family: 'Urbanist', sans-serif;
            margin-bottom: 20px;
        }
        .btn-google:hover { border-color: #c7d2fe; background: #f8faff; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
        .btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }

        /* Divider */
        .auth-divider {
            display: flex; align-items: center; gap: 12px;
            margin-bottom: 20px;
            color: #94a3b8; font-size: 12px; font-weight: 500;
        }
        .auth-divider::before, .auth-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: #e2e8f0;
        }

        /* Form fields */
        .auth-field {
            margin-bottom: 14px;
        }
        .auth-field label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: var(--dark-blue);
            margin-bottom: 6px;
        }
        .auth-field input {
            width: 100%;
            padding: 13px 16px;
            border: 1.5px solid #e2e8f0;
            border-radius: 12px;
            font-size: 14px;
            font-family: 'Urbanist', sans-serif;
            color: var(--dark-blue);
            outline: none;
            transition: border 0.2s, box-shadow 0.2s;
            background: white;
        }
        .auth-field input:focus {
            border-color: var(--primary-blue);
            box-shadow: 0 0 0 3px rgba(0,102,255,0.10);
        }
        .auth-field input::placeholder { color: #94a3b8; }

        /* Forgot password */
        .auth-forgot {
            display: flex; justify-content: flex-end;
            margin-top: -8px; margin-bottom: 14px;
        }
        .auth-forgot a {
            font-size: 12px; color: var(--primary-blue);
            text-decoration: none; font-weight: 500;
        }
        .auth-forgot a:hover { text-decoration: underline; }

        /* Submit button */
        .btn-auth-submit {
            width: 100%;
            padding: 14px;
            background: var(--primary-blue);
            color: white;
            border: none;
            border-radius: 14px;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            font-family: 'Urbanist', sans-serif;
            box-shadow: 0 6px 20px rgba(0,102,255,0.28);
            transition: all 0.2s;
            margin-top: 4px;
        }
        .btn-auth-submit:hover { background: #0052d4; transform: translateY(-1px); }
        .btn-auth-submit:disabled { background: #94a3b8; box-shadow: none; transform: none; cursor: not-allowed; }

        /* Message/error */
        .auth-message {
            padding: 11px 14px;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 500;
            margin-bottom: 14px;
            display: none;
        }
        .auth-message.error { background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; display: block; }
        .auth-message.success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; display: block; }

        /* Panel visibility */
        .auth-panel { display: none; }
        .auth-panel.active { display: block; }

        /* Terms text */
        .auth-terms {
            text-align: center;
            font-size: 11px;
            color: #94a3b8;
            margin-top: 16px;
            line-height: 1.5;
        }
        .auth-terms a { color: var(--primary-blue); text-decoration: none; }
    
        /* ══════════════════════════════════════════
           RESPONSIVE MÓVIL — 768px y menor
        ══════════════════════════════════════════ */
        @media (max-width: 768px) {

            /* ══ VISTA MÓVIL TIPO NOLLA — pantalla completa de búsqueda ══ */
            #mobile-search-screen {
                display: block;
                position: fixed;
                inset: 0;
                z-index: 99998;
                overflow-y: auto;
                overflow-x: hidden;
                background: #050a28;
                -webkit-overflow-scrolling: touch;
            }
            #mobile-search-bg {
                position: absolute;
                inset: 0;
                width: 100%; height: 100%;
                object-fit: cover;
                z-index: -1;
            }
            .mobile-logo {
                position: absolute;
                top: 20px; left: 50%;
                transform: translateX(-50%);
                font-size: 22px; font-weight: 800;
                color: white;
                letter-spacing: -0.5px;
            }
            .mobile-logo span { color: rgba(255,255,255,0.7); font-weight: 400; }
            .mobile-search-title {
                font-size: 28px; font-weight: 800;
                color: white; line-height: 1.2;
                margin-bottom: 20px;
                text-shadow: 0 2px 12px rgba(0,0,0,0.3);
            }
            .mobile-search-box {
                background: white;
                border-radius: 18px;
                padding: 14px 16px;
                width: 100%;
                max-width: 400px;
                box-shadow: 0 8px 40px rgba(0,0,0,0.25);
                margin-bottom: 16px;
            }
            .mobile-search-box input {
                width: 100%; border: none; outline: none;
                font-size: 16px; font-family: 'Urbanist', sans-serif;
                color: #0A192F; background: transparent;
                padding: 4px 0 12px;
            }
            .mobile-search-box input::placeholder { color: #94a3b8; }
            .mobile-search-divider {
                height: 1px; background: #e8eeff; margin: 0 0 12px;
            }
            .mobile-search-actions {
                display: flex; align-items: center; justify-content: space-between;
            }
            .mobile-city-input {
                flex: 1; border: none; outline: none;
                font-size: 14px; font-family: 'Urbanist', sans-serif;
                color: #64748b; background: transparent;
            }
            .mobile-city-input::placeholder { color: #94a3b8; }
            .mobile-search-go {
                width: 36px; height: 36px;
                background: #0066FF; border: none; border-radius: 50%;
                color: white; font-size: 15px; cursor: pointer;
                display: flex; align-items: center; justify-content: center;
                flex-shrink: 0;
            }
            .mobile-quick-btns {
                display: flex; flex-direction: column;
                gap: 10px; width: 100%; max-width: 400px;
            }
            .mobile-quick-btn {
                background: rgba(255,255,255,0.18);
                backdrop-filter: blur(12px);
                -webkit-backdrop-filter: blur(12px);
                border: 1px solid rgba(255,255,255,0.35);
                border-radius: 50px;
                padding: 13px 20px;
                color: white; font-size: 14px; font-weight: 600;
                font-family: 'Urbanist', sans-serif;
                cursor: pointer;
                display: flex; align-items: center; gap: 10px;
                transition: background .2s;
            }
            .mobile-quick-btn:hover { background: rgba(255,255,255,0.28); }
            .mobile-hipaa {
                position: absolute; bottom: 18px;
                font-size: 11px; color: rgba(255,255,255,0.6);
                display: flex; align-items: center; gap: 5px;
            }

            /* Body y wrapper */
            body {
                padding: 0 !important;
                background: transparent !important;
                display: block !important;
                align-items: unset !important;
                justify-content: unset !important;
            }
            .landing-wrapper { display: none !important; }

            /* NAV */
            .top-nav { padding: 14px 20px; }
            .nav-glass-pill { display: none; }
            .header-actions { gap: 8px; }
            .icon-btn { width: 34px; height: 34px; }
            .btn-login { padding: 8px 14px; font-size: 12px; }
            .btn-appointment { padding: 8px 14px; font-size: 12px; }
            .logo svg { width: 110px; height: 32px; }

            /* HERO */
            .hero-section {
                padding: 40px 20px 60px;
                min-height: auto;
                background-position: right center;
                background-size: cover;
            }
            .hero-main { max-width: 100%; margin-top: 20px; }
            .hero-main h1 { font-size: 32px; line-height: 1.15; }
            .hero-main p { font-size: 14px; max-width: 100%; }
            .precision-badge { font-size: 11px; padding: 6px 12px; }

            /* Search bar en móvil — columna */
            .hero-search-bar {
                flex-direction: column;
                border-radius: 16px;
                max-width: 100%;
                overflow: hidden;
            }
            .hero-search-field { width: 100%; }
            .hero-search-field:first-child { border-right: none; border-bottom: 1px solid #e2e8f0; }
            .hero-search-input { border-radius: 0 !important; padding: 14px 14px 14px 40px; }
            .hero-search-btn {
                border-radius: 0 0 16px 16px;
                width: 100%;
                justify-content: center;
                padding: 14px;
            }

            .cta-row { gap: 16px; }
            .happy-patients { gap: 10px; }
            .avatar-group img { width: 28px; height: 28px; }

            /* Stats bar */
            .stats-glass-bar {
                flex-direction: column;
                gap: 12px;
                padding: 20px;
                border-radius: 16px;
            }
            .stat-divider { display: none; }

            /* Rotating text */
            .rotating-text-section { padding: 40px 20px; }
            .rotating-text-main { font-size: 28px; }
            .rotating-text-secondary { font-size: 14px; }

            /* Servicios */
            .services-section { padding: 50px 20px; }
            .services-header-split {
                grid-template-columns: 1fr;
                gap: 12px;
                margin-bottom: 28px;
            }
            .services-title-left h2 { font-size: 28px; }
            .services-text-right { max-width: 100%; }
            .cards-grid { grid-template-columns: 1fr; gap: 16px; }

            /* Video */
            .video-banner-section { padding: 0 20px 50px; }
            .video-box { border-radius: 16px; min-height: 220px; }
            .video-box-bg { border-radius: 16px; }
            .video-box-overlay { border-radius: 16px; }
            .video-box h3 { font-size: 20px; }

            /* Doctores */
            .doctors-section { padding: 50px 20px; }
            .doctors-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
            .section-hdr { flex-direction: column; align-items: flex-start; gap: 12px; }
            .section-hdr h2 { font-size: 26px; }

            /* Cita */
            .appt-wrap { padding: 0 20px 50px; }
            .appointment-banner { padding: 28px 20px; border-radius: 20px; }
            .appointment-banner h2 { font-size: 22px; }
            .appt-form-grid { grid-template-columns: 1fr; gap: 10px; }

            /* Testimonios */
            .testimonials-section { padding: 50px 20px; }
            .testimonials-grid { grid-template-columns: 1fr; gap: 14px; }

            /* CTA azul */
            .cta-wrap { padding: 0 20px 50px; }
            .cta-band { padding: 32px 24px; border-radius: 20px; }
            .cta-band h2 { font-size: 22px; }
            .cta-right { display: none; }
            .cta-badge-pill { margin-bottom: 16px; }

            /* Footer */
            footer { padding: 40px 20px 20px; }
            .footer-grid { grid-template-columns: 1fr; gap: 28px; }
            .footer-bottom { font-size: 11px; margin-top: 24px; }
            .f-email-row { flex-direction: column; gap: 8px; }
            .f-email-row input { border-radius: 8px !important; }
            .f-email-row button { border-radius: 8px !important; width: 100%; }
        }

        /* ══════════════════════════════════════════
           TABLET — landscape (769px–1366px)
           Se ve como desktop pero compacto
        ══════════════════════════════════════════ */
        @media (min-width: 769px) and (max-width: 1366px) {
            /* Layout general */
            body { padding: 16px; }

            /* Navbar */
            header { padding: 0 28px; }
            .logo { font-size: 20px; }
            .nav-links { gap: 18px; }
            .nav-links a { font-size: 13px; }
            .btn-paciente, .btn-professional { font-size: 13px; padding: 9px 16px; }

            /* Hero */
            .hero-section { padding: 60px 40px 60px; min-height: 560px; }
            .hero-main h1 { font-size: 36px; line-height: 1.15; }
            .hero-main p { font-size: 15px; }
            .hero-search-bar { gap: 8px; }
            .stats-glass-bar { gap: 16px; padding: 14px 20px; }

            /* Secciones */
            .services-section, .doctors-section, .testimonials-section,
            .appt-section { padding: 56px 36px; }
            .section-label { font-size: 11px; }
            .section-title { font-size: 30px; }

            /* Grids — tablet */
            .cards-grid          { grid-template-columns: repeat(3,1fr); gap: 16px; }
            .doctors-grid        { grid-template-columns: repeat(4,1fr); gap: 16px; }
            .testimonials-grid   { grid-template-columns: repeat(2,1fr); gap: 16px; }
            .footer-grid         { grid-template-columns: repeat(2,1fr); gap: 16px; }
            .appt-form-grid      { grid-template-columns: repeat(2,1fr); gap: 16px; }

            /* Grids de 1 columna en tablet (demasiado anchos) */
            .services-header-split,
            .cta-band            { grid-template-columns: 1fr; }

            /* Cards más compactas */
            .service-card, .doctor-card, .test-card { padding: 20px; }
            .doctor-card-img { height: 180px; }

            /* Footer */
            .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
        }

        /* ══════════════════════════════════════════
           PANTALLA ROTAR — tablet en portrait
           Pedir al usuario que rote el dispositivo
        ══════════════════════════════════════════ */
        #rotate-screen {
            display: none;
        }

        @media (min-width: 600px) and (max-width: 1100px) and (orientation: portrait) {
            .is-tablet #rotate-screen {
                display: flex;
                position: fixed;
                inset: 0;
                z-index: 999999;
                background: #050f2e;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 20px;
                color: white;
                font-family: 'Urbanist', sans-serif;
                text-align: center;
                padding: 40px;
            }
            .is-tablet #rotate-screen i {
                font-size: 56px;
                color: #4d8bff;
                animation: rotateHint 2s ease-in-out infinite;
            }
            .is-tablet #rotate-screen h2 {
                font-size: 22px;
                font-weight: 800;
                margin: 0;
            }
            .is-tablet #rotate-screen p {
                font-size: 14px;
                color: rgba(255,255,255,0.6);
                margin: 0;
            }
            @keyframes rotateHint {
                0%, 100% { transform: rotate(0deg); }
                40%       { transform: rotate(90deg); }
                60%       { transform: rotate(90deg); }
            }
        }

        /* ══════════════════════════════════════════
           ANDROID — optimizaciones de performance
           Solo aplica cuando JS agrega .is-android al <html>
           iOS y desktop no se tocan
        ══════════════════════════════════════════ */

        /* Desactivar canvas de fondo */
        .is-android #hex-canvas,
        .is-android #aurora-canvas,
        .is-android .bg-orb,
        .is-android .deco-sq { display: none !important; }

        /* Cursor custom — no aplica en táctil */
        .is-android #nx-cursor,
        .is-android #nx-cursor-ring { display: none !important; }
        .is-android * { cursor: auto !important; }

        /* Eliminar backdrop-filter (renderizado por software en muchos Android) */
        .is-android header {
            background: rgba(5, 15, 50, 0.97) !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
        }
        .is-android .stats-glass-bar {
            background: rgba(255,255,255,0.12) !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
        }
        .is-android .mobile-quick-btn {
            background: rgba(255,255,255,0.15) !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
        }
        .is-android .auth-backdrop {
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            background: rgba(5,15,50,0.92) !important;
        }

        /* Simplificar animaciones — reducir a lo esencial */
        .is-android .reveal {
            transition: opacity 0.4s ease, transform 0.4s ease !important;
        }
        .is-android * {
            /* Forzar aceleración GPU en elementos animados */
            -webkit-backface-visibility: hidden;
        }

        /* Desactivar animación de gradiente infinita (costosa) */
        .is-android .hero-section,
        .is-android .services-section,
        .is-android .doctors-section,
        .is-android .cta-band {
            animation: none !important;
        }



