/* ==========================================================================
   SISTEMA DE DISEÑO & GENERALES
   ========================================================================== */
:root {
    /* Paleta de Colores (HSL y Hex) */
    --primary: #1e3a8a;             /* Azul Médico Profundo */
    --primary-light: #2563eb;       /* Azul Enérgico */
    --primary-dark: #172554;        /* Azul Noche */
    --primary-rgb: 30, 58, 138;
    
    --secondary: #0d9488;           /* Teal / Turquesa */
    --secondary-light: #14b8a6;     /* Teal Brillante */
    --secondary-dark: #115e59;      /* Teal Oscuro */
    
    --accent: #38bdf8;              /* Celeste de Acento */
    --accent-light: #e0f2fe;        /* Celeste Fondo */
    
    /* Colores de Fondo */
    --bg-light: #f8fafc;            /* Gris Pálido Azulado */
    --bg-white: #ffffff;
    --bg-dark: #0f172a;             /* Slate 900 */
    --bg-dark-card: #1e293b;        /* Slate 800 */
    
    /* Colores de Texto */
    --text-dark: #0f172a;           /* Texto Principal Oscuro */
    --text-medium: #334155;         /* Texto Secundario (Slate 700) */
    --text-muted: #64748b;          /* Texto Pálido (Slate 500) */
    --text-light: #f8fafc;          /* Texto Blanco/Pálido */
    
    /* Bordes y Sombras */
    --border: rgba(226, 232, 240, 0.8); /* Slate 200 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -5px rgba(30, 41, 59, 0.08), 0 8px 10px -6px rgba(30, 41, 59, 0.05);
    --shadow-premium: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
    
    /* Bordes Redondeados */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* Tipografía */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reseteo y Estilos Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset para el navbar fijo */
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-medium);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.25;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Contenedores */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   BOTONES Y COMPONENTES REUTILIZABLES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--primary-light);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--border);
    color: var(--text-dark);
    box-shadow: none;
}

.btn-secondary:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    background-color: rgba(37, 99, 235, 0.03);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--bg-white);
    color: var(--primary);
}

.btn-light:hover {
    background-color: var(--accent-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    transition: var(--transition);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px auto;
}

.section-title {
    font-size: 2.25rem;
    color: var(--text-dark);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title.text-left {
    text-align: left;
    display: block;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.section-subtitle.text-white-muted {
    color: rgba(248, 250, 252, 0.8);
}

/* ==========================================================================
   CABECERA & NAVBAR (Efecto Glassmorphism)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header.scrolled {
    height: 70px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: -2px;
}

.nav {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-medium);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-light);
    transition: var(--transition);
}

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

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

/* Menú hamburguesa */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Navegación móvil colapsable */
.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    z-index: 999;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-lg);
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

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

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    padding: 8px 0;
}

.mobile-nav-link:hover {
    color: var(--primary-light);
}

/* ==========================================================================
   SECCIÓN HERO (Con fotos enmarcada y fondos animados)
   ========================================================================== */
.hero {
    position: relative;
    padding: 160px 0 100px 0;
    background: radial-gradient(circle at 10% 20%, rgba(224, 242, 254, 0.4) 0%, rgba(255, 255, 255, 1) 90%);
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, rgba(56, 189, 248, 0.05) 50%, rgba(255, 255, 255, 0) 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-light);
    color: var(--primary-light);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(14, 165, 233, 0.15);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary-light);
    border-radius: 50%;
    display: inline-block;
    animation: pulseGlow 2s infinite;
}

.hero-title {
    font-size: 3.25rem;
    color: var(--text-dark);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-medium);
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    gap: 32px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.trust-icon {
    width: 20px;
    height: 20px;
    color: var(--secondary);
}

/* Enmarcado premium de la Foto de la Doctora (Hero) */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    max-width: 380px;
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 8px solid var(--bg-white);
    background-color: var(--bg-white);
    transition: var(--transition-smooth);
    animation: floatAnimation 6s ease-in-out infinite;
}

.hero-image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -10px rgba(15, 23, 42, 0.25);
}

.hero-image {
    width: 100%;
    height: 460px;
    object-fit: cover;
    object-position: 50% 15%; /* Muestra perfectamente su rostro y la bata */
    display: block;
}

.hero-image-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--secondary-dark);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ==========================================================================
   SECCIÓN VENTAJAS (Advantages)
   ========================================================================== */
.advantagessection {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.advantage-card {
    background-color: var(--bg-white);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: var(--transition-smooth);
}

.advantage-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.15);
}

.advantage-icon-wrapper {
    width: 56px;
    height: 56px;
    background-color: rgba(37, 99, 235, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    margin-bottom: 24px;
    transition: var(--transition);
}

.advantage-card:hover .advantage-icon-wrapper {
    background-color: var(--primary-light);
    color: var(--bg-white);
    transform: scale(1.05);
}

.advantage-icon {
    width: 28px;
    height: 28px;
}

.advantage-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.advantage-card p {
    font-size: 0.95rem;
    color: var(--text-medium);
}

/* ==========================================================================
   SECCIÓN ESPECIALIDADES (Areas de Atención)
   ========================================================================== */
.specialties-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.specialty-card {
    background-color: var(--bg-white);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.specialty-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 148, 136, 0.2);
}

.specialty-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.specialty-icon-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(13, 148, 136, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    flex-shrink: 0;
    transition: var(--transition);
}

.specialty-icon-container svg {
    width: 24px;
    height: 24px;
}

