/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Paleta de Colores Principal */
    --primary: #105ea6;         /* Azul Real */
    --primary-dark: #0b457f;    /* Azul Oscuro (Hover/Footer) */
    --secondary: #2eb8cb;       /* Turquesa */
    --accent: #42d2e3;          /* Ciano Brillante */
    
    /* Colores Neutros */
    --text-main: #1e293b;       /* Gris Oscuro (Texto Principal) */
    --text-body: #64748b;       /* Gris Medio (Párrafos) */
    --bg-body: #f1f5f9;         /* Fondo General muy suave */
    --white: #ffffff;
    
    /* Sombras y Efectos */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(16, 94, 166, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(16, 94, 166, 0.15);
    --shadow-glow: 0 0 20px rgba(46, 184, 203, 0.3);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --blur-strength: 12px;
    
    /* Layout */
    --container-width: 1200px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden; /* Prevenir scroll horizontal accidental */
}

/* =========================================
   2. FONDOS ANIMADOS (BLOBS)
   ========================================= */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: floatBlob 15s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #a5f3fc 0%, transparent 70%);
    animation-duration: 20s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* =========================================
   3. UTILIDADES LAYOUT
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-spacing {
    padding: 100px 0;
}

.text-center { text-align: center; }

/* =========================================
   4. NAVBAR PREMIUM
   ========================================= */
.navbar-glass {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border-bottom: 1px solid rgba(255,255,255,0.6);
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0,0,0,0.02);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-symbol {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    display: flex;
    flex-direction: column;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Links */
.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s;
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-login {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.btn-login:hover { color: var(--secondary); }

.btn-cta-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(16, 94, 166, 0.25);
    transition: all 0.3s ease;
}

.btn-cta-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 94, 166, 0.35);
}

/* =========================================
   4B. HAMBURGER BUTTON (MOBILE)
   ========================================= */
.hamburger-btn {
    display: none; /* Oculto en desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: background 0.3s ease;
    z-index: 1100;
    position: relative;
}

.hamburger-btn:hover {
    background: rgba(16, 94, 166, 0.06);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hamburger animación a X cuando está abierto */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* =========================================
   4C. MOBILE MENU OVERLAY
   ========================================= */
.mobile-menu {
    display: none; /* Oculto en desktop */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    padding: 100px 32px 40px;
    gap: 6px;
    max-width: 400px;
    margin: 0 auto;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.15rem;
    font-weight: 500;
    padding: 16px 20px;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(16, 94, 166, 0.06), transparent);
    transition: width 0.4s ease;
    border-radius: 16px;
}

.mobile-nav-link:hover::before,
.mobile-nav-link.active::before {
    width: 100%;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary);
    transform: translateX(4px);
}

.mobile-nav-link i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--secondary);
    position: relative;
    z-index: 1;
}

.mobile-nav-link span,
.mobile-nav-link {
    position: relative;
    z-index: 1;
}

.mobile-menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 94, 166, 0.12), transparent);
    margin: 12px 20px;
}

.login-link {
    color: var(--text-body) !important;
}

.login-link i {
    color: var(--primary) !important;
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 18px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    margin-top: 16px;
    box-shadow: 0 10px 25px rgba(16, 94, 166, 0.3);
    transition: all 0.3s ease;
    text-align: center;
}

.mobile-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(16, 94, 166, 0.4);
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero-section {
    padding: 80px 0 60px;
    display: flex;
    align-items: center;
    min-height: 85vh; /* Ocupa buena parte de la pantalla */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

/* Badge Status */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    border: 1px solid rgba(16, 94, 166, 0.1);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Typography */
.hero-title {
    font-size: 3.8rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-main);
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-body);
    margin-bottom: 40px;
    max-width: 90%;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn-primary-lg {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 10px 25px rgba(16, 94, 166, 0.3);
    transition: transform 0.3s;
}

.btn-primary-lg:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(16, 94, 166, 0.4);
}

