/*
 * Archivo: style.css (Versión Completa y Corregida - Base de Onda Ajustada)
 * Fecha de referencia: 27 de Noviembre
 */

/* =================================================
 * === 1. VARIABLES Y BASE ===
 * ================================================= */
:root {
    --primary-color: #0367A6; /* Azul corporativo */
    --secondary-color: #022873; /* Azul oscuro para énfasis/CTA */
    --accent-color: #5CC8F2; /* Azul claro/acento */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --padding-section: 80px 0;
    --gap-size: 30px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.2);
    --header-height: 100px; /* Altura estándar del header */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    scroll-behavior: smooth;
    /* Dejamos comentado el padding-top para que el header fijo con ondas cubra la parte superior sin mover el contenido, 
       pero se puede descomentar si el contenido inicial queda cubierto */
    /* padding-top: var(--header-height); */ 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: var(--padding-section);
}

.bg-light {
    background-color: var(--light-bg);
}

h1, h2, h3 {
    margin-bottom: 0.5em;
    color: var(--secondary-color);
    font-weight: 700;
}

h2 {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 40px;
}

.lead-text {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
}

/* Layout Helpers */
.grid-layout-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-size);
}
.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.4s ease;
    text-transform: uppercase;
    font-size: 0.95em;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}
.btn-secondary:hover {
    background-color: #011f59;
}

/* =================================================
 * === 2. HEADER Y NAVEGACIÓN (Corregido Z-Index) ===
 * ================================================= */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; 
    height: var(--header-height);
    
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 30%); 
    color: var(--white);
    
    box-shadow: var(--shadow);
    transition: top 0.3s ease-in-out;
    overflow: hidden; 
}

.main-header.hidden {
    top: calc(var(--header-height) * -1.25);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    height: var(--header-height);
    
    position: relative;
    z-index: 2; 
}

.logo-img {
    max-height: 100px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-nav li a {
    text-decoration: none;
    color: var(--secondary-color); 
    padding: 15px 20px;
    font-size: 0.9em;
    font-weight: 600; 
    transition: color 0.3s;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4); 
}

.main-nav li a:hover {
    color: var(--accent-color); 
}

.contact-button-desktop {
    flex-shrink: 0;
    padding: 10px 25px;
    margin-left: 20px;
    color: var(--white) !important;
    border-color: var(--white) !important;
    background-color: var(--secondary-color);
}
.contact-button-desktop:hover {
    background: var(--accent-color) !important;
    color: var(--white) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    color: var(--white); 
    cursor: pointer;
}

/* ============================
    WAVES INFINITAS EN HEADER (Base Ajustada)
    ============================ */

.header-waves {
    position: absolute;
    /* ✅ AJUSTE DE BASE DE ONDA: Mueve el contenedor hacia abajo */
    bottom: -60px; 
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1; 
    height: 130px; /* Incrementamos la altura del contenedor si la movemos mucho */
}

.waves {
    display: block;
    width: 200%;
    height: 140px;
    animation: moveWaves 10s linear infinite;
}

.wave-group use {
    animation: waveShift 20s linear infinite;
    fill: rgba(0, 195, 255, 0.523); 
}

.wave-group.slow use {
    animation-duration: 10s;
}

.wave-group.slower use {
    animation-duration: 50s;
}

@keyframes moveWaves {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes waveShift {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-1200px); }
}

/* Estilos de la versión que usaba URL (Ajustados también) */
.wave {
    position: absolute;
    width: 200%;
    height: 140px;
    left: 0;
    background-repeat: repeat-x;
    /* ✅ AJUSTE DE BASE DE ONDA: Mueve las ondas individuales hacia abajo */
    bottom: -70px; 
    opacity: 0.30;
    animation: waveMove 14s linear infinite;
    z-index: 1; 
}

/* =================================================
 * === 3. HERO Y CONTACT BAR ===
 * ================================================= */
.hero-section {
    /* Añadimos un pequeño margen superior para compensar el header fijo */
    padding-top: var(--header-height); 
    position: relative;
    height: 550px;
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(197, 213, 218, 0.511);
}