.specialty-card:hover .specialty-icon-container {
    background-color: var(--secondary);
    color: var(--bg-white);
}

.specialty-card h3 {
    font-size: 1.35rem;
    color: var(--text-dark);
}

.specialty-text {
    font-size: 0.95rem;
    color: var(--text-medium);
}

/* ==========================================================================
   SECCIÓN SOBRE MÍ (Perfil y Trayectoria)
   ========================================================================== */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.about-container {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
    align-items: center;
}

.about-visual {
    display: flex;
    justify-content: center;
}

/* Enmarcado premium de la Foto de la Doctora (Sobre Mí) */
.about-image-container {
    position: relative;
    max-width: 380px;
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 6px solid var(--bg-white);
    background-color: var(--bg-white);
    transition: var(--transition-smooth);
}

.about-image-container:hover {
    transform: scale(1.02);
}

.about-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center 30%; /* Encuadra perfectamente su rostro en el plano medio */
    display: block;
}

.about-experience-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--bg-white);
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    width: 120px;
}

.badge-years {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 2px;
}

.badge-text {
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-paragraph {
    font-size: 1.05rem;
    color: var(--text-medium);
    margin-bottom: 24px;
}

.resume-highlights {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 36px;
    border-top: 1px solid var(--border);
    padding-top: 36px;
}

.resume-item {
    display: flex;
    gap: 16px;
}

.resume-icon {
    font-size: 1.5rem;
    line-height: 1;
    background-color: var(--bg-white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.resume-item h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.resume-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   SECCIÓN CÓMO FUNCIONA (Steps Flow)
   ========================================================================== */
.how-it-works {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e293b 100%);
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    top: 50%;
    left: -10%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

.how-it-works .container {
    position: relative;
    z-index: 2;
}

.steps-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 56px;
    position: relative;
}

.step-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 28px 32px 28px;
    border-radius: var(--radius-lg);
    position: relative;
    transition: var(--transition-smooth);
}

.step-card:hover {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -24px;
    left: 28px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--bg-white);
}

.step-card p {
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.75);
}

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

/* ==========================================================================
   SECCIÓN DETALLES DE LA CONSULTA (Consulta Section)
   ========================================================================== */
.consulta-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.consulta-detail-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 56px;
    box-shadow: var(--shadow-lg);
    max-width: 960px;
    margin: 0 auto;
}

.consulta-detail-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.consulta-features-col h3 {
    font-size: 1.6rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.modalidad-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modalidad-features li {
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-medium);
}

.check-icon {
    width: 20px;
    height: 20px;
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.consulta-payment-col {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.consulta-price-box {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.price-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.price-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.85rem;
    color: var(--primary);
    display: block;
    margin-bottom: 10px;
}

.price-description {
    font-size: 0.85rem;
    color: var(--text-medium);
    line-height: 1.5;
}

.payment-methods {
    margin-bottom: 28px;
}

.payment-methods h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.payment-methods p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   SECCIÓN PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */
.faq-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.faq-container {
    max-width: 800px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--bg-light);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(37, 99, 235, 0.15);
    background-color: rgba(37, 99, 235, 0.01);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    text-align: left;
    cursor: pointer;
    gap: 16px;
}

.faq-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 28px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-medium);
    padding-bottom: 24px;
    line-height: 1.6;
}

/* Estado Activo FAQ */
.faq-item.active {
    background-color: var(--bg-white);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary-light);
}

/* ==========================================================================
   SECCIÓN LLAMADO A LA ACCIÓN FINAL (CTA Final)
   ========================================================================== */
.cta-final {
    padding: 100px 0;
    position: relative;
    background-color: var(--primary-dark);
    color: var(--bg-white);
    overflow: hidden;
    text-align: center;
}

.cta-final-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, rgba(37, 99, 235, 0.05) 60%, rgba(15, 23, 42, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.cta-final-container {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.cta-final h2 {
    font-size: 2.5rem;
    color: var(--bg-white);
    margin-bottom: 20px;
}

.cta-final p {
    font-size: 1.1rem;
    color: rgba(248, 250, 252, 0.85);
    margin-bottom: 40px;
}

.cta-final-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   PIE DE PÁGINA (Footer)
   ========================================================================== */
.footer {
    background-color: var(--bg-dark);
    color: rgba(248, 250, 252, 0.7);
    padding: 80px 0 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}

.footer-info h3 {
    color: var(--bg-white);
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.footer-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 12px;
}

.footer-mp {
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.5);
    margin-bottom: 4px;
}

.footer-address {
    font-size: 0.9rem;
}

.footer-links h4,
.footer-social h4 {
    color: var(--bg-white);
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
}

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

.social-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.social-link:hover {
    color: var(--accent);
}

.social-icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.5);
}

.medical-disclaimer {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ==========================================================================
   ANIMACIONES Y OBSERVADORES DE SCROLL
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Revelar con Scroll (Clases añadidas por JS) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

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

@keyframes pulseGlow {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(13, 148, 136, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0);
    }
}

/* ==========================================================================
   RESPONSIVIDAD Y MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 56px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-trust {
        width: 100%;
        justify-content: center;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-visual {
        order: 2;
    }
    
    .consulta-detail-card {
        padding: 40px;
    }
    
    .consulta-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .hero {
        padding: 120px 0 80px 0;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    /* Menú Móvil */
    .nav {
        display: none;
    }
    
    .header-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .consulta-detail-card {
        padding: 24px;
    }
    
    .consulta-payment-col {
        padding: 24px;
    }
}
