/* CSS Variables */
:root {
    --primary-color: #4A90E2;     /* Azul confianza y profesionalismo */
    --secondary-color: #7ED321;   /* Verde calma y crecimiento */
    --accent-color: #F5A623;      /* Naranja cálido para CTAs */
    --text-dark: #2D3748;         /* Texto principal */
    --text-light: #718096;        /* Texto secundario */
    --background: #FEFEFE;        /* Fondo principal */
    --surface: #FFFFFF;           /* Superficies */
    --gradient-primary: linear-gradient(135deg, #4A90E2 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 1rem;
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
    overflow-x: hidden;
}

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ---- Estilos para el LOGO en el Header ---- */
.logo {
    /* Usamos flexbox para controlar la alineación de la imagen */
    display: flex;
    align-items: center;
    text-decoration: none; /* Quitamos el subrayado del enlace */
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05); /* Efecto de zoom suave al pasar el mouse */
}

/* Estilo específico para la IMAGEN del logo */
.logo img {
    /* ¡LA CLAVE DE LO RESPONSIVE! */
    /* Definimos una altura máxima para que nunca sea demasiado grande. */
    /* El ancho se ajustará automáticamente manteniendo la proporción. */
    max-height: 50px; 
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.cta-nav {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(70, 144, 226, 0.1) 0%, rgba(126, 211, 33, 0.05) 100%);
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(70, 144, 226, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
    padding-left: 10px;
}

/* ---- CÓDIGO CORREGIDO Y DEFINITIVO ---- */

/* Estilo para la insignia de cupos */
.hero-badge.cupos-emphasis {
    /* Colores de urgencia */
    background-color: rgba(245, 166, 35, 0.15);
    color: #B86600;
    
    /* Animación de pulso */
    animation: urgency-pulse 2s infinite ease-in-out;

    /* ---> AÑADE ESTA LÍNEA PARA CREAR SEPARACIÓN <--- */
    margin-right: 12px; 

}

/* Animación de pulso (no necesita cambios) */
@keyframes urgency-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 rgba(245, 166, 35, 0);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
        box-shadow: 0 3px 10px rgba(245, 166, 35, 0.3);
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(70, 144, 226, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* TÍTULOS CORREGIDOS SEGÚN TU SOLICITUD */
.hero-main-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-secondary-title {
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
}

/* Google Reviews Section */
.google-reviews {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(126, 211, 33, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.1);
    animation: fadeInUp 0.6s ease-out;
}

.reviews-stars {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.star {
    color: #ffc107;
    font-size: 1.1rem;
}

.reviews-avatars {
    display: flex;
    margin: 0 0.5rem;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--surface);
    margin-left: -6px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.avatar:first-child {
    margin-left: 0;
}

.avatar:hover {
    transform: scale(1.15);
    z-index: 2;
    position: relative;
}

.reviews-text {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
}

.reviews-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.reviews-link:hover {
    color: var(--accent-color);
}

.google-icon {
    color: #4285f4;
    margin-right: 0.25rem;
    font-size: 0.9rem;
}


/* ======= SECCIÓN FORMACIÓN ACADÉMICA ======= */
.academic-section {
    padding: 4rem 1.5rem;
    background-color: #f9fafb; /* Fondo gris muy claro */
}

.academic-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.academic-section .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.academic-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.academic-list li {
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-size: 1rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.academic-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.academic-list .icon {
    font-size: 1.5rem;
    margin-right: 12px;
    color: var(--secondary-color);
}

/* ✅ En pantallas grandes, dos columnas */
@media (min-width: 992px) {
    .academic-list {
        grid-template-columns: 1fr 1fr;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .google-reviews {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.25rem 0.75rem; /* Aumentado */
    }

    .reviews-text {
        font-size: 0.9rem; /* Aumentado de 0.8rem */
    }

    .reviews-stars {
        order: 1;
    }

    .reviews-avatars {
        order: 2;
        margin: 0;
        justify-content: center;
    }

    .reviews-link-container {
        order: 3;
    }

    .avatar {
        width: 32px; /* Aumentado de 26px */
        height: 32px;
        margin-left: -5px;
    }

    .star {
        font-size: 1.1rem; /* Aumentado de 1rem */
    }
}

@media (max-width: 480px) {
    .google-reviews {
        padding: 1rem 0.75rem; /* Aumentado */
        gap: 0.75rem; /* Aumentado */
    }

    .reviews-text {
        font-size: 0.85rem; /* Aumentado de 0.75rem */
    }

    .star {
        font-size: 1rem; /* Aumentado de 0.9rem */
    }

    .avatar {
        width: 28px; /* Aumentado de 24px */
        height: 28px;
        margin-left: -4px;
    }

    .google-icon {
        font-size: 0.85rem; /* Aumentado de 0.8rem */
    }
}


.cta-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.cta-secondary {
    background: transparent;
    color: var(--text-dark);
    padding: 1rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    animation: slideInRight 1s ease-out;
}

.hero-card {
    background: var(--surface);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: var(--shadow-heavy);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.doctor-info {
    text-align: center;
}

.doctor-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%; /* Esto crea el círculo */
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-medium);
    overflow: hidden; /* ¡MUY IMPORTANTE! Recorta la imagen para que encaje en el círculo */
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.doctor-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.doctor-title {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.credentials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.credential {
    background: rgba(70, 144, 226, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Trust Indicators */
.trust-section {
    padding: 4rem 2rem;
    background: var(--surface);
}

.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

/* ==================== Video Section (CÓDIGO CORREGIDO) ==================== */
.video-section {
    padding: 6rem 2rem;
    background: var(--background);
}

.video-container {
    max-width: 1000px;
    margin: 0 auto;
}

.video-wrapper {
    margin-top: 3rem;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

/* 1. Contenedor principal que mantiene la proporción 16:9 */
.video-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Crea el alto basado en el ancho (16:9) */
    height: 0;           /* La altura real la da el padding */
    cursor: pointer;
    background: #2D3748; /* Fondo oscuro que se ve si la imagen no carga */
}

/* 2. El contenedor de la miniatura que se superpone */
.video-placeholder {
    /* ESTA ES LA REGLA CLAVE: se posiciona sobre el padding del padre */
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Configura la imagen de fondo */
    background-size: cover;
    background-position: center;

    /* Centra el contenido (botón y texto) */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    transition: transform 0.3s ease;
}

/* 3. Velo oscuro semi-transparente sobre la foto */
.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(45, 55, 72, 0.4); /* 40% de opacidad */
    z-index: 1; 
}

/* 4. Asegura que el botón y texto estén sobre el velo */
.play-button, .video-overlay {
    position: relative;
    z-index: 2;
}

/* Efecto de zoom al pasar el mouse */
.video-player:hover .video-placeholder {
    transform: scale(1.03);
}

/* 5. Estilo del botón de reproducir */
.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: button-pulse 2.2s infinite ease-in-out;
}

/* 6. Estilo para el texto superpuesto */
.video-overlay {
    text-align: center;
    color: white;
}

.video-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.video-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* 7. Estilo para el iframe de YouTube una vez cargado */
.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Services Section */
.services {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.05) 0%, rgba(70, 144, 226, 0.05) 100%);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: rgba(126, 211, 33, 0.1);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--surface);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.service-features li::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: bold;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 2rem;
    background: var(--surface);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--background);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.testimonial-stars {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.author-info h4 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* =======================================================
   Estilos para Videos de TikTok Incrustados
   ======================================================= */
.tiktok-section {
    padding: 4rem 2rem;
    background: var(--background);
}

.tiktok-container {
    max-width: 900px;
    margin: 0 auto;
}

.tiktok-grid {
    display: flex;
    justify-content: center; /* Centra el video horizontalmente */
    align-items: center;
    margin-top: 3rem;
}

.tiktok-embed-wrapper .tiktok-embed {
    /* El código de TikTok ya es responsive, solo nos aseguramos de que no tenga márgenes extraños */
    margin: 0 auto !important; 
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}




/* ---- CÓDIGO CSS DEFINITIVO Y CORREGIDO PARA EL FORMULARIO ---- */

/* CTA Section with Modern Form */
.cta-section {
    padding: 6rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-form-wrapper {
    background: var(--surface);
    border-radius: 2rem;
    padding: 3rem; /* Padding principal para el contenedor del formulario */
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
}

.cta-form {
    color: var(--text-dark);
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem; /* Aumentamos el espacio inferior */
}

.form-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.form-row {
    display: grid;
    /* Divide la fila en dos columnas iguales */
    grid-template-columns: 1fr 1fr; 
    /* Espacio entre las columnas */
    gap: 1.5rem; 
    /* Espacio debajo de cada fila */
    margin-bottom: 1rem; 
}

.form-group {
    /* El margen inferior ahora va en la fila, no en el grupo */
    text-align: left;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem; /* Aumentamos espacio entre etiqueta y campo */
    font-weight: 600;
    color: var(--text-dark);
}

.form-label i {
    color: var(--primary-color);
}

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #E2E8F0;
    border-radius: 0.75rem;
    background: #F7FAFC; /* Fondo ligeramente gris para los campos */
    color: var(--text-dark);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease-in-out;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.form-input::placeholder {
    color: #A0AEC0;
}

.form-submit {
    background: var(--gradient-primary);
    color: white;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem; /* Espacio generoso sobre el botón */
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.form-footer p {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-footer i {
    color: var(--secondary-color);
}


/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.6;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-2px);
    background: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Performance optimizations */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* ---- Estilos para la Página de Agradecimiento ---- */

.thank-you-section {
    /* Empuja el contenido hacia abajo para que no quede detrás del header fijo */
    padding-top: 150px; 
    padding-bottom: 6rem;
    min-height: 80vh; /* Se asegura que el footer no quede muy arriba en pantallas grandes */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f8f9fa; /* Un fondo muy sutil para diferenciar */
}

.thank-you-container {
    background: white;
    padding: 3rem 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    max-width: 700px;
}

/* ---- Estilo para campos de solo lectura en el formulario ---- */
.form-input[readonly] {
    background-color: #e9ecef; /* Un gris claro para indicar que no es editable */
    cursor: not-allowed;
}

/* ---- Estilos para la Página "Acerca de Mí" ---- */

.about-content-section {
    padding: 6rem 2rem;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
}

.about-text-block {
    margin-bottom: 4rem;
}

.about-text-block .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.credentials-list {
    list-style: none;
    padding-left: 0;
}

.credentials-list li {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.credentials-list i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1.5rem;
    width: 30px; /* Ancho fijo para alineación */
    text-align: center;
}

.cta-section-short {
    padding: 4rem 2rem;
    background: var(--background);
    text-align: center;
}

/* ==========================================================================
   Estilos para el Menú Hamburguesa y Navegación Móvil
   ========================================================================== */

/* 1. Icono de la Hamburguesa */
.hamburger-menu {
    display: none; /* Oculto por defecto en escritorio */
    font-size: 1.8rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s ease;
}
.hamburger-menu:hover {
    color: var(--primary-color);
}

/* 2. Panel del Menú Móvil (inicialmente oculto fuera de la pantalla) */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%; /* Empieza oculto a la derecha */
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--surface);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Animación suave */
    display: flex;
    flex-direction: column;
}

/* Estado activo cuando se muestra el menú */
.mobile-nav.active {
    right: 0;
}

/* 3. Header dentro del panel móvil */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}
.logo-mobile img {
    max-height: 40px;
}
.close-icon {
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: pointer;
}

/* 4. Lista de enlaces en el menú móvil */
.mobile-nav-links {
    list-style: none;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.mobile-nav-links li a {
    display: block;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}
.mobile-nav-links li a:hover {
    background-color: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
}

/* Estilo especial para el botón "Agendar Cita" */
.cta-mobile {
    background: var(--gradient-primary);
    color: white !important; /* !important para asegurar que sobreescriba */
    text-align: center;
}
.cta-mobile:hover {
    background: var(--gradient-primary);
    color: white !important;
    transform: scale(1.03);
}

/* ==========================================================================
   Estilos para la Sección de Metodología (Línea de Tiempo)
   ========================================================================== */

.methodology-section {
    padding: 6rem 2rem;
    /* Usamos un fondo muy sutil para alternar y dar ritmo a la página */
    background: linear-gradient(135deg, rgba(70, 144, 226, 0.02) 0%, rgba(126, 211, 33, 0.02) 100%);
}

.methodology-container {
    max-width: 900px; /* Un ancho óptimo para leer texto */
    margin: 0 auto;
}

.timeline {
    position: relative;
    margin-top: 4rem;
    padding: 1rem 0;
}

/* La línea vertical central de la línea de tiempo */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28px; /* Posiciona la línea a la izquierda */
    height: 100%;
    width: 4px;
    background-color: #e2e8f0; /* Un gris claro suave */
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem; /* Espacio entre cada paso */
}

/* El último item no necesita tanto margen inferior */
.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary); /* Usa el gradiente principal */
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border: 4px solid var(--surface); /* Borde blanco para separarlo de la línea */
    box-shadow: var(--shadow-light);
}

.timeline-content {
    padding-left: 90px; /* Deja espacio para el ícono */
    padding-top: 15px; /* Alinea verticalmente con el centro del ícono */
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
}


        /* ==================== GALERÍA CORREGIDA ==================== */
        .gallery-section {
            padding: 6rem 2rem;
            background: var(--surface);
            position: relative;
        }

        .gallery-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(74, 144, 226, 0.03) 0%, rgba(126, 211, 33, 0.03) 100%);
            pointer-events: none;
        }

        .gallery-container {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 1.5rem;
            margin-top: 3rem;
        }

        .gallery-item {
            opacity: 1; /* Cambiado de 0 a 1 para que se muestre inmediatamente */
            transform: translateY(0); /* Cambiado para que no haya desplazamiento inicial */
            transition: all 0.6s ease;
        }

        .gallery-card {
            position: relative;
            aspect-ratio: 4/3;
            border-radius: 1.5rem;
            overflow: hidden;
            box-shadow: var(--shadow-light);
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            cursor: pointer;
            background: #f8f9fa; /* Fondo de respaldo mientras carga la imagen */
        }

        .gallery-card:hover {
            transform: translateY(-10px) scale(1.03);
            box-shadow: var(--shadow-heavy);
        }

        .gallery-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
            display: block; /* Asegura que la imagen se muestre como bloque */
        }

        .gallery-card:hover img {
            transform: scale(1.1);
        }

        /* Overlay */
        .gallery-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(45, 55, 72, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
        }

        .gallery-card:hover .gallery-overlay {
            opacity: 1;
        }

        .expand-btn {
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.6);
            border-radius: 50%;
            color: white;
            width: 60px;
            height: 60px;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .expand-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            border-color: white;
            transform: scale(1.1);
        }

        /* ==================== MODAL CORREGIDO ==================== */
        .image-modal {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(10px);
        }

        .modal-content {
            position: relative;
            margin: 2% auto;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 90%;
            height: 90%;
        }

        .modal-close {
            position: absolute;
            top: -60px;
            right: 0;
            color: white;
            font-size: 3rem;
            font-weight: 300;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10001;
            opacity: 0.8;
        }

        .modal-close:hover {
            opacity: 1;
            transform: scale(1.1);
            color: var(--primary-color);
        }

        #modalImage {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            border-radius: 1rem;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            transition: opacity 0.3s ease;
        }

        .modal-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 100%;
            display: flex;
            justify-content: space-between;
            padding: 0 2rem;
            pointer-events: none;
        }

        .nav-btn {
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            color: white;
            width: 60px;
            height: 60px;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            pointer-events: all;
            backdrop-filter: blur(20px);
            opacity: 0.8;
        }

        .nav-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.6);
            opacity: 1;
            transform: scale(1.1);
        }

        /* ==================== RESPONSIVE ==================== */
        @media (max-width: 768px) {
            .gallery-section {
                padding: 4rem 1rem;
            }
            
            .gallery-grid {
                grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
                gap: 1rem;
                margin-top: 2rem;
            }
            
            .gallery-card {
                aspect-ratio: 1/1;
            }
            
            .expand-btn {
                width: 50px;
                height: 50px;
                font-size: 1.2rem;
            }
            
            .modal-nav {
                padding: 0 1rem;
            }
            
            .nav-btn {
                width: 50px;
                height: 50px;
                font-size: 1.2rem;
            }
            
            .modal-close {
                font-size: 2.5rem;
                top: -50px;
            }

            .section-title {
                font-size: 2rem;
            }
        }

        @media (max-width: 480px) {
            .gallery-grid {
                grid-template-columns: 1fr;
            }
            
            .modal-close {
                font-size: 2rem;
                top: 20px;
                right: 20px;
            }
            
            .modal-content {
                width: 95%;
                height: 85%;
                margin: 5% auto;
            }
        }

        /* Estilos para imágenes de demostración */
        .demo-image {
            background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
            font-size: 1.2rem;
            font-weight: 600;
        }