.hero-content {
    position: relative;
    color: var(--secondary-color);
    z-index: 10;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 0.2em;
    color: var(--primary-color);
}

.hero-content strong {
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.4em;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Contact Bar */
.contact-bar {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 15px 0;
    font-size: 1em;
    font-weight: 600;
}

.contact-bar .contact-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.contact-bar i {
    margin-right: 8px;
    color: var(--secondary-color);
}

/* =================================================
 * === 4. SOBRE NOSOTROS, STATS, VALORES ===
 * ================================================= */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--gap-size);
    align-items: center;
}
.about-image img {
    width: 100%;
    height: auto;
    border-radius: 0px;
    box-shadow: var();
}
.mv-card {
    padding: 20px;
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    background-color: var(--light-bg);
}
.mv-card h4 {
    color: var(--primary-color);
}
.mv-card i {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* =================================================
 * ===  STATS SECTION (NUEVA VERSIÓN MEJORADA)  ===
 * ================================================= */

.stats-section {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
}

.stat-item {
    padding: 20px;
    transition: 0.3s ease;
}

.stat-item:hover {
    transform: translateY(0px);
}

.icon-stat {
    font-size: 3.2em;
    color: var(--accent-color);
    margin-bottom: 15px;
    text-shadow: none !important; /* 🔵 Quita luminosidad */
    filter: none !important;      /* 🔵 Asegura que no haya brillos */
}

.stat-item .number {
    font-size: 3.3em;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item p {
    margin-top: 5px;
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--white);
}

/* Responsive */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .icon-stat {
        font-size: 2.8em;
    }
    .stat-item .number {
        font-size: 2.8em;
    }
}

/* Valores Section */
.values-section h2 {
    color: var(--primary-color);
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-size);
}
.value-item {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background-color: var(--white);
    box-shadow: var(--shadow);
    transition: all 0.3s;
}
.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.value-item i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.value-item h4 {
    color: var(--secondary-color);
    font-size: 1.2em;
}

/* =================================================
 * === 5. SERVICIOS Y CTA ===
 * ================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--gap-size);
    margin-top: 30px;
}
.service-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}
.service-item:hover {
    box-shadow: var(--shadow);
    border-bottom: 4px solid var(--primary-color);
}
.service-item i {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.service-item h3 {
    font-size: 1.4em;
    color: var(--secondary-color);
}

/* CTA Secundario */
.cta-secondary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta-secondary h2 {
    color: var(--white);
    margin-bottom: 10px;
}

.cta-secondary p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1em;
}

/* =================================================
 * === 6. TESTIMONIOS Y ALIADOS ===
 * ================================================= */

.testimonials-section {
    text-align: center;
    
}

/* Slider */
.slider-container {
    overflow: hidden;
    position: relative;
    min-height: 280px;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    padding: 20px;
}

.testimonial-slide.active {
    display: block;
    opacity: 1;
}

.testimonial-slide p {
    font-style: italic;
    font-size: 1.1em;
    line-height: 1.8;
    max-width: 650px;
    margin: 20px auto;
}

.author-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    box-shadow: var(--shadow);
}

.author-info .author {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1em;
    margin-top: 10px;
}

.author-info .title {
    display: block;
    font-size: 0.9em;
    color: var(#777);
}

/* Trusted By (Aliados) */
.trusted-by-section {
    padding: 40px 0;
    overflow: hidden;
    text-align: center;
}

.trusted-by-section h3 p {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-color);
}

.section-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(3, 103, 166, 0.4),
        transparent
    );
    margin: 60px 0;
}


.logo-scroll-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 20px 0;
}

.logo-band {
    display: inline-block;
    animation: marquee 30s linear infinite;
    padding-right: 30px;
}

