:root {
    --azul-premium: #0b1a30;
    --azul-celeste: #00a2e8;
    --naranja-cta: #ff6600;
    --gris-fondo: #f4f7fb;
    --texto-oscuro: #1a202c;
    --texto-mutado: #4a5568;
    --blanco: #ffffff;
    --whatsapp-color: #25d366;
    --borde-suave: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', 'Segoe UI', Helvetica, Arial, sans-serif; scroll-behavior: smooth; }
body { background-color: var(--gris-fondo); color: var(--texto-oscuro); line-height: 1.7; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.titulo-centrado { text-align: center; margin-bottom: 40px; }
.titulo-centrado h2 { color: var(--azul-premium); font-size: 2.2rem; margin-bottom: 10px; }
.titulo-centrado p { color: var(--texto-mutado); font-size: 1.1rem; }

/* NAVBAR INSTITUCIONAL */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; background-color: var(--azul-premium); box-shadow: 0 4px 12px rgba(0,0,0,0.15); position: sticky; top: 0; z-index: 1000; }
.nav-logo img { max-height: 60px; filter: brightness(0) invert(1); }
.nav-links { list-style: none; display: flex; gap: 25px; margin: 0; padding: 0; align-items: center; }
.nav-links li a { text-decoration: none; color: var(--blanco); font-weight: 600; font-size: 15px; transition: color 0.3s; }
.nav-links li a:hover { color: var(--naranja-cta); }
.btn-nav-cta { background-color: var(--naranja-cta); color: var(--blanco) !important; padding: 10px 20px; border-radius: 50px; font-weight: bold; transition: background 0.3s; }
.btn-nav-cta:hover { background-color: #e65c00; }
.menu-toggle { display: none; font-size: 28px; cursor: pointer; color: var(--blanco); }

/* DROPDOWN MENU */
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background-color: var(--blanco); min-width: 280px; box-shadow: 0 8px 16px rgba(0,0,0,0.1); border-radius: 8px; overflow: hidden; z-index: 1001; padding: 10px 0; list-style: none; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a { display: block; padding: 12px 20px; font-weight: normal; color: var(--texto-oscuro); border-bottom: 1px solid var(--borde-suave); }
.dropdown-menu li a:hover { background-color: var(--gris-fondo); color: var(--naranja-cta); padding-left: 25px; }

@media (max-width: 992px) {
    .menu-toggle { display: block; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--azul-premium); box-shadow: 0 10px 15px rgba(0,0,0,0.2); padding: 20px 0; gap: 15px; }
    .nav-links.active { display: flex; }
    .dropdown-menu { position: static; box-shadow: none; display: none; padding-left: 20px; background-color: rgba(255,255,255,0.05); }
    .dropdown:hover .dropdown-menu { display: none; }
    .dropdown.active .dropdown-menu { display: block; }
    .dropdown-menu li a { color: var(--blanco); }
}

/* HERO SECTION */
.hero-video-container { position: relative; height: 80vh; min-height: 500px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-video-bg { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; transform: translateX(-50%) translateY(-50%); z-index: 1; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(11, 26, 48, 0.7); z-index: 2; }
.hero-content { position: relative; z-index: 3; text-align: center; color: var(--blanco); max-width: 800px; padding: 0 20px; }
.hero-content h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 20px; font-weight: 800; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; }
.btn-main { background-color: var(--naranja-cta); color: var(--blanco); padding: 15px 30px; border-radius: 50px; text-decoration: none; font-weight: bold; font-size: 1.1rem; display: inline-block; transition: transform 0.3s, box-shadow 0.3s; border: none; cursor: pointer; }
.btn-main:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255, 102, 0, 0.3); }
.btn-secundario { background-color: transparent; color: var(--blanco); padding: 15px 30px; border-radius: 50px; text-decoration: none; font-weight: bold; font-size: 1.1rem; display: inline-block; border: 2px solid var(--blanco); transition: background 0.3s, color 0.3s; margin-left: 10px; }
.btn-secundario:hover { background-color: var(--blanco); color: var(--azul-premium); }