.btn-secondary-lg {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: var(--primary);
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.btn-secondary-lg:hover {
    background: #f8fafc;
    color: var(--secondary);
    transform: translateY(-2px);
}

/* Hero Visual (Glass Card Showcase) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card-showcase {
    position: relative;
    width: 380px;
    padding: 50px 30px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.circle-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(66, 210, 227, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.doctor-icon-wrapper {
    width: 120px;
    height: 120px;
    background: transparent;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.doctor-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.card-floating-info h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.card-floating-info p {
    color: var(--text-body);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.online-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    color: #059669;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Elementos Flotantes Decorativos */
.floater-item {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    animation: floatUpDown 5s infinite ease-in-out;
}

.item-1 { top: 20px; right: -20px; animation-delay: 0s; }
.item-2 { bottom: 40px; left: -30px; animation-delay: 2.5s; color: var(--primary); }

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* =========================================
   6. SERVICES SECTION (UNIFIED TABS)
   ========================================= */
.title-lg {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    color: var(--text-body);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* Card Unificada */
.services-unified-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-md);
    max-width: 950px;
    margin: 0 auto;
}

.unified-backdrop-icon {
    position: absolute;
    top: -30px;
    right: -40px;
    font-size: 14rem;
    color: var(--primary);
    opacity: 0.03;
    transform: rotate(15deg);
    pointer-events: none;
    transition: 0.5s;
}

.services-unified-card:hover .unified-backdrop-icon {
    opacity: 0.06;
    transform: rotate(0deg) scale(1.05);
}

/* Tabs de navegación */
.services-tabs {
    display: flex;
    position: relative;
    border-bottom: 2px solid #f1f5f9;
}

.service-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-body);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-tab:hover {
    color: var(--primary);
    background: rgba(16, 94, 166, 0.03);
}

.service-tab.active {
    color: var(--primary);
}

.service-tab i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.service-tab.active i {
    transform: scale(1.15);
}

/* Indicador animado debajo del tab activo */
.tab-indicator {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px 3px 0 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.tab-indicator.pos-1 {
    transform: translateX(100%);
}

/* Contenidos de los tabs */
.services-tab-contents {
    position: relative;
    min-height: 340px;
}

.tab-content {
    display: none;
    padding: 40px;
    animation: fadeTabIn 0.45s ease forwards;
}

.tab-content.active {
    display: block;
}

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

/* Grid dentro del tab */
.tab-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

/* Info principal (columna izquierda) */
.tab-content-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 700;
    width: fit-content;
    align-self: center;
}

.premium-badge {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    animation: neonPulse 2s ease-in-out infinite;
}

.premium-badge i {
    color: #f59e0b;
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(245, 158, 11, 0.3), 0 0 16px rgba(245, 158, 11, 0.15);
    }
    50% {
        box-shadow: 0 0 16px rgba(245, 158, 11, 0.6), 0 0 32px rgba(245, 158, 11, 0.3), 0 0 48px rgba(245, 158, 11, 0.1);
    }
}

.free-badge {
    background: linear-gradient(135deg, #ccfbf1, #a7f3d0);
    color: #065f46;
}

.free-badge i {
    color: #10b981;
}

.tab-content-info h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.3;
}

.tab-content-info p {
    color: var(--text-body);
    font-size: 0.98rem;
    line-height: 1.7;
}

.tab-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(16, 94, 166, 0.25);
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: 8px;
}

.tab-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(16, 94, 166, 0.35);
}

.tab-cta-free {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    box-shadow: 0 8px 20px rgba(46, 184, 203, 0.25);
}

.tab-cta-free:hover {
    box-shadow: 0 12px 25px rgba(46, 184, 203, 0.35);
}