.logo-band img {
    max-width: 120px;
    height: auto;
    margin: 0 40px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.logo-band img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* =================================================
 * === 7. HORARIOS Y UBICACIONES (Optimizado para Fondo Curvo) ===
 * ================================================= */

/* --- Estilos para la SECCIÓN HORARIOS con el efecto de fondo --- */

#horarios {
    /* 1. Fondo principal de la sección */
    background: linear-gradient(180deg, 
                rgba(92, 200, 242, 0.05) 0%, /* Azul claro 5% */
                var(--white) 100%); 
    padding: 60px 0; 
    
    /* 2. Propiedades CRÍTICAS para el efecto de ondas/líneas */
    position: relative; 
    overflow: hidden; 

    /* Damos espacio a los lados para que las "líneas" se vean */
    padding-left: 50px; 
    padding-right: 50px; 
    
    border-top: 1px solid rgba(3, 103, 166, 0.1); 
    border-bottom: 1px solid rgba(3, 103, 166, 0.1);
    text-align: center;
}

/* Asegura que el contenedor principal y su contenido estén por encima del fondo curvo */
#horarios .container {
    position: relative;
    z-index: 2; /* Mayor que el z-index: 1 del ::before */
}

/* Pseudo-elemento para crear las formas curvas detrás del contenido */
#horarios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1; /* Detrás del contenido */
    
    /* Crea dos degradados radiales (círculos/nubes) sutiles */
    background: radial-gradient(circle at 10% 50%, rgba(92, 200, 242, 0.1) 0%, transparent 40%), 
                radial-gradient(circle at 90% 50%, rgba(3, 103, 166, 0.1) 0%, transparent 40%);
    
    /* Escala verticalmente para estirar las formas y que parezcan ondas */
    transform: scaleY(1.5); 
    opacity: 0.5; 
}

/* --- Estilos de la TARJETA hours-card (Corregidos para Z-index) --- */

.hours-card {
    /* *** CORRECCIÓN CRÍTICA: Asegura que la tarjeta esté encima del fondo curvo *** */
    position: relative; 
    z-index: 3; 

    background: var(--white);
    color: var(--secondary-color);
    padding: 40px;
    border-radius: 12px;
    max-width: 650px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* EFECTO HOVER: Eleva ligeramente la tarjeta */
.hours-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.hours-card h3 {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 30px;
}

.hours-card h3 i {
    margin-right: 15px;
    color: var(--primary-color); 
}

.hours-grid-modern {
    margin-top: 20px;
    font-size: 1.1em;
}

.hours-grid-modern div {
    display: flex;
    justify-content: space-between;
    padding: 10px 0; 
    border-bottom: 1px solid var(--light-bg); 
    font-weight: 500;
}

/* Resaltamos el día o el nombre del elemento para distinguirlo del horario */
.hours-grid-modern span:first-child {
    color: var(--text-color);
}
/* Resaltamos la hora usando el acento o primario */
.hours-grid-modern span:last-child {
    color: var(--primary-color);
}

.hours-grid-modern div:last-child {
    border-bottom: none;
}

/* --- Ubicaciones --- */
.locations-section {
    padding-top: 50px; 
}

.locations-section h2 {
    color: var(--secondary-color);
    margin-bottom: 40px;
    font-weight: 700;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--gap-size);
    margin-top: 30px;
}

.location-item {
    border-left: 5px solid var(--primary-color);
    padding: 20px 0 20px 20px;
    background-color: var(--white);
    box-shadow: var(--shadow); 
    border-radius: 8px; 
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* EFECTO HOVER en Ubicaciones: Muestra que es interactivo */
.location-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px); 
}

.location-item h4 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.location-map-link {
    display: block;
    margin-top: 15px;
    color: var(--primary-color); 
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.location-map-link:hover {
    color: var(--accent-color); 
}

.location-map-link i {
    margin-right: 8px;
}
/* =================================================
 * === 8. CONTACTO (FORMULARIO Y MAPA) ===
 * ================================================= */

.contact-map-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: flex-start;
}