/* CONVENIOS */
.convenios-home { background: transparent; padding: 40px 20px; margin-top: 20px; position: relative; z-index: 10; margin-bottom: 60px; }
.convenios-title { text-align: center; font-weight: bold; color: var(--texto-mutado); margin-bottom: 30px; text-transform: uppercase; letter-spacing: 1px; }
.convenios-wrapper { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; }
.convenio-cat { flex: 1; min-width: 250px; text-align: center; }
.convenio-cat h5 { color: var(--azul-premium); margin-bottom: 15px; font-size: 14px; border-bottom: 2px solid var(--borde-suave); padding-bottom: 5px; display: inline-block; }
.convenio-logos { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; }
.logo-item-premium { background-color: var(--blanco); padding: 15px; border-radius: 12px; border: 1px solid var(--borde-suave); display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; gap: 12px; flex: 1 1 calc(25% - 12px); min-width: 200px; box-shadow: 0 2px 4px rgba(0,0,0,0.01); transition: all 0.25s ease-in-out; }
.logo-item-premium:hover { border-color: var(--azul-celeste); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 162, 232, 0.08); }
.nombre-inst { font-size: 13px; font-weight: 700; color: var(--azul-premium); line-height: 1.4; height: 30px; display: flex; align-items: center; justify-content: center; }
.img-convenio-logo { max-width: 100%; max-height: 60px; object-fit: contain; filter: grayscale(100%); transition: filter 0.3s; }
.img-convenio-logo:hover { filter: grayscale(0%); }

/* DIRECTORIO DE PROGRAMAS (CON FOTOS FRONTALES Y EFECTO ZOOM) */
.search-engine-box { max-width: 600px; margin: 0 auto 40px auto; display: flex; gap: 10px; padding: 10px; background: var(--blanco); border-radius: 50px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid var(--borde-suave); }
.search-engine-box input { width: 100%; border: none; background: transparent; padding: 10px; font-size: 16px; outline: none; color: var(--azul-premium); }
.grid-programas-directorio { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; }

.card-programa-item { background: var(--blanco); border: 1px solid var(--borde-suave); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.04); display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s; }
.card-programa-item:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0,0,0,0.1); }
.img-enlace-programa { display: block; overflow: hidden; position: relative; }
.card-img-top { width: 100%; height: 180px; object-fit: cover; border-bottom: 3px solid var(--naranja-cta); transition: transform 0.5s ease; display: block; }
.card-programa-item:hover .card-img-top { transform: scale(1.08); }

