 /* 1. CONFIGURACIÓN GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Crucial para eliminar bordes blancos laterales */
    width: 100%;
    background-color: #fafafa;
}

section {
    width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    position: relative;
}

/* 2. NAVEGACIÓN */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-weight: 800;
    color: #a274c4;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #a274c4;
}

.btn-nav {
    background-color: #a274c4;
    color: white !important;
    padding: 10px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(162, 116, 196, 0.3);
}

/* 3. SECCIÓN HERO */
.hero-split {
    background-color: #f0edf5; 
    padding: 60px 0 0 0; /* Quitamos el 8% lateral */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 85vh;
    width: 100%;
}

.hero-container {
    display: grid;
    /* Reducimos un poco el ancho del texto para centrarlo más y el badge */
    grid-template-columns: 1fr 1fr; /* Mismo espacio para las dos columnas */
    gap: 0; /* Quitamos el gap para que el centrado sea perfecto */
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    align-items: center; /* Centrado vertical de imagen y texto */
    position: relative;
    box-sizing: border-box;
}

.text-lila {
    color: #a274c4;
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 15px;
    font-weight: 800;
}

.hero-text-col {
    padding-right: 20px;
}

.text-subtitle {
    color: #666;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 600px; 
}

.hero-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.experience-badge-minimal {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px 30px;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.exp-number {
    font-size: 3rem;
    font-weight: 800;
    color: #a274c4;
}

.exp-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #777;
    text-transform: uppercase;
    line-height: 1.2;
}

.hero-image-col {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.hero-doctor-img {
    max-width: 115%;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.1));
}

/* 4. BANNER DE URGENCIA */
.banner-urgencia {
    background-color: white;
    padding: 50px 8%;
    border-bottom: 1px solid #f0f0f0;
}


.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

/* 5. SERVICIOS (DISEÑO ARCO OPTIMIZADO) */
.services {
    padding: 120px 0; /* Quitamos el 5% lateral */
    background-color: #f8f6fb;
    width: 100%;
}

.services-header {
    text-align: center;
    margin-bottom: 100px;
}

.services-header h2 {
    font-size: 2.8rem;
    color: #a274c4;
    font-weight: 800;
    margin-bottom: 15px;
}
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 120px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%; 
    margin-bottom: 80px !important;
}
.service-arc-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
}

.service-arc-item.reverse {
    flex-direction: row-reverse;
}

.service-arc-text {
    flex: 1;
    max-width: 500px;
}

.service-arc-text h3 {
    font-size: 2.5rem;
    color: #a274c4;
    margin-bottom: 25px;
    font-weight: 700;
}

.service-arc-text p {
    color: #555;
    line-height: 1.9;
    font-size: 1.2rem;
}

.service-arc-img {
    flex: 1;
    display: flex;
    justify-content: center;
}

.service-arc-img img {
    width: 100%;
    max-width: 480px; 
    height: auto; 
    aspect-ratio: 480 / 420; /* Mantiene la proporción sin forzar píxeles */
    object-fit: cover;
    border-radius: 250px 0 0 250px;
    box-shadow: 0 25px 50px rgba(162, 116, 196, 0.12);
    transition: all 0.5s ease;
}

.service-arc-item:hover .service-arc-img img {
    transform: scale(1.03);
}

.service-arc-item.reverse .service-arc-img img {
    border-radius: 0 250px 250px 0;
}