.contact-info h2 {
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.privacy-checkbox {
    font-size: 0.9em;
    color: #555;
    display: flex;
    align-items: center;
}

.privacy-checkbox input[type="checkbox"] {
    margin-right: 10px;
}

.btn-form {
    padding: 15px;
    margin-top: 10px;
}

.map-container iframe {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* =================================================
 * === 9. FOOTER Y BOTONES FLOTANTES ===
 * ================================================= */

.main-footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 40px 0 10px;
    font-size: 0.9em;
}

.main-footer h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.main-footer a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}
.main-footer a:hover {
    color: var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col p i {
    margin-right: 10px;
    color: var(--accent-color);
}

.social-links a {
    font-size: 1.5em;
    margin-right: 20px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 0.8em;
}

/* Botones Flotantes */
.whatsapp-btn, .back-to-top-btn {
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.8em;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 9999;
}

.whatsapp-btn {
    position: fixed;
    right: 25px;
    bottom: 25px;
    background-color: #25D366; 
}

.whatsapp-btn:hover {
    background-color: #1DA851;
    transform: scale(1.05);
}

.floating-buttons {
    position: fixed;
    bottom: 25px;
    left: 25px; 
    z-index: 9998;
}

.back-to-top-btn {
    background-color: var(--primary-color);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    font-size: 1.2em;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =================================================
 * === 10. MEDIA QUERIES (RESPONSIVE) ===
 * ================================================= */

@media (max-width: 992px) {
    /* Ajuste para que el hero no se solape con el menú móvil desplegado */
    body {
        padding-top: 0; 
    }
    .hero-section {
        padding-top: 50px; /* Reducimos el padding en móvil */
    }
    
    .main-header.hidden {
        top: -100px;
    }

    .nav-content {
        padding: 15px;
        height: auto;
    }
    /* Navegación Móvil */
    .main-nav {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: var(--shadow);
        border-top: 1px solid #eee;
        z-index: 1001; /* Aseguramos que el menú desplegado esté sobre el header */
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    .main-nav li a {
        padding: 12px 15px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--light-bg);
        /* Restauramos el color de texto para el menú desplegado en fondo blanco */
        color: var(--text-color) !important; 
        text-shadow: none; 
    }
    .main-nav li a:hover {
         color: var(--primary-color) !important;
    }
    .contact-button-desktop {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    
    /* Hero Section Ajuste para Móviles */
    .hero-section {
        height: 400px;
    }

    /* Secciones */
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-image {
        order: -1;
        text-align: center;
        margin-bottom: 20px;
    }
    .stats-section .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .values-grid, .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-map-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2em;
    }
    .hero-content p {
        font-size: 1.1em;
    }
    .stats-section .stats-grid {
        grid-template-columns: 1fr;
    }
    .values-grid, .services-grid, .locations-grid {
        grid-template-columns: 1fr;
    }
    .contact-bar .contact-grid {
        flex-direction: column;
        gap: 10px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .floating-buttons {
        left: 15px;
        bottom: 15px;
    }
    .whatsapp-btn {
        right: 15px;
        bottom: 15px;
    }





    /*
 * Archivo: style.css (Versión Final 100% Funcional)
 * Optimizado para móviles, tablets y escritorio.
 * Corrige ondas, header, hero y problemas previos.
*/

/* =================================================
 * === 1. VARIABLES Y BASE ===
 * ================================================= */
:root {
    --primary-color: #0367A6;
    --secondary-color: #022873;
    --accent-color: #5CC8F2;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #fff;
    --padding-section: 80px 0;
    --gap-size: 30px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.2);
    --header-height: 100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background: var(--white);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
}

.section { padding: var(--padding-section); }

h1, h2, h3 {
    margin-bottom: 0.5em;
    color: var(--secondary-color);
    font-weight: 700;
}

h2 {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 40px;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.95em;
    border: 2px solid transparent;
}

.btn-primary { background: var(--primary-color); color: var(--white); }
.btn-primary:hover { background: #0056b3; }

.btn-secondary { background: var(--secondary-color); color: var(--white); }
.btn-secondary:hover { background: #011f59; }

/* =================================================
 * === 2. HEADER CON ONDAS ANIMADAS ===
 * ================================================= */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: linear-gradient(180deg, #0367A6 0%, #022873 100%);
    box-shadow: var(--shadow);
    overflow: visible !important;
}

.nav-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.logo-img { height: 65px; }

.main-nav ul { display: flex; list-style: none; }
.main-nav li a {
    color: var(--white);
    padding: 15px 20px;
    text-decoration: none;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.main-nav li a:hover { color: var(--accent-color); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--white);
    cursor: pointer;
}

/* ------------ ONDAS INFINITAS ------------ */

.header-waves {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 130px;
    overflow: visible;
    z-index: 1;
}

.waves {
    width: 200%;
    height: 140px;
    animation: moveWaves 10s linear infinite;
}

.wave-group use {
    fill: rgba(255, 255, 255, 0.25);
    animation: waveShift 20s linear infinite;
}

.wave-group.slow use { animation-duration: 26s; }
.wave-group.slower use { animation-duration: 60s; }

@keyframes moveWaves {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes waveShift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1300px); }
}

/* =================================================
 * === 3. HERO SECTION ===
 * ================================================= */

.hero-section {
    height: 550px;
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 130px; /* Ajustado para ondas */
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 60, 100, 0.35);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
}
.hero-content p { font-size: 1.4em; }

/* =================================================
 * === 4. ABOUT / STATS / VALORES ===
 * ================================================= */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--gap-size);
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Stats */
.stats-section {
    background: var(--secondary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: var(--gap-size);
}

.stat-item .number {
    font-size: 3em;
    font-weight: 800;
    color: var(--accent-color);
}

/* =================================================
 * === 5. SERVICIOS ===
 * ================================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: var(--gap-size);
}

.service-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: 0.3s;
}
.service-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); }

/* =================================================
 * === 6. TESTIMONIOS (Optimizados + visibles en móvil) ===
 * ================================================= */

.testimonials-section {
    position: relative;
    text-align: center;
}

.slider-container {
    overflow: visible !important; /* FIX */
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slide {
    display: none;
    opacity: 0;
    transition: opacity .6s;
}
.testimonial-slide.active {
    display: block;
    opacity: 1;
}

.author-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
}

.author-info .title { color: #777; }

/* =================================================
 * === 7. HORARIOS & UBICACIONES ===
 * ================================================= */

#horarios {
    background: linear-gradient(180deg, rgba(92,200,242,0.07), #fff);
    position: relative;
    overflow: hidden;
}

#horarios::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 10% 50%, rgba(92,200,242,.12), transparent 40%),
        radial-gradient(circle at 90% 50%, rgba(3,103,166,.12), transparent 40%);
    transform: scaleY(1.5);
}

#horarios .container {
    position: relative;
    z-index: 5;
}

/* Ubicaciones */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: var(--gap-size);
}

/* =================================================
 * === 8. CONTACTO ===
 * ================================================= */

.contact-map-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

/* =================================================
 * === 9. FOOTER + BOTONES FLOTANTES ===
 * ================================================= */

.main-footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0;
}

.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    font-size: 1.8em;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

/* =================================================
 * === 10. MEDIA QUERIES ===
 * ================================================= */

@media (max-width: 992px) {

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 15px 0;
        box-shadow: var(--shadow);
    }
    .main-nav.active { display: block; }
    .main-nav li a {
        color: var(--text-color) !important;
        padding: 12px;
        display: block;
        border-bottom: 1px solid #eee;
        text-shadow: none;
    }

    .menu-toggle { display: block; }

    .hero-section { height: 430px; padding-top: 140px; }

    .about-grid { grid-template-columns: 1fr; }

    .stats-grid { grid-template-columns: repeat(2,1fr); }

    .values-grid, .services-grid { grid-template-columns: 1fr 1fr; }

    .contact-map-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {

    .hero-content h1 { font-size: 2em; }
    .hero-content p { font-size: 1.1em; }

    .stats-grid { grid-template-columns: 1fr; }

    .values-grid, .services-grid, .locations-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-btn {
        right: 15px;
        bottom: 15px;
    }
}
