/* ==========================================================================
   VARIABLES DE COLOR (PALETA ESTRICTA DE INADECP)
   ========================================================================== */
:root {
    --color-primario: #1C3659;     /* Azul oscuro principal */
    --color-secundario: #4D5D73;   /* Azul grisáceo medio */
    --color-acento: #A3B2BF;       /* Azul grisáceo claro / Plateado */
    --color-oscuro: #101E26;       /* Azul casi negro */
    --color-claro: #F2F2F2;        /* Gris muy claro / Fondo */
}

/* ==========================================================================
   RESET Y ESTILOS BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    scroll-behavior: smooth; 
}

body {
    background-color: var(--color-claro);
    color: var(--color-oscuro);
    overflow-x: hidden;
}

/* --- Barra de Navegación Integrada --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: linear-gradient(to bottom, rgba(16, 30, 38, 0.95) 0%, rgba(16, 30, 38, 0.4) 100%);
    color: var(--color-claro);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.logo h2 { font-weight: 800; letter-spacing: 1px; margin: 0; }

.nav-links { list-style: none; display: flex; gap: 1.5rem; align-items: center; }

.nav-links a {
    color: var(--color-claro);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active { color: var(--color-acento); }

.icon-social {
    background-color: var(--color-claro);
    color: var(--color-oscuro) !important;
    width: 25px; height: 25px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%;
    font-weight: bold;
    text-decoration: none;
}

/* Menú hamburguesa (Móviles) */
.hamburger { display: none; cursor: pointer; }
.hamburger .bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--color-claro); transition: all 0.3s ease; }

/* ==========================================================================
   SECCIÓN HÉROE & SLIDER
   ========================================================================== */
.hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; }
.slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; display: flex; align-items: center; }
.slide.active { opacity: 1; z-index: 1; }
.slide::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(16, 30, 38, 0.5); z-index: 0; }

.hero-content { z-index: 1; width: 100%; display: flex; justify-content: flex-start; padding-left: 10%; }
.text-box-overlay {
    background-color: rgba(16, 30, 38, 0.75); 
    padding: 3rem 4rem;
    text-align: left;
    color: var(--color-claro);
    border-radius: 8px;
    max-width: 750px; 
    border-left: 5px solid var(--color-acento);
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease-in-out 0.3s;
}

.slide.active .text-box-overlay { opacity: 1; transform: translateX(0); }
.text-box-overlay .label { display: block; font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; color: var(--color-acento); letter-spacing: 2px; text-transform: uppercase; }
.text-box-overlay h1 { font-size: 4rem; font-weight: 800; margin: 0; line-height: 1.1; min-height: 4.4rem; }
.typewriter-cursor::after { content: '|'; color: var(--color-claro); animation: blink 0.8s step-end infinite; font-weight: 300; }
@keyframes blink { 50% { opacity: 0; } }
.text-box-overlay .subtitle { font-size: 1.3rem; margin-top: 15px; color: var(--color-claro); font-weight: 300; }

/* ==========================================================================
   CLASES GENERALES DE SECCIONES
   ========================================================================== */
.section-padding { padding: 6rem 10%; }
.section-header { text-align: center; margin-bottom: 4rem; }
.oferta-label { color: var(--color-primario); font-weight: 800; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 0.5rem; }
.section-title-new { color: var(--color-oscuro); font-size: 2.8rem; font-weight: 800; margin-bottom: 1rem; }
.section-subtitle { color: var(--color-secundario); font-size: 1.1rem; max-width: 700px; margin: 0 auto; line-height: 1.6; }
.title-underline { width: 60px; height: 4px; background-color: var(--color-primario); margin: 1rem auto 0; border-radius: 2px; }
.text-light { color: var(--color-claro); }

/* Animaciones de Entrada (Reveal) */
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   SECCIÓN "SOMOS" Y TARJETAS DE NOSOTROS
   ========================================================================== */
