@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   VARIABLES DE COLOR (PALETA ESTRICTA DE ICADE PERÚ)
   ========================================================================== */
:root {
    --color-primario: #0B1D5C;     /* Azul oscuro institucional */
    --color-secundario: #D8B44A;   /* Dorado */
    --color-acento: #F2D66D;       /* Dorado claro */
    --color-oscuro: #0A1540;       /* Azul muy oscuro */
    --color-claro: #F5F5F5;        /* Gris claro */
}

/* ==========================================================================
   RESET Y ESTILOS BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    scroll-behavior: smooth; 
}

h1, h2, h3, h4, h5, h6, .logo h2, .section-title-new, .about-title, .category-title {
    font-family: 'Outfit', 'Inter', sans-serif;
}

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: 0.8rem 5%;
    background: linear-gradient(to bottom, rgba(10, 21, 64, 0.95) 0%, rgba(10, 21, 64, 0.4) 100%);
    border-bottom: 1px solid var(--color-secundario);
    color: var(--color-claro);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo { display: flex; align-items: center; }
.logo a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo-img, .verification-logo-img, .verification-header .logo-img { 
    height: 60px !important; 
    width: 60px !important; 
    border-radius: 50% !important; 
    object-fit: cover !important; 
    display: block; 
    border: 2.5px solid var(--color-secundario) !important;
    box-shadow: 0 0 15px rgba(216, 180, 74, 0.4) !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease !important; 
}
.logo-img:hover, .verification-logo-img:hover { 
    transform: scale(1.1) rotate(4deg) !important; 
    box-shadow: 0 0 22px rgba(216, 180, 74, 0.8) !important;
}
.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
   ========================================================================== */
/* ==========================================================================
   SECCIÓN HÉROE & SLIDER MODERNO
   ========================================================================== */
.hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.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; 
    transform: scale(1.05);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 8s ease-out; 
    display: flex; align-items: center; 
    pointer-events: none;
}
.slide.active { opacity: 1; z-index: 2; transform: scale(1); pointer-events: auto; }
.slide::after { 
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(135deg, rgba(10, 21, 64, 0.88) 0%, rgba(11, 29, 92, 0.65) 100%); 
    z-index: 0; 
    pointer-events: none;
}

.hero-content { position: relative; z-index: 10; width: 100%; display: flex; justify-content: flex-start; padding-left: 8%; padding-right: 8%; pointer-events: auto; }
.text-box-overlay {
    position: relative;
    z-index: 10;
    pointer-events: auto;
    background: rgba(10, 21, 64, 0.68);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 3.2rem 4rem;
    text-align: left;
    color: var(--color-claro);
    border-radius: 20px;
    max-width: 800px; 
    border-left: 6px solid var(--color-secundario);
    border-top: 1px solid rgba(242, 214, 109, 0.25);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.slide.active .text-box-overlay { opacity: 1; transform: translateY(0); }
.label-pill { 
    display: inline-flex; align-items: center; gap: 8px; 
    padding: 8px 20px; border-radius: 30px; 
    background: linear-gradient(135deg, var(--color-secundario), #B89332); 
    color: #0A1540; font-weight: 800; font-size: 0.9rem; 
    text-transform: uppercase; letter-spacing: 1px; 
    box-shadow: 0 4px 15px rgba(216, 180, 74, 0.35); 
    margin-bottom: 1.2rem; 
}
.text-box-overlay h1 { font-size: 3.8rem; font-weight: 800; margin: 0; line-height: 1.1; min-height: 4.2rem; color: #FFFFFF; text-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.typewriter-cursor::after { content: '|'; color: var(--color-acento); 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: rgba(245, 245, 245, 0.95); font-weight: 300; line-height: 1.5; }

/* Botones Acción Hero */
.hero-actions { position: relative; z-index: 20; display: flex; gap: 1.2rem; margin-top: 2rem; flex-wrap: wrap; pointer-events: auto; }
.btn-hero-primary {
    position: relative; z-index: 20; pointer-events: auto; cursor: pointer;
    padding: 0.95rem 2.2rem; border-radius: 12px; 
    background: linear-gradient(135deg, var(--color-secundario) 0%, var(--color-acento) 100%); 
    color: var(--color-oscuro); font-weight: 800; text-decoration: none; font-size: 0.95rem; 
    box-shadow: 0 10px 25px rgba(216, 180, 74, 0.35); transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center;
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(216, 180, 74, 0.5); }

.btn-hero-secondary {
    position: relative; z-index: 20; pointer-events: auto; cursor: pointer;
    padding: 0.95rem 2.2rem; border-radius: 12px; 
    background: rgba(255, 255, 255, 0.12); color: #FFFFFF; font-weight: 700; text-decoration: none; font-size: 0.95rem; 
    border: 1.5px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(10px); transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center;
}
.btn-hero-secondary:hover { background: rgba(255, 255, 255, 0.25); border-color: var(--color-secundario); transform: translateY(-3px); }

/* Controladores Slider */
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(10, 21, 64, 0.55); border: 1.5px solid rgba(242, 214, 109, 0.4);
    color: var(--color-acento); display: flex; align-items: center; justify-content: center;
    cursor: pointer; backdrop-filter: blur(8px); transition: all 0.3s ease;
}
.prev-arrow { left: 2rem; }
.next-arrow { right: 2rem; }
.slider-arrow:hover {
    background: var(--color-secundario); color: var(--color-oscuro);
    border-color: var(--color-secundario); transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(216, 180, 74, 0.5);
}

.slider-dots {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 10;
    display: flex; gap: 12px; align-items: center;
}
.dot {
    width: 14px; height: 14px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.35); border: 2px solid transparent;
    cursor: pointer; transition: all 0.4s ease;
}
.dot:hover { background: rgba(255, 255, 255, 0.7); }
.dot.active {
    width: 38px; border-radius: 20px;
    background: var(--color-secundario); box-shadow: 0 0 12px rgba(216, 180, 74, 0.6);
}

/* ==========================================================================
   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-secundario); 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: 14px; text-align: center; border: 1px solid rgba(0,0,0,0.03); box-shadow: 0 10px 40px -10px rgba(216, 180, 74, 0.08); transition: all 0.4s ease; position: relative; top: 0; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px -10px rgba(216, 180, 74, 0.15); 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: 14px; box-shadow: 0 8px 25px rgba(216, 180, 74, 0.08); 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(216, 180, 74, 0.15); }
.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(242, 214, 109, 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(242, 214, 109, 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(242, 214, 109, 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(216, 180, 74, 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: 10px; /* 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: linear-gradient(135deg, var(--color-secundario) 0%, var(--color-acento) 100%);
    color: var(--color-oscuro); /* La letra se vuelve azul oscura */
    border-color: transparent; /* Sin 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); }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.floating-whatsapp:hover {
    transform: scale(1.12);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}
.floating-whatsapp::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: pulseRing 2s infinite;
}
@keyframes pulseRing {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}