/* Features (columna derecha) */
.tab-content-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-item:hover {
    background: white;
    border-color: rgba(16, 94, 166, 0.08);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.color-blue { background: #e0f2fe; color: var(--primary); }
.color-cyan { background: #ccfbf1; color: var(--secondary); }

.feature-text h4 {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 2px;
}

.feature-text p {
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.4;
}

/* =========================================
   7. PROCESS SECTION (PHONE)
   ========================================= */
.process-layout {
    display: flex;
    align-items: center;
    gap: 80px;
}

.phone-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    perspective: 1000px;
}

.phone-device {
    width: 300px;
    height: 600px;
    background: #1e293b;
    border-radius: 45px;
    border: 5px solid #334155;
    position: relative;
    box-shadow: 0 40px 80px rgba(0,0,0,0.2);
    z-index: 2;
    transform: rotateY(-10deg); /* Ligera perspectiva */
    transition: transform 0.5s;
}

.phone-device:hover { transform: rotateY(0deg); }

.phone-notch {
    width: 140px;
    height: 28px;
    background: #1e293b;
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.phone-screen-content {
    background: white;
    width: 100%;
    height: 100%;
    border-radius: 38px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(to bottom, #eff6ff, #ffffff);
}

/* Slides internos del teléfono */
.app-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.app-slide.active {
    opacity: 1;
    transform: translateY(0);
}

.app-icon {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(16, 94, 166, 0.1);
    margin-bottom: 20px;
}

.steps-wrapper {
    flex: 1;
}

.subtitle-left {
    font-size: 1.1rem;
    color: var(--text-body);
    margin-bottom: 40px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.step-card:hover {
    background: rgba(255,255,255,0.8);
    transform: translateX(10px);
}

.step-card.active {
    background: white;
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #e2e8f0;
    line-height: 1;
}

.step-card.active .step-number {
    color: var(--secondary);
}

.step-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.step-info p {
    font-size: 0.95rem;
    color: var(--text-body);
}

/* =========================================
   8. FAQ SECTION
   ========================================= */
.faq-grid {
    max-width: 800px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s;
}

.faq-item:hover { box-shadow: var(--shadow-md); }

.faq-item summary {
    padding: 24px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary i {
    transition: transform 0.3s;
    color: var(--primary);
}

.faq-item[open] summary i {
    transform: rotate(180deg);
    color: var(--secondary);
}

.faq-content {
    padding: 0 24px 24px;
    color: var(--text-body);
    font-size: 1rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.faq-unified-card {
    max-width: 950px;
    margin: 50px auto 0;
}

.faq-unified-card .faq-grid {
    max-width: none;
    margin: 0;
    gap: 0;
}

.faq-unified-card .faq-item {
    border-radius: 0;
    border: none;
    box-shadow: none;
    border-bottom: 1px solid #f1f5f9;
}

.faq-unified-card .faq-item:last-child {
    border-bottom: none;
}

.faq-unified-card .faq-item summary {
    padding: 22px 26px;
}

.faq-unified-card .faq-content {
    padding: 0 26px 22px;
}

.faq-tabs {
    border-bottom: 2px solid #eef2f7;
}

@media (max-width: 900px) {
    .faq-unified-card .faq-item summary {
        padding: 20px 22px;
    }
}

/* =========================================
   9. CLIENTS LOGOS
   ========================================= */
.clients-section {
    background: white;
    opacity: 0.9;
}

.clients-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    font-size: 2.8rem;
    color: #cbd5e1;
}

.logos-container i {
    transition: all 0.3s;
    cursor: default;
}

.logos-container i:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* =========================================
   10. FOOTER CORPORATIVO (DARK)
   ========================================= */
.main-footer {
    background-color: var(--primary-dark);
    color: white;
    padding-top: 80px;
    margin-top: 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-col {
    padding-right: 40px;
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: block;
}

.footer-brand span {
    font-weight: 400;
    color: var(--secondary);
}

.footer-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: white;
    font-weight: 600;
}

.footer-links, .contact-list {
    list-style: none;
}

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.contact-list li i {
    color: var(--secondary);
    margin-top: 4px;
}

.footer-bottom {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #64748b;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover { color: white; }

/* =========================================
   10B. MOBILE STEP NAV (oculto en desktop)
   ========================================= */
.mobile-step-nav {
    display: none;
}

/* =========================================
   11. ANIMACIONES DE ENTRADA
   ========================================= */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-200 { animation-delay: 0.2s; }

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

/* =========================================
   12. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================= */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        margin-top: 50px;
    }

    .hero-buttons {
        justify-content: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .brand-col { padding-right: 0; grid-column: span 2; }
}

@media (max-width: 768px) {
    /* --- NAVBAR MOBILE --- */
    .nav-links, .nav-actions {
        display: none !important; /* Ocultar nav desktop */
    }
    
    .hamburger-btn {
        display: flex; /* Mostrar hamburguesa */
    }

    .mobile-menu {
        display: block; /* Habilitar menú mobile */
    }

    .nav-wrapper {
        justify-content: space-between; /* Logo izquierda, hamburguesa derecha */
    }

    /* --- HERO MOBILE --- */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .glass-card-showcase {
        width: 300px;
        padding: 35px 20px;
    }

    .doctor-icon-wrapper {
        width: 90px;
        height: 90px;
    }

    /* --- SERVICES MOBILE (TABS) --- */
    .services-unified-card {
        border-radius: 20px;
    }

    .service-tab {
        padding: 16px 12px;
        font-size: 0.92rem;
        gap: 8px;
    }

    .tab-content {
        padding: 24px 20px;
    }

    .tab-content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tab-content-info h3 {
        font-size: 1.35rem;
    }

    .feature-item {
        padding: 14px 16px;
    }

    .feature-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    /* --- PROCESS SECTION MOBILE: Solo paso activo --- */
    .process-layout {
        flex-direction: column;
        gap: 40px;
    }
    
    .phone-wrapper {
        justify-content: center;
        order: 1;
    }

    .phone-device {
        width: 240px;
        height: 480px;
        transform: rotateY(0deg);
        border-radius: 36px;
    }

    .phone-screen-content {
        border-radius: 30px;
    }

    .phone-notch {
        width: 110px;
        height: 22px;
    }

    .steps-wrapper {
        order: 2;
        text-align: center;
    }

    .steps-wrapper .title-lg {
        font-size: 2rem;
    }

    .subtitle-left {
        text-align: center;
    }

    /* En mobile: ocultar pasos inactivos, solo mostrar el activo */
    .steps-list {
        position: relative;
        gap: 0;
    }

    .step-card {
        display: none; /* Ocultar todos */
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding: 20px;
        background: white;
        border-radius: 20px;
        border: 2px solid var(--accent);
        box-shadow: var(--shadow-md);
        animation: fadeStepIn 0.4s ease forwards;
    }

    .step-card.active {
        display: flex; /* Solo mostrar el activo */
    }

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

    .step-card .step-number {
        font-size: 2rem;
        color: var(--secondary);
    }

    .step-card .step-info h3 {
        font-size: 1.05rem;
    }

    .step-card .step-info p {
        font-size: 0.9rem;
    }

    /* Navegación de pasos con dots/flechas en mobile */
    .mobile-step-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        margin-top: 20px;
    }

    .mobile-step-arrow {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid var(--primary);
        background: white;
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-step-arrow:hover {
        background: var(--primary);
        color: white;
    }

    .mobile-step-dots {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .mobile-step-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #e2e8f0;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .mobile-step-dot.active {
        background: var(--secondary);
        width: 28px;
        border-radius: 10px;
    }

    /* --- SECTION SPACING MOBILE --- */
    .section-spacing {
        padding: 60px 0;
    }

    .title-lg {
        font-size: 2rem;
    }

    /* --- FOOTER MOBILE --- */
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .brand-col { grid-column: span 1; }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn-primary-lg, .btn-secondary-lg {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .glass-card-showcase {
        width: 260px;
        padding: 30px 16px;
    }

    .floater-item {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        border-radius: 14px;
    }

    .item-1 { top: 10px; right: -10px; }
    .item-2 { bottom: 20px; left: -15px; }

    .logos-container {
        gap: 30px;
        font-size: 2rem;
    }

    .mobile-menu-content {
        padding: 90px 24px 40px;
    }

    .phone-device {
        width: 200px;
        height: 400px;
        border-radius: 30px;
    }

    .phone-screen-content {
        border-radius: 24px;
    }

    .app-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}