/* 6. TESTIMONIOS (CORREGIDO) */
.testimonios {
    width: 100%;
    margin: 0;
    /* Forzamos el padding lateral a 0 para que la imagen toque los bordes */
    padding: 100px 0 !important; 
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('img/fondo_opiniones.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Evita que cualquier elemento interno cree scroll horizontal */
    overflow: hidden; 
}

.testimonios-header {
    text-align: center;
    margin-bottom: 80px;
}

.testimonios-header h2.titulo-parallax {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 800;
}

.subtitulo-parallax {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
}

.testimonios-contenedor {
    display: flex;
    flex-direction: row; /* Asegura que sea una fila */
    flex-wrap: nowrap;   /* PROHIBIDO que se bajen a la siguiente fila */
    gap: 20px;           /* Reducimos un poco el espacio para que entren */
    justify-content: center;
    max-width: 1250px;
    margin: 0 auto;
    overflow: visible;   /* Para que no se corte la sombra */
}

.testimonio-card {
    background: white;
    padding: 30px 20px; /* Un poco menos de padding lateral */
    border-radius: 24px;
    flex: 1 1 0;        /* Esto permite que las 3 tarjetas tengan el mismo ancho y se achiquen si es necesario */
    max-width: 400px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    min-width: 250px;   /* Tamaño mínimo antes de que se vea mal */
}

.testimonio-card:hover {
    transform: translateY(-10px);
}

.testimonio-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.testimonio-avatar img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #a274c4;
}

.testimonio-info h4 {
    color: #222;
    font-size: 1.2rem;
    font-weight: 700;
}

.testimonio-fecha {
    font-size: 0.9rem;
    color: #999;
}

.testimonio-texto {
    color: #444;
    line-height: 1.7;
    font-style: italic;
    font-size: 1.05rem;
}

/* 7. SECCIÓN FINAL */
.final-section {
    background-color: #a274c4;
    padding: 100px 8% 40px 8%;
    color: white;
}

.final-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 60px;
    max-width: 1300px;
    margin: 0 auto;
}

.final-col h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
}

/* En tu CSS general o al final */
.final-info, .final-section a {
    color: white !important;
    text-decoration: none !important;
}

/* Específicamente para Safari/iPhone que son los más tercos */
a[href^="tel"] {
    color: inherit !important;
    text-decoration: none !important;
}
.mapa-contenedor-small iframe {
    display: block; /* Esto quita el espacio extra inferior */
    width: 100%;
    height: 100%;
    border-radius: 15px; /* Ajusta para que coincida con el borde del recuadro */
}

/* Ajuste para el contenedor blanco que rodea al mapa */
.mapa-contenedor-small {
    line-height: 0; /* Refuerzo extra para eliminar espacios de línea */
    font-size: 0;
    overflow: hidden;
    /* Asegúrate de que no tenga un padding-bottom activo */
    padding-bottom: 0 !important; 
}

/* En móvil, podemos achicar un poco la altura para que no desplace tanto el footer */
@media (max-width: 768px) {
    .mapa-contenedor-small {
        height: 200px;
        margin-top: 10px;
    }
}
.final-rights {
    text-align: center;
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.95rem;
    opacity: 0.7;
}

.final-social a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    transition: opacity 0.3s;
}

.final-social a:hover {
    opacity: 0.8;
}

.final-social i {
    font-size: 1.5rem; /* Tamaño del icono */
}

/* RESPONSIVO */
/* --- RESPONSIVO MEJORADO --- */