/* ==========================================================================
   Responsive Design - Unificado y Completo
   ========================================================================== */

/* ---- TABLETS Y MÓVILES GRANDES (Hasta 768px) ---- */
@media (max-width: 768px) {
    /* Estilos generales */
    .nav-menu {
        display: none;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem; /* Aumentamos el espacio en móvil */
    }
    .hero-main-title { font-size: 2.5rem; }
    .hero-secondary-title { font-size: 1.5rem; }
    .section-title { font-size: 2.2rem; }
    .cta-title { font-size: 2.2rem; }
    .hero-cta-group {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .trust-stats { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 1rem;
    }
    .doctor-avatar { width: 140px; height: 140px; font-size: 3.5rem; }
    .limited-spots-badge { font-size: 0.8rem; padding: 0.6rem 1.2rem; }

    /* Logo en el Header */
    .logo img {
        max-height: 40px;
    }

    /* Video Section */
    .video-player { 
        /* Usamos aspect-ratio para un responsive más moderno */
        aspect-ratio: 1 / 1;
        height: auto;
        padding-top: 0;
    }
    .play-button { width: 70px; height: 70px; font-size: 1.8rem; }
    .video-overlay h3 { font-size: 1.5rem; }

    /* Formulario */
    .cta-form-wrapper {
        padding: 2.5rem 1.5rem; /* Ajustamos padding */
    }
    .form-row {
        grid-template-columns: 1fr; 
        gap: 0;
        margin-bottom: 0;
    }
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    /* Página de Gracias */
    .thank-you-container {
        padding: 2.5rem 1.5rem;
    }

    /* ---- NUEVO: Estilos Responsivos para "Acerca de Mí" ---- */
    .about-content-section {
        padding: 4rem 1.5rem;
    }
    .about-text-block .section-title {
        text-align: center; /* Centramos el título en móvil */
    }
    .credentials-list li {
        font-size: 1rem; /* Reducimos un poco la fuente */
        align-items: flex-start; /* Mejor alineación si el texto ocupa varias líneas */
    }
    .credentials-list i {
        margin-right: 1rem;
    }

    .nav-menu, .cta-nav {
    display: none; /* Oculta el menú de escritorio y el botón */
     }

     .hamburger-menu {
    display: block; /* Muestra el icono de hamburguesa */
     }
     
     
    .timeline-title {
        font-size: 1.3rem;
    }
    .timeline::before {
        left: 23px;
    }
    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    .timeline-content {
        padding-left: 75px;
        padding-top: 10px;
    }
     
}

/* ---- MÓVILES PEQUEÑOS (Hasta 480px) ---- */
@media (max-width: 480px) {
    /* Ajustes generales */
    .hero {
        padding: 7rem 1.5rem 3rem;
    }
    .hero-main-title { font-size: 2rem; }
    .hero-secondary-title { font-size: 1.3rem; }
    .section-title { font-size: 1.8rem; }
    .cta-title { font-size: 1.8rem; }
    
    .trust-stats {
        grid-template-columns: 1fr; /* Una columna para estadísticas */
    }

    .services,
    .testimonials,
    .cta-section,
    .about-content-section {
        padding: 4rem 1rem; /* Reducimos el padding lateral */
    }
    
    /* Formulario en móviles pequeños */
    .cta-form-wrapper {
        padding: 2rem 1rem;
    }
    .form-header h3 {
        font-size: 1.5rem;
    }

    /* Ficha de la Doctora */
    .doctor-avatar {
        width: 120px;
        height: 120px;
    }
    .doctor-name {
        font-size: 1.3rem;
    }
    
    .methodology-section {
        padding: 4rem 1rem;
    }
    .timeline::before {
        left: 20px;
    }
     .timeline-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
     .timeline-content {
        padding-left: 65px;
        padding-top: 5px;
    }
    
    
}