.card-body-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.badge-edad { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: bold; }
.card-programa-item h3 { color: var(--azul-premium); margin-bottom: 10px; font-size: 1.3rem; }
.card-programa-item p { font-size: 14px; color: var(--texto-mutado); line-height: 1.5; margin-bottom: 20px; }
.card-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-card-brochure { text-align: center; background: var(--gris-fondo); color: var(--texto-oscuro); border: 1px solid #cbd5e1; padding: 10px; border-radius: 6px; font-size: 13px; font-weight: bold; text-decoration: none; transition: background 0.3s; }
.btn-card-brochure:hover { background: #e2e8f0; }
.btn-card-info { background: var(--azul-premium); color: var(--blanco); border: none; padding: 10px; border-radius: 6px; font-size: 13px; font-weight: bold; cursor: pointer; transition: background 0.3s; }
.btn-card-info:hover { background: var(--naranja-cta); }

/* MULTIMEDIA TABS */
.multimedia-tabs-section { background: var(--blanco); padding: 60px 20px; border-radius: 12px; border: 1px solid var(--borde-suave); }
.tabs-container { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.tab-btn { padding: 10px 20px; border: 1px solid var(--borde-suave); background: var(--gris-fondo); border-radius: 50px; cursor: pointer; font-weight: bold; color: var(--texto-mutado); transition: all 0.3s; }
.tab-btn.active, .tab-btn:hover { background: var(--azul-premium); color: var(--blanco); border-color: var(--azul-premium); }
.tab-content { display: none; animation: fadeIn 0.5s; }
.tab-content.active { display: block; }
.grid-multimedia { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; }
.media-box img, .media-box-video video { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; border: 1px solid var(--borde-suave); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* TESTIMONIOS (VIDAS TRANSFORMADAS) */
.testimonios-section { margin-bottom: 60px; }
.grid-testimonios { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card-testimonio { background: var(--blanco); padding: 30px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid var(--borde-suave); position: relative; }
.card-testimonio::before { content: "“"; font-size: 60px; color: var(--azul-celeste); position: absolute; top: 10px; right: 20px; opacity: 0.2; font-family: Georgia, serif; }
.stars { color: #fbbf24; margin-bottom: 15px; font-size: 1.2rem; }
.texto-testimonio { font-size: 15px; color: var(--texto-mutado); font-style: italic; margin-bottom: 20px; }
.perfil-testimonio { display: flex; align-items: center; gap: 15px; border-top: 1px solid var(--borde-suave); padding-top: 15px; }
.perfil-testimonio img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--azul-premium); }
.perfil-testimonio h5 { color: var(--azul-premium); font-size: 1rem; margin: 0; }
.perfil-testimonio span { color: var(--naranja-cta); font-size: 0.85rem; font-weight: bold; }

/* FOOTER INSTITUCIONAL */
.footer-institucional { background-color: var(--azul-premium); color: var(--blanco); padding: 60px 0 20px 0; margin-top: 60px; border-top: 4px solid var(--azul-celeste); }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr 1.2fr; gap: 50px; margin-bottom: 40px; }
.footer-col h4, .footer-col-programas h4 { color: var(--naranja-cta); margin-bottom: 20px; font-size: 1.15rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col p { color: #cbd5e1; font-size: 14px; line-height: 1.8; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a, .footer-programas-subgrid ul li a { color: #cbd5e1; text-decoration: none; font-size: 14px; transition: all 0.25s ease; display: inline-block; }
.footer-col ul li a:hover, .footer-programas-subgrid ul li a:hover { color: var(--blanco); transform: translateX(4px); }
.footer-col-programas { display: flex; flex-direction: column; }
.footer-programas-subgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.footer-programas-subgrid ul { list-style: none; padding: 0; margin: 0; }
.footer-programas-subgrid ul li { margin-bottom: 12px; }
.footer-social-row { text-align: center; margin-top: 40px; margin-bottom: 30px; padding: 0 20px; }
.social-row-title { font-weight: 700; font-size: 15px; margin-bottom: 8px; letter-spacing: 1px; color: var(--blanco); }
.social-row-subtitle { color: #cbd5e0; max-width: 700px; margin: 0 auto 20px auto; font-size: 13px; line-height: 1.6; }
.social-container { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; width: 100%; }
.social-btn { padding: 8px 18px; border-radius: 50px; font-size: 13px; font-weight: bold; text-decoration: none; color: var(--blanco); transition: all 0.3s ease; display: inline-block; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.social-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(0,0,0,0.2); color: var(--blanco); }
.fb-btn { background-color: #1877F2; }
.ig-btn { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.tk-btn { background-color: #000000; border: 1px solid #222; }
.yt-btn { background-color: #FF0000; }
.footer-divider { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); margin: 25px 0; }
.footer-bottom { text-align: center; font-size: 13px; color: #94a3b8; }
@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr; gap: 35px; } .footer-programas-subgrid { grid-template-columns: 1fr; gap: 0; } }

/* FORMULARIO Y URGENCIA */
.urgencia-counter-box { background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%); padding: 30px; border-radius: 12px; text-align: center; border: 1px solid #ffcc80; }
.counter-badge { background: #d32f2f; color: var(--blanco); padding: 5px 15px; border-radius: 20px; font-weight: bold; font-size: 14px; display: inline-block; margin-bottom: 15px; }
.countdown-timer { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.timer-segment { background: var(--blanco); padding: 10px 15px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); min-width: 70px; }
.timer-segment span { display: block; font-size: 24px; font-weight: bold; color: var(--azul-premium); }
.timer-segment small { color: var(--texto-mutado); font-size: 12px; text-transform: uppercase; }
.formulario-box { background: var(--blanco); padding: 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); max-width: 800px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; color: var(--texto-oscuro); }
.form-group input, .form-group select { width: 100%; padding: 12px 15px; border: 1px solid var(--borde-suave); border-radius: 8px; font-size: 16px; outline: none; transition: border-color 0.3s; }
.form-group input:focus, .form-group select:focus { border-color: var(--naranja-cta); }
.btn-submit { width: 100%; background: var(--naranja-cta); color: var(--blanco); padding: 15px; border: none; border-radius: 8px; font-size: 18px; font-weight: bold; cursor: pointer; transition: background 0.3s; }
.btn-submit:hover { background: #e65c00; }

/* WHATSAPP SVG & MOBILE CTA */
.whatsapp-floating { position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px; background-color: var(--whatsapp-color); border-radius: 50%; box-shadow: 2px 2px 10px rgba(0,0,0,0.2); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease; }
.whatsapp-floating:hover { transform: scale(1.1); }
.whatsapp-icon-svg { width: 35px; height: 35px; fill: var(--blanco); }
.mobile-sticky-cta { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: 90%; z-index: 9998; display: none; }
.btn-sticky-inscripcion { display: block; background: var(--naranja-cta); color: var(--blanco); text-align: center; padding: 15px; border-radius: 50px; font-weight: bold; text-decoration: none; box-shadow: 0 5px 15px rgba(255, 102, 0, 0.4); font-size: 16px; }
@media (max-width: 768px) { .mobile-sticky-cta { display: block; } .hero-content h1 { font-size: 2rem; } .whatsapp-floating { bottom: 90px; right: 20px; } }

/* ESTILOS COMUNES PARA LAS LANDING PAGES (PROGRAMAS) */
.hero-programa { background-color: var(--azul-premium); background-blend-mode: multiply; padding: 120px 20px; text-align: center; color: var(--blanco); position: relative; background-size: cover; background-position: center; }
.hero-programa h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; color: var(--blanco); }
.hero-programa p { font-size: 1.25rem; max-width: 800px; margin: 0 auto 30px; color: #e2e8f0; }
.badge-hero { background: var(--naranja-cta); color: var(--blanco); padding: 8px 20px; border-radius: 50px; font-weight: bold; font-size: 14px; display: inline-block; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.pilares-section { padding: 80px 20px; background: var(--gris-fondo); }
.grid-pilares { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.card-pilar { background: var(--blanco); padding: 40px 30px; border-radius: 15px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-bottom: 4px solid var(--azul-celeste); transition: transform 0.3s; }
.card-pilar:hover { transform: translateY(-10px); }
.icon-pilar { font-size: 3rem; margin-bottom: 20px; color: var(--naranja-cta); }
.card-pilar h4 { color: var(--azul-premium); font-size: 1.3rem; margin-bottom: 15px; }
.card-pilar p { font-size: 0.95rem; color: var(--texto-mutado); }
.equipo-section { padding: 80px 20px; background: var(--azul-premium); color: var(--blanco); text-align: center; }
.equipo-section h2 { color: var(--blanco); margin-bottom: 15px; }
.grid-equipo { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; max-width: 1000px; margin: 50px auto 0; }
.miembro-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--azul-celeste); margin-bottom: 15px; }
.miembro-card h4 { font-size: 1.2rem; margin-bottom: 5px; color: var(--naranja-cta); }
.miembro-card p { font-size: 0.9rem; color: #cbd5e1; }
.pricing-cta-section { padding: 80px 20px; background: var(--blanco); text-align: center; }
.caja-admision { max-width: 700px; margin: 0 auto 40px; background: var(--gris-fondo); padding: 50px; border-radius: 20px; border: 1px solid var(--borde-suave); box-shadow: 0 15px 30px rgba(0,0,0,0.05); }
.caja-admision h3 { color: var(--azul-premium); font-size: 2rem; margin-bottom: 20px; }
.caja-admision p { color: var(--texto-mutado); font-size: 1.1rem; margin-bottom: 30px; line-height: 1.8; }
.beneficios-cita { display: flex; flex-direction: column; gap: 15px; text-align: left; margin-bottom: 30px; background: var(--blanco); padding: 25px; border-radius: 12px; border-left: 4px solid var(--naranja-cta); }
.beneficios-cita span { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--texto-oscuro); }