/* 1. TABLETS Y LAPTOPS PEQUEÑAS */
@media (max-width: 1024px) {
    .hero-container { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    .hero-image-col { justify-content: center; margin-top: 30px; }
    .hero-doctor-img { max-width: 80%; }
    .text-lila { font-size: 3rem; }
    
    .service-arc-item, .service-arc-item.reverse {
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
        gap: 30px;
        text-align: left;
    }

    .service-arc-item.reverse {
        flex-direction: row-reverse;
    }

    .service-arc-text, .service-arc-img {
        flex: 1;
        width: 48%;
    }

    .final-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .final-social a { justify-content: center; }
}

/* 2. CELULARES (iPhone, Android, etc.) */
@media (max-width: 768px) {
    section {
        padding: 40px 3%; 
    }

    .nav-links {
        display: none; 
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .text-lila {
        font-size: 1.9rem !important; /* Un tamaño imponente pero que no rompa la pantalla */
        margin-bottom: 10px !important;
        text-align: center; /* Centramos para que se vea más ordenado en móvil */
    }
    .hero-text-col p, .text-subtitle {
        font-size: 0.85rem !important; /* Achicamos la tipografía */
        line-height: 1.5 !important;
        text-align: center;
        max-width: 90%;
        margin: 0 auto 25px auto; /* Centramos el bloque de texto */
        color: #555 !important; /* Un gris un poco más suave para que el nombre resalte más */
    }
    
    /* Centramos también el badge de experiencia para que combine */
    .hero-badges {
        justify-content: center !important;
    }

/* Descripción del inicio (Hero Subtitle) */
.text-subtitle {
    font-size: 1rem !important; /* Estaba en 1.25rem, lo bajamos para móvil */
    line-height: 1.4 !important;
    margin-bottom: 20px !important;
}

/* Banner de molestia o dolor */
.banner-urgencia h2 {
    font-size: 1.1rem !important; /* Ajuste para que entre en una o dos líneas */
    margin-bottom: 15px !important;
}
.experience-badge-minimal {
        padding: 8px 20px !important; /* Menos relleno */
        gap: 10px !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
    }

    /* Achicamos el número (+10) */
    .exp-number {
        font-size: 1.8rem !important; /* Estaba en 3rem */
    }

    /* Achicamos el texto de "años de experiencia" */
    .exp-text {
        font-size: 0.65rem !important; /* Estaba en 0.85rem */
        letter-spacing: 0;
    }

    /* Servicios: Foto y Texto lado a lado */
    .service-arc-item, .service-arc-item.reverse {
        flex-direction: row !important; 
        justify-content: space-between;
        gap: 10px;
    }

    .service-arc-item.reverse {
        flex-direction: row-reverse !important;
    }

    .service-arc-text { flex: 1.3; text-align: left; }
    .service-arc-img { flex: 0.7; }

    .service-arc-text h3 { font-size: 1.1rem; margin-bottom: 5px; }
    .service-arc-text p { font-size: 0.8rem; line-height: 1.2; }

    .service-arc-img img {
    width: 100% !important;
    height: auto !important;
    border-radius: 150px 0 0 150px !important; 
}

/* Para los que son "reverse", el arco debe ser hacia el otro lado */
.service-arc-item.reverse .service-arc-img img {
    border-radius: 0 150px 150px 0 !important;
}

    /* --- TESTIMONIOS: 3 EN FILA (MÓVIL) --- */
.testimonios {
    /* Fondo con imagen y overlay oscuro para que resalte el texto */
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('img/fondo_opiniones.png') !important;
    background-size: cover !important;
    background-attachment: scroll !important; /* Mejor rendimiento en celular */
    padding: 40px 2% !important;
}

.testimonios-header h2.titulo-parallax {
    font-size: 1.6rem !important; /* Título más pequeño */
    color: #ffffff !important;
}

    .testimonio-avatar img {
        width: 35px !important;
        height: 35px !important;
    }

    .testimonios-contenedor {
        display: flex !important;
        flex-direction: column !important; /* Apilado vertical */
        gap: 20px !important; /* Espacio entre tarjetas */
        padding: 0 15px !important; /* Aire a los costados */
        overflow: visible !important;
    }

    .testimonio-card {
        width: 100% !important; /* Ocupa todo el ancho disponible */
        max-width: 100% !important;
        flex: none !important;
        padding: 20px !important; /* Más aire interno para que respire */
    }

    .testimonio-top {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 15px !important;
        margin-bottom: 15px !important;
    }

    .testimonio-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .testimonio-info h4 {
        font-size: 1rem !important; /* Tamaño de nombre normal para móvil */
        margin: 0 !important;
        color: #333 !important;
    }

    .testimonio-fecha {
        display: block !important;
        font-size: 0.75rem !important; /* Fecha pequeña pero legible */
        color: #888 !important;
        margin-top: 2px !important;
    }

    .testimonio-avatar img {
        width: 50px !important; /* Tamaño de foto equilibrado */
        height: 50px !important;
    }

    .testimonio-texto {
        font-size: 0.95rem !important; /* Texto del comentario fácil de leer */
        line-height: 1.5 !important;
        text-align: left !important;
        font-style: italic;
    }
    /* Quita cualquier borde o decoración que se haya colado */
.testimonio-info h4, .testimonio-fecha {
    text-decoration: none !important;
    border-bottom: none !important;
}


}