.about-section { background-color: var(--color-claro); padding-bottom: 2rem;}
.about-container { display: flex; align-items: center; justify-content: space-between; gap: 4rem; max-width: 1200px; margin: 0 auto; }
.about-text { flex: 1; text-align: left; }
.about-title { font-size: 3.5rem; color: var(--color-primario); font-weight: 900; margin-bottom: 0.5rem; }
.about-subtitle { font-size: 1.4rem; color: var(--color-secundario); font-weight: 600; margin-bottom: 2rem; line-height: 1.4; }
.about-text p { color: var(--color-oscuro); font-size: 1.1rem; line-height: 1.8; }

.about-collage { flex: 1; position: relative; min-height: 400px; display: flex; justify-content: center; }
.collage-img-back { position: absolute; top: 0; left: 0; width: 65%; border-radius: 10px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); z-index: 1; }
.collage-img-front { position: absolute; bottom: -30px; right: 0; width: 70%; border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); border: 8px solid var(--color-claro); z-index: 2; }

/* Tarjetas de Beneficios (Debajo de Somos) */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; margin-top: 2rem; }
.feature-card { background: #ffffff; padding: 3rem 2.5rem; border-radius: 24px; text-align: center; border: 1px solid rgba(0,0,0,0.03); box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05); transition: all 0.4s ease; position: relative; top: 0; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); border-color: var(--color-acento); }

.icon-wrapper { width: 85px; height: 85px; margin: 0 auto 1.8rem auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease; }
.feature-card:hover .icon-wrapper { transform: scale(1.1); }

/* Colores de íconos adaptados a la marca */
.icon-blue { background-color: var(--color-primario); color: var(--color-claro); }
.icon-green { background-color: var(--color-secundario); color: var(--color-claro); }
.icon-yellow { background-color: var(--color-oscuro); color: var(--color-acento); }

.feature-title { color: var(--color-primario); font-size: 1.4rem; font-weight: 800; margin-bottom: 1rem; }
.feature-desc { color: var(--color-secundario); font-size: 1rem; line-height: 1.7; }

/* ==========================================================================
   SECCIÓN DE PROGRAMAS (TARJETAS CON IMAGEN)
   ========================================================================== */
#programas { padding-top: 2rem; }
.category-title { font-size: 2rem; color: var(--color-primario); margin-bottom: 2rem; padding-bottom: 10px; border-bottom: 3px solid var(--color-acento); display: inline-block; }
.cards-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.card { background: #fff; border-radius: 15px; box-shadow: 0 8px 25px rgba(0,0,0,0.06); text-align: left; display: flex; flex-direction: column; overflow: hidden; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.card:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.card-img-wrapper { position: relative; height: 220px; overflow: hidden; }
.card-img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.6s ease; }
.card:hover .card-img { transform: scale(1.1); }

/* Etiquetas (Badges) con colores de la marca */
.badge { position: absolute; top: 15px; right: 15px; padding: 6px 18px; border-radius: 20px; color: var(--color-claro); font-weight: 800; font-size: 0.85rem; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.badge-pedagogia, .badge-ciencias, .badge-inclusion { background-color: var(--color-primario); } 
.badge-didactica, .badge-deportes, .badge-internacional { background-color: var(--color-secundario); } 
.badge-gestion, .badge-tutoria { background-color: var(--color-oscuro); color: var(--color-acento); } 

.card-content { padding: 2rem; background: #fff; position: relative; z-index: 2; flex-grow: 1; }
.card-content h3 { color: var(--color-primario); margin-bottom: 0.8rem; font-size: 1.4rem; font-weight: 800;}
.card-content p { color: var(--color-secundario); line-height: 1.6; font-size: 0.95rem; }

/* ==========================================================================
   SECCIÓN "¿POR QUÉ ELEGIRNOS?" (CÍRCULOS Y ANIMACIÓN)
   ========================================================================== */
.why-choose-section { background-color: var(--color-primario); color: var(--color-claro); overflow: hidden; }
.why-header { text-align: center; margin-bottom: 4rem; }
.why-header h2 { font-size: 3rem; font-weight: 800; margin-bottom: 10px; }

/* Reemplazamos el naranja original por el color de acento de tu marca */
.highlight-orange { color: var(--color-acento); }

.why-header p { font-size: 1.2rem; color: var(--color-acento); }
.why-split-container { display: flex; justify-content: center; align-items: center; gap: 2rem; max-width: 1200px; margin: 0 auto; }
.why-col-left, .why-col-right { display: flex; flex-direction: column; gap: 2rem; flex: 1; }

.why-item { display: flex; align-items: center; gap: 1rem; cursor: pointer; transition: transform 0.3s ease; }
.why-col-left .why-item { text-align: right; justify-content: flex-end; }
.why-col-right .why-item { text-align: left; justify-content: flex-start; }

.why-col-left .why-item:hover { transform: translateX(10px); }
.why-col-right .why-item:hover { transform: translateX(-10px); }

.why-icon {
    width: 55px; height: 55px; min-width: 55px;
    background-color: rgba(163, 178, 191, 0.15); /* Acento transparente */
    border-radius: 12px;
    display: flex; justify-content: center; align-items: center;
    color: var(--color-claro); 
    transition: background-color 0.3s, color 0.3s;
}

.why-item:hover .why-icon {
    background-color: var(--color-acento); 
    color: var(--color-oscuro);
}

.why-text h3 { font-size: 1.2rem; margin-bottom: 5px; color: var(--color-claro); }
.why-text p { font-size: 0.9rem; color: var(--color-acento); }

.why-center { position: relative; width: 380px; height: 380px; display: flex; justify-content: center; align-items: center; margin: 0 2rem; }
.center-img { width: 280px; height: 280px; object-fit: cover; border-radius: 50%; z-index: 2; box-shadow: 0 15px 35px rgba(0,0,0,0.4); }
.spin-circle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 2px dashed rgba(163, 178, 191, 0.3); z-index: 1; }
.circle-1 { width: 320px; height: 320px; animation: spin-clockwise 25s linear infinite; }
.circle-2 { width: 420px; height: 420px; border: 1px dashed rgba(163, 178, 191, 0.2); animation: spin-counterclockwise 35s linear infinite; }

.floating-badge {
    position: absolute; bottom: -20px;
    background: var(--color-claro);
    color: var(--color-oscuro);
    padding: 15px 30px; border-radius: 10px;
    text-align: center; font-weight: 800; font-size: 1.1rem; z-index: 3;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-bottom: 4px solid var(--color-secundario);
}
.floating-badge .highlight-orange { color: var(--color-primario); }

@keyframes spin-clockwise {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes spin-counterclockwise {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

/* ==========================================================================
   SECCIÓN TESTIMONIOS
   ========================================================================== */
.testimonials { background-color: var(--color-oscuro); }
.testimonials .section-title-new { color: var(--color-claro); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }

.testimonial-card {
    background-color: var(--color-primario); 
    border: 1px solid var(--color-secundario); 
    border-radius: 12px; padding: 2rem; text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-5px); border-color: var(--color-acento); }

.stars { color: var(--color-acento); font-size: 1.2rem; margin-bottom: 1rem; letter-spacing: 2px; }
.quote { font-style: italic; font-size: 0.95rem; line-height: 1.6; color: var(--color-claro); margin-bottom: 1.5rem; opacity: 0.9; }
.author-name { font-size: 1.1rem; font-weight: 800; color: var(--color-claro); margin-bottom: 0.2rem; }
.author-title { font-size: 0.85rem; color: var(--color-acento); }

/* ==========================================================================
   SECCIÓN CIFRAS (FONDO PUNTEADO MINIMALISTA)
   ========================================================================== */
.cifras-dotted-section {
    background-color: var(--color-claro); 
    background-image: radial-gradient(var(--color-acento) 1.5px, transparent 1.5px); /* Puntitos color acento */
    background-size: 30px 30px;
    text-align: center;
    border-top: 1px solid rgba(77, 93, 115, 0.1);
}

.cifras-header { max-width: 900px; margin: 0 auto 5rem auto; }
.cifras-header h2 { font-size: 2.2rem; color: var(--color-oscuro); line-height: 1.4; font-weight: 600; }
.highlight-blue { color: var(--color-primario); font-weight: 900; }

.stats-container-new { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.stat-item-new { display: flex; flex-direction: column; align-items: center; }
.stat-number-new { display: flex; align-items: baseline; justify-content: center; margin-bottom: 0.5rem; }

.plus-sign {
    color: var(--color-secundario); /* Símbolo + en color secundario */
    font-size: 3.5rem; font-weight: 800; margin-right: 8px;
}
.stat-number-new .counter {
    color: var(--color-primario); /* Números en color primario */
    font-size: 4.5rem; font-weight: 800; line-height: 1;
}
.stat-text-new { color: var(--color-oscuro); font-size: 1.1rem; font-weight: 600; }

/* ==========================================================================
   FOOTER COMPLETO Y FIRMA
   ========================================================================== */
footer { background-color: var(--color-oscuro); color: var(--color-claro); padding: 4rem 10% 1rem 10%; text-align: left; }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3rem; margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-info { flex: 1; min-width: 250px; }
.footer-info h3 { font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem; color: var(--color-claro); }
.footer-info p { color: var(--color-acento); line-height: 1.6; }
.footer-logos { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px dashed rgba(255,255,255,0.2); }
.footer-logos p { font-size: 0.9rem; margin-bottom: 5px; }

.footer-contact, .footer-location { flex: 1; min-width: 250px; }
.footer-contact h4, .footer-location h4 { font-size: 1.3rem; margin-bottom: 1.5rem; color: var(--color-claro); }
.contact-links { display: flex; flex-direction: column; gap: 1.2rem; }

.footer-link { display: flex; align-items: flex-start; gap: 12px; color: var(--color-claro); text-decoration: none; font-weight: 500; font-size: 1.05rem; transition: color 0.3s ease; line-height: 1.4; }
a.footer-link:hover { color: var(--color-acento); }

.footer-bottom { text-align: center; color: var(--color-acento); font-size: 0.95rem; }
.designer-link { color: var(--color-acento); text-decoration: none; font-weight: 800; transition: color 0.3s ease; }
.designer-link:hover { color: var(--color-claro); text-decoration: underline; }

/* ==========================================================================
   DISEÑO RESPONSIVE (MÓVILES Y TABLETS)
   ========================================================================== */
@media (max-width: 992px) {
    .section-padding { padding: 4rem 5%; } 
    .text-box-overlay { max-width: 90%; }
    .text-box-overlay h1 { font-size: 3rem; min-height: 3.5rem; }
    .section-title-new { font-size: 2.2rem; }
    
    .about-container { flex-direction: column; }
    .about-collage { width: 100%; margin-top: 2rem; }
    .collage-img-back { left: 10%; width: 70%; }
    .collage-img-front { right: 5%; width: 75%; }

    .why-split-container { flex-direction: column; }
    .why-center { order: -1; margin-bottom: 3rem; } 
    .why-col-left .why-item { text-align: left; justify-content: flex-start; flex-direction: row-reverse;}
    .why-col-right .why-item { flex-direction: row-reverse; }

    .stats-container-new { grid-template-columns: repeat(2, 1fr); gap: 4rem 2rem; }
    .cifras-header h2 { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    /* Activar Menú Hamburguesa */
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-links { position: absolute; left: -100%; top: 70px; flex-direction: column; background-color: var(--color-primario); width: 100%; text-align: center; transition: 0.3s; box-shadow: 0 10px 10px rgba(0,0,0,0.2); padding: 2rem 0; }
    .nav-links.active { left: 0; }
    .nav-links li { margin: 1.5rem 0; }

    /* Ajustes Generales */
    .hero-content { padding-left: 0; justify-content: center; }
    .text-box-overlay { padding: 2rem 1.5rem; margin: 0 15px; border-left: none; border-bottom: 5px solid var(--color-acento); text-align: center; }
    .text-box-overlay h1 { font-size: 2rem; min-height: 2.5rem; }
    
    .section-title-new { font-size: 1.8rem; }
    .category-title { font-size: 1.5rem; text-align: center; display: block; }
    .features-grid, .cards-container { grid-template-columns: 1fr; gap: 2rem; }
    
    .footer-content { flex-direction: column; text-align: left; }
}

@media (max-width: 576px) {
    .about-title { font-size: 2.8rem; }
    .about-subtitle { font-size: 1.2rem; }
    .about-collage { min-height: 250px; }
    
    .why-center { width: 300px; height: 300px; }
    .center-img { width: 220px; height: 220px; }
    .circle-1 { width: 260px; height: 260px; }
    .circle-2 { width: 320px; height: 320px; }

    .stats-container-new { grid-template-columns: 1fr; gap: 3rem; }
    .stat-number-new .counter { font-size: 3.8rem; }
    .plus-sign { font-size: 3rem; }
}
/* ==========================================================================
   BOTÓN DE TARJETAS DE PROGRAMAS ("INFORMACIÓN COMPLETA")
   ========================================================================== */
.btn-programa {
    display: inline-block;
    margin-top: 1.5rem; /* Separación del texto de arriba */
    padding: 0.8rem 1.5rem;
    background-color: var(--color-primario); /* Fondo Azul Oscuro */
    color: var(--color-claro); /* Letras Claras */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 30px; /* Bordes redondeados elegantes */
    text-align: center;
    border: 2px solid transparent; /* Borde invisible para la animación */
    transition: all 0.3s ease; /* Animación suave */
}

/* Efecto al pasar el ratón por encima */
.btn-programa:hover {
    background-color: transparent; /* El fondo desaparece */
    color: var(--color-primario); /* La letra se vuelve azul oscura */
    border-color: var(--color-primario); /* Aparece un borde azul oscuro */
    transform: translateY(-3px); /* El botón "salta" un poquito hacia arriba */
}
/* ==========================================================================
   ANIMACIÓN DEL CARRUSEL DE TESTIMONIOS (LOOP INFINITO)
   ========================================================================== */

/* Escondemos lo que se sale de la pantalla por los lados */
.testimonials-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 2rem;
    padding: 1rem 0;
}

/* La pista larga que contiene las 12 tarjetas (6 originales + 6 repetidas) */
.testimonials-track {
    display: flex;
    /* Calculamos el ancho: 350px por tarjeta (320px de ancho + 30px de margen) x 12 tarjetas = 4200px */
    width: 4200px; 
    animation: scroll-testimonios 35s linear infinite; /* 35 segundos en dar la vuelta completa */
}

/* Pausa la animación si pasas el ratón por encima para poder leer */
.testimonials-track:hover {
    animation-play-state: paused;
}

/* Forzamos el tamaño de cada tarjeta dentro del carrusel */
.testimonials-slider .testimonial-card {
    width: 320px; /* Ancho fijo */
    min-width: 320px; /* Evita que se encojan */
    margin-right: 30px; /* Separación entre tarjetas */
    /* Eliminamos el 'reveal' del CSS general porque ahora se mueven de lado */
    transform: none !important;
    opacity: 1 !important;
}

/* Efecto de elevación al poner el ratón sobre una tarjeta específica */
.testimonials-slider .testimonial-card:hover {
    transform: translateY(-5px) !important;
    border-color: var(--color-acento);
}

/* El motor del carrusel: Se mueve la mitad exacta del ancho (6 tarjetas = 2100px) y se reinicia */
@keyframes scroll-testimonios {
    0% { transform: translateX(0); }
    100% { transform: translateX(-2100px); }
}