:root {
    /* Paleta Azul Clínico Moderno */
    --primary-blue: #0066CC;
    --primary-hover: #004C99;
    --secondary-cyan: #00B4D8;
    --accent-green: #10B981;
    
    /* Fondos equilibrados y degradados */
    --bg-body: #F4F7FB; 
    --bg-white: #FFFFFF;
    --bg-footer: #EBF1F6;
    --gradient-cards: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);
    --gradient-banner: linear-gradient(135deg, #0066CC 0%, #00B4D8 100%);
    
    /* Textos */
    --text-main: #1E293B;  
    --text-muted: #475569; 
    --text-light: #64748B; 
    --border-soft: #E2E8F0;
    
    /* Sombras Interactivas */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 20px 40px rgba(0, 102, 204, 0.12);
    --shadow-glow: 0 8px 25px rgba(0, 102, 204, 0.25);
    
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Curvas de animación avanzadas */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-body); color: var(--text-main); line-height: 1.65; overflow-x: hidden; }

/* --- ESTILOS DEL SISTEMA SPA (PESTAÑAS) --- */
.view-section { display: none; animation: fadeInTab 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.view-section.active-view { display: block; }
@keyframes fadeInTab { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

body.single-view-mode .view-section { padding-top: 10rem; min-height: 65vh; }
body.single-view-mode #inicio { padding-top: 12rem; }

/* --- ANIMACIONES Y MICRO-INTERACCIONES --- */
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-12px); } 100% { transform: translateY(0px); } }
@keyframes float-alt { 0% { transform: translateY(0px); } 50% { transform: translateY(-8px); } 100% { transform: translateY(0px); } }
@keyframes pulse-glow { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

.reveal { opacity: 0; transform: translateY(30px); transition: var(--transition-smooth); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* --- NAVBAR --- */
header {
    background-color: rgba(255, 255, 255, 0.90); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-soft); position: fixed; width: 100%; top: 0; z-index: 1000; transition: var(--transition-smooth);
}
header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.03); padding: 2px 0; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 5%; max-width: 1280px; margin: 0 auto; transition: var(--transition-smooth); }
.logo-container { display: flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer; }
.logo-img { height: 46px; object-fit: contain; }
.logo-text { font-size: 1.35rem; font-weight: 800; color: var(--primary-blue); line-height: 1; letter-spacing: -0.5px; }
.logo-text span { color: var(--secondary-cyan); }
.logo-sub { font-size: 0.65rem; color: var(--text-light); font-weight: 700; letter-spacing: 0.5px; margin-top: 3px;}

.nav-links { list-style: none; display: flex; gap: 2.2rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 0.95rem; transition: var(--transition-smooth); position: relative; padding: 0.3rem 0; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.nav-links a i { font-size: 1.05rem; color: var(--secondary-cyan); transition: var(--transition-smooth); }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 50%; transform: translateX(-50%); background-color: var(--primary-blue); transition: var(--transition-smooth); }
.nav-links a:hover, .nav-links a.active-link { color: var(--primary-blue); }
.nav-links a:hover i, .nav-links a.active-link i { color: var(--primary-blue); }
.nav-links a:hover::after, .nav-links a.active-link::after { width: 100%; }

.btn-campus {
    background-color: var(--bg-white); color: var(--primary-blue); padding: 0.6rem 1.6rem; border-radius: 50px; font-size: 0.9rem; font-weight: 700;
    border: 2px solid var(--border-soft); cursor: pointer; display: flex; align-items: center; gap: 8px; transition: var(--transition-bounce);
}
.btn-campus i { transition: var(--transition-smooth); font-size: 1.1rem; }
.btn-campus:hover { border-color: var(--primary-blue); background-color: var(--bg-body); transform: translateY(-3px); }
.btn-campus:hover i { transform: rotate(-10deg) scale(1.1); }

/* --- HERO SECTION --- */
.hero { padding: 12rem 5% 8rem; background-color: var(--bg-body); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -10%; left: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(0,180,216,0.15) 0%, rgba(0,180,216,0) 70%); border-radius: 50%; filter: blur(40px); animation: drift 10s infinite alternate ease-in-out; z-index: 0; }
.hero::after { content: ''; position: absolute; bottom: -10%; right: -5%; width: 700px; height: 700px; background: radial-gradient(circle, rgba(0,102,204,0.12) 0%, rgba(0,102,204,0) 70%); border-radius: 50%; filter: blur(50px); animation: drift 12s infinite alternate-reverse ease-in-out; z-index: 0; }
@keyframes drift { 0% { transform: translate(0px, 0px) scale(1); } 100% { transform: translate(30px, -40px) scale(1.1); } }

.hero-container { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.badge-hero { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.9); color: var(--primary-blue); padding: 0.6rem 1.4rem; border-radius: 50px; font-size: 0.85rem; font-weight: 800; margin-bottom: 1.8rem; box-shadow: 0 8px 25px rgba(0, 102, 204, 0.08); transition: var(--transition-bounce); }
.hero-title { font-size: 3.8rem; font-weight: 800; color: var(--text-main); line-height: 1.15; letter-spacing: -1.5px; margin-bottom: 1.5rem; }
.hero-title span { background: var(--gradient-banner); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; background-size: 200% 200%; animation: gradient-shift 4s ease infinite; }
@keyframes gradient-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.hero-description { font-size: 1.15rem; color: var(--text-muted); font-weight: 500; margin-bottom: 2.5rem; line-height: 1.7; max-width: 550px; }
.hero-actions { display: flex; gap: 1.2rem; align-items: center; }

.btn-primary { background: var(--gradient-banner); color: var(--bg-white); padding: 1.1rem 2.2rem; border-radius: 50px; border: none; font-weight: 700; font-size: 1rem; text-decoration: none; box-shadow: 0 10px 20px rgba(0, 102, 204, 0.25); transition: var(--transition-bounce); display: inline-flex; align-items: center; gap: 10px; cursor: pointer; position: relative; overflow: hidden; }
.btn-primary::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); transform: skewX(-20deg); transition: 0.5s; }
.btn-primary:hover::after { left: 150%; }
.btn-primary i { transition: var(--transition-smooth); }
.btn-primary:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 15px 30px rgba(0, 102, 204, 0.4); }
.btn-primary:hover i { transform: translateX(5px); }

.btn-secondary { background-color: var(--bg-white); color: var(--text-main); padding: 1.1rem 2.2rem; border-radius: 50px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; text-decoration: none; transition: var(--transition-smooth); box-shadow: 0 8px 20px rgba(0,0,0,0.04); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.btn-secondary:hover { border-color: var(--primary-blue); color: var(--primary-blue); transform: translateY(-2px); box-shadow: 0 12px 25px rgba(0,0,0,0.08); background-color: var(--bg-white); }

/* --- COMPOSICIÓN VISUAL CLEAN & SOLID --- */
.hero-visual { position: relative; width: 100%; height: 500px; }
.image-main { width: 100%; height: 100%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 20px 40px rgba(0, 102, 204, 0.12); border: 8px solid var(--bg-white); position: relative; z-index: 1; }
.image-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.hero-visual:hover .image-main img { transform: scale(1.03); }

.solid-badge { position: absolute; background: var(--bg-white); padding: 1.2rem 1.8rem; border-radius: 16px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 15px; z-index: 5; transition: var(--transition-bounce); border: 1px solid var(--border-soft); }
.solid-badge:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); border-color: var(--primary-blue); }
.solid-badge.pos-1 { bottom: 30px; left: -40px; animation: float 5s ease-in-out infinite; }
.solid-badge.pos-2 { top: 40px; right: -30px; animation: float-alt 6s ease-in-out infinite; animation-delay: 1s; }
.sb-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.sb-icon.blue { background: rgba(0, 102, 204, 0.08); color: var(--primary-blue); }
.sb-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); }
.sb-text strong { display: block; font-size: 1.4rem; font-weight: 800; color: var(--text-main); line-height: 1.1; }
.sb-text span { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; display: block;}

/* --- SECCIONES GENERALES Y TÍTULOS --- */
.section { padding: 6rem 5%; max-width: 1280px; margin: 0 auto; position: relative; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
.section-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--primary-blue); font-weight: 800; font-size: 0.85rem; background: rgba(0, 102, 204, 0.08); padding: 0.5rem 1.4rem; border-radius: 50px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1.2rem; }
.section-title { font-size: 2.5rem; font-weight: 800; color: var(--text-main); line-height: 1.2; letter-spacing: -0.5px; }
.section-title span { background: var(--gradient-banner); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.divider { width: 50px; height: 4px; background: var(--primary-blue); margin: 1.5rem auto 0; border-radius: 4px; }

/* --- BANNER DE ESTADÍSTICAS --- */
.stats-banner { background: var(--gradient-banner); padding: 2.5rem 5%; color: var(--bg-white); position: relative; overflow: hidden; }
.stats-banner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M10 10h10v10H10z" fill="rgba(255,255,255,0.05)"/></svg>'); opacity: 0.5; }
.stats-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; position: relative; z-index: 1; align-items: center;}
.stat-icon-bg { font-size: 2rem; color: rgba(255, 255, 255, 0.25); margin-bottom: 0.5rem; display: block; transition: var(--transition-bounce); }
.stat-item:hover .stat-icon-bg { transform: scale(1.1) translateY(-3px); color: var(--bg-white); }
.stat-item h3 { font-size: 2.8rem; font-weight: 800; margin-bottom: 0.2rem; line-height: 1; }
.stat-item p { font-size: 0.9rem; font-weight: 600; opacity: 0.9; margin: 0; text-transform: uppercase; letter-spacing: 1px; }

/* --- METODOLOGÍA / CARACTERÍSTICAS --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.feature-card { background: var(--gradient-cards); border: 1px solid rgba(0, 102, 204, 0.08); border-radius: var(--radius-lg); padding: 3rem 2.5rem; transition: var(--transition-bounce); box-shadow: var(--shadow-card); position: relative; overflow: hidden; z-index: 1; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0,180,216,0.05) 0%, rgba(0,102,204,0.05) 100%); z-index: -1; opacity: 0; transition: var(--transition-smooth); }
.feature-card:hover { transform: translateY(-12px); box-shadow: var(--shadow-hover); border-color: rgba(0, 180, 216, 0.3); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { width: 65px; height: 65px; border-radius: 18px; background: var(--bg-white); box-shadow: 0 10px 25px rgba(0,102,204,0.1); color: var(--primary-blue); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 1.8rem; transition: var(--transition-bounce); }
.feature-card:hover .feature-icon { transform: scale(1.15) rotate(-5deg); background: var(--gradient-banner); color: var(--bg-white); }
.feature-card h3 { font-size: 1.3rem; font-weight: 800; color: var(--text-main); margin-bottom: 1rem; }
.feature-card p { color: var(--text-muted); font-size: 1rem; line-height: 1.6; margin: 0; }

/* --- CURSOS GRID --- */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.course-card { background: var(--bg-white); border-radius: var(--radius-md); padding: 2.5rem; border: 1px solid var(--border-soft); box-shadow: var(--shadow-card); transition: var(--transition-bounce); display: flex; flex-direction: column; cursor: pointer; }
.course-card:hover { transform: translateY(-12px) scale(1.02); box-shadow: var(--shadow-hover); border-color: rgba(0, 102, 204, 0.15); }
.course-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.course-badge { font-size: 0.75rem; font-weight: 700; padding: 0.4rem 1rem; border-radius: 50px; background: var(--bg-body); color: var(--text-muted); border: 1px solid var(--border-soft); display: inline-flex; align-items: center; gap: 5px; }
.course-icon { width: 55px; height: 55px; border-radius: 12px; background: rgba(0, 102, 204, 0.05); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--primary-blue); transition: var(--transition-bounce); }
.course-card:hover .course-icon { background: var(--primary-blue); color: var(--bg-white); transform: scale(1.15) rotate(5deg); box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3); }
.course-card h3 { font-size: 1.35rem; font-weight: 800; color: var(--text-main); margin-bottom: 1rem; line-height: 1.3; }
.course-topics { list-style: none; margin-bottom: 2rem; flex-grow: 1; }
.course-topics li { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.8rem; display: flex; align-items: flex-start; gap: 10px; }
.course-topics li i { color: var(--accent-green); font-size: 1.05rem; margin-top: 2px; }
.course-footer { border-top: 1px solid var(--border-soft); padding-top: 1.5rem; }
.course-link { text-decoration: none; color: var(--primary-blue); font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; transition: var(--transition-smooth); }
.course-card:hover .course-link { color: var(--secondary-cyan); gap: 12px; }

/* --- ESTRUCTURA SPLIT (Nosotros / Validador) --- */
.split-wrapper { background: var(--bg-white); border-radius: var(--radius-lg); padding: 4.5rem; box-shadow: var(--shadow-card); border: 1px solid var(--border-soft); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.split-info h3 { font-size: 2.2rem; font-weight: 800; color: var(--text-main); line-height: 1.2; margin-bottom: 1rem; }
.split-info p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; line-height: 1.7; }
.value-props { display: flex; flex-direction: column; gap: 1.5rem; }
.value-item { display: flex; gap: 15px; align-items: flex-start; transition: var(--transition-smooth); cursor: default; }
.value-item:hover { transform: translateX(10px); } 
.value-icon { width: 45px; height: 45px; border-radius: 12px; background: rgba(16, 185, 129, 0.1); color: var(--accent-green); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; transition: var(--transition-bounce); }
.value-item:hover .value-icon { background: var(--accent-green); color: var(--bg-white); transform: scale(1.1); }
.value-text h4 { font-size: 1.05rem; font-weight: 800; color: var(--text-main); margin-bottom: 4px; }
.value-text p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0; }

/* MISIÓN Y VISIÓN */
.mission-vision-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2.5rem; margin-top: 4rem; }
.mv-card { background: var(--bg-white); border-radius: var(--radius-lg); padding: 3rem; border: 1px solid var(--border-soft); box-shadow: var(--shadow-card); transition: var(--transition-bounce); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.mv-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: rgba(0, 102, 204, 0.15); }
.mv-icon { width: 60px; height: 60px; border-radius: 16px; background: rgba(0, 102, 204, 0.08); color: var(--primary-blue); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 1.5rem; transition: var(--transition-bounce); }
.mv-card:hover .mv-icon { background: var(--primary-blue); color: var(--bg-white); transform: rotate(10deg) scale(1.1); }
.mv-card h4 { font-size: 1.6rem; font-weight: 800; color: var(--text-main); margin-bottom: 1rem; }
.mv-card p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; margin: 0; }

/* --- INPUTS Y FORMULARIOS (BÁSICO) --- */
.validator-card { background: var(--bg-body); border-radius: var(--radius-md); padding: 3rem; border: 1px solid var(--border-soft); box-shadow: inset 0 2px 10px rgba(0,0,0,0.02); }
.validator-card h3 { font-size: 1.5rem; font-weight: 800; color: var(--primary-blue); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 10px;}
.validator-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; line-height: 1.6; }
.validator-form { display: flex; flex-direction: column; gap: 1rem; } 

.input-wrapper { position: relative; width: 100%; }
.input-wrapper i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-light); transition: var(--transition-smooth); z-index: 2; pointer-events: none; font-size: 0.9rem;}

/* Inputs optimizados (Clean UI y más anchos) */
.validator-input { 
    width: 100%; 
    padding: 0.85rem 1rem 0.85rem 2.2rem; 
    border-radius: 8px; 
    border: 2px solid var(--border-soft); 
    background: var(--bg-white); 
    color: var(--text-main); 
    font-size: 0.9rem; 
    outline: none; 
    transition: var(--transition-smooth); 
}
.validator-input:focus { border-color: var(--primary-blue); box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1); }
.validator-input:focus + i, .input-wrapper:focus-within i { color: var(--primary-blue); }
select.validator-input { appearance: none; cursor: pointer; color: var(--text-muted); }
select.validator-input:focus { color: var(--text-main); }

.btn-validate { background: var(--gradient-banner); color: var(--bg-white); border: none; padding: 1rem; border-radius: 8px; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: var(--transition-bounce); display: flex; justify-content: center; align-items: center; gap: 8px; box-shadow: var(--shadow-glow); }
.btn-validate i { transition: var(--transition-smooth); }
.btn-validate:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,102,204,0.3); }
.btn-validate:hover i { transform: scale(1.2); }

/* --- ESTILOS DE AUTENTICACIÓN --- */
.auth-divider { display: flex; align-items: center; text-align: center; margin: 1.2rem 0 0.5rem; color: var(--text-light); font-size: 0.8rem; font-weight: 600; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border-soft); }
.auth-divider::before { margin-right: 15px; }
.auth-divider::after { margin-left: 15px; }

.btn-google { background-color: var(--bg-white); color: var(--text-main); border: 2px solid var(--border-soft); padding: 0.9rem; border-radius: 8px; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: var(--transition-smooth); display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; margin-top: 0.5rem; }
.btn-google:hover { border-color: var(--primary-blue); background-color: var(--bg-body); transform: translateY(-2px); }
.btn-google svg { width: 18px; height: 18px; margin-right: 4px; }

.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.auth-footer a { color: var(--primary-blue); font-weight: 700; text-decoration: none; transition: var(--transition-smooth); margin-left: 5px; }
.auth-footer a:hover { color: var(--secondary-cyan); text-decoration: underline; }

/* Grid para el Formulario de Registro Largo */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; } 
.form-grid .full-width { grid-column: span 2; }
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .full-width { grid-column: span 1; }
}

/* --- MODAL CAMPUS VIRTUAL (VENTANA FLOTANTE MEJORADA Y MÁS ANCHA) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 2000; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
    padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    width: 100%; max-width: 1100px; /* Aumentado para dar respiro a los campos */
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    position: relative;
    transform: translateY(30px) scale(0.95); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden; 
    display: flex;
    max-height: 95vh;
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }

/* Botón cerrar rediseñado e integrado */
.btn-close-modal {
    position: absolute; top: 15px; right: 15px; 
    background: transparent; color: var(--text-muted); border: none;
    width: 35px; height: 35px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 1.4rem; cursor: pointer; z-index: 10; transition: var(--transition-smooth);
}
.btn-close-modal:hover { background: rgba(239, 68, 68, 0.1); color: #ef4444; transform: rotate(90deg); }

/* Proporción ajustada: Más espacio para el formulario (62%) que para el panel azul (38%) */
.auth-split { display: grid; grid-template-columns: 0.75fr 1.25fr; width: 100%; margin: 0; padding: 0; border: none; box-shadow: none; border-radius: 0; align-items: stretch;}
.auth-info-panel { padding: 3rem 2.5rem; background: var(--gradient-banner); color: var(--bg-white); display: flex; flex-direction: column; justify-content: center; }
.auth-form-panel { padding: 3rem 2.5rem; background: var(--bg-white); position: relative; overflow-y: auto; } 
.auth-form-panel::-webkit-scrollbar { width: 6px; }
.auth-form-panel::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 10px; }

.auth-view { display: none; animation: fadeInForm 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.auth-view.active-form { display: flex; flex-direction: column; justify-content: center; min-height: 100%;}


/* --- COMBOS ESTUDIANTILES --- */
.combos-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; max-width: 900px; margin: 0 auto; }
.pricing-card { background: var(--bg-white); border-radius: var(--radius-lg); padding: 3.5rem 2.5rem; border: 1px solid var(--border-soft); box-shadow: var(--shadow-card); transition: var(--transition-bounce); display: flex; flex-direction: column; position: relative; }
.pricing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.pricing-card.popular { border: 2px solid var(--primary-blue); transform: scale(1.03); box-shadow: 0 15px 35px rgba(0, 102, 204, 0.12); }
.pricing-card.popular:hover { transform: scale(1.05) translateY(-5px); box-shadow: 0 20px 45px rgba(0, 102, 204, 0.2); }
.popular-badge { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: var(--gradient-banner); color: var(--bg-white); font-weight: 800; font-size: 0.8rem; padding: 0.5rem 1.5rem; border-radius: 50px; letter-spacing: 1px; box-shadow: var(--shadow-glow); animation: float 4s ease-in-out infinite; display: flex; align-items: center; gap: 6px;}
.pricing-header h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--text-main); }
.pricing-card.popular .pricing-header h3 { color: var(--primary-blue); }
.pricing-sub { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 2rem; display: flex; align-items: center; gap: 8px;}
.pricing-features { list-style: none; margin-bottom: 2.5rem; flex-grow: 1; }
.pricing-features li { font-size: 0.95rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 12px; color: var(--text-main); font-weight: 500; }
.pricing-features li i { color: var(--primary-blue); font-size: 1.1rem; background: rgba(0, 102, 204, 0.1); padding: 6px; border-radius: 50%; }
.btn-plan { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 1.1rem; border-radius: 50px; font-weight: 700; font-size: 0.95rem; text-decoration: none; transition: var(--transition-bounce); }
.btn-plan-outline { background: var(--bg-white); color: var(--text-main); border: 2px solid var(--border-soft); }
.btn-plan-outline:hover { border-color: var(--primary-blue); color: var(--primary-blue); transform: translateY(-3px); }
.btn-plan-solid { background: var(--gradient-banner); color: var(--bg-white); box-shadow: var(--shadow-glow); }
.btn-plan-solid:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 25px rgba(0, 102, 204, 0.35); }

/* --- DOCUMENTOS LEGALES --- */
.legal-document { background: var(--bg-white); padding: 4rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); border: 1px solid var(--border-soft); max-width: 900px; margin: 0 auto; }
.legal-document h3 { font-size: 1.4rem; color: var(--primary-blue); margin-top: 2.5rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 12px; font-weight: 800;}
.legal-document h3 i { font-size: 1.6rem; color: var(--secondary-cyan); }
.legal-document h3:first-child { margin-top: 0; }
.legal-document p { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.8; }
.legal-document ul { margin-left: 1.5rem; margin-bottom: 1.5rem; color: var(--text-muted); }
.legal-document li { margin-bottom: 0.8rem; line-height: 1.7; padding-left: 8px;}
.legal-document li::marker { color: var(--primary-blue); font-weight: bold; }
.legal-links-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 4rem; }
.legal-card { background: var(--bg-body); border-radius: var(--radius-md); padding: 2.5rem 2rem; border: 1px solid var(--border-soft); box-shadow: inset 0 2px 10px rgba(0,0,0,0.02); text-decoration: none; color: var(--text-main); transition: var(--transition-bounce); display: flex; flex-direction: column; align-items: center; text-align: center; }
.legal-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--primary-blue); background: var(--bg-white); }
.legal-card i { font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 1.2rem; transition: var(--transition-smooth); background: rgba(0, 102, 204, 0.1); padding: 15px; border-radius: 50%; }
.legal-card:hover i { transform: scale(1.1); color: var(--secondary-cyan); background: rgba(0, 180, 216, 0.1); }
.legal-card h4 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.8rem; }
.legal-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* --- BOTÓN FLOTANTE WHATSAPP --- */
.fab-whatsapp { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; border-radius: 50%; background-color: #25D366; color: white; display: flex; align-items: center; justify-content: center; font-size: 2rem; text-decoration: none; z-index: 1000; box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3); transition: var(--transition-bounce); animation: pulse-glow 2s infinite; }
.fab-whatsapp:hover { transform: scale(1.15) rotate(-10deg); background-color: #128C7E; animation: none; }

/* --- FOOTER ULTRA COMPACTO --- */
footer { background-color: var(--bg-footer); color: var(--text-main); padding: 1.5rem 5% 0.8rem; border-top: 1px solid var(--border-soft); }
.footer-grid { max-width: 1280px; margin: 0 auto 1rem; display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 1.5rem; }
.footer-brand img { height: 35px; margin-bottom: 0.5rem; transition: var(--transition-smooth); } 
.footer-brand img:hover { transform: scale(1.05); }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.4; max-width: 320px; font-weight: 500; } 
.footer-column h4 { font-size: 1rem; font-weight: 800; color: var(--text-main); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 8px;} 
.footer-column h4 i { color: var(--primary-blue); }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.4rem; } 
.footer-column a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: var(--transition-smooth); display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.footer-column a i.fa-angle-right { font-size: 0.8rem; color: var(--primary-blue); }
.footer-column a:hover { color: var(--primary-blue); transform: translateX(5px); }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 0.8rem; border-top: 1px solid rgba(0, 0, 0, 0.05); display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text-light); font-weight: 500; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .hero-description { margin: 0 auto 2.5rem; }
    .hero-actions { justify-content: center; }
    .hero-visual { height: 400px; margin-top: 2rem; }
    .solid-badge.pos-1 { left: 10px; bottom: 10px; }
    .solid-badge.pos-2 { right: 10px; top: 10px; }
    .split-wrapper { grid-template-columns: 1fr; padding: 3rem 2.5rem; gap: 3rem; }
    .mission-vision-wrapper { grid-template-columns: 1fr; gap: 2rem; }
    .combos-wrapper { grid-template-columns: 1fr; }
    .pricing-card.popular { transform: scale(1); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .legal-document { padding: 2.5rem; }
    .legal-links-wrapper { grid-template-columns: 1fr; }
    
    /* Modal responsive */
    .auth-split { grid-template-columns: 1fr; }
    .modal-content { flex-direction: column; overflow-y: auto; }
    .auth-info-panel { padding: 2rem; display: none; } 
    .auth-form-panel { padding: 2.5rem 1.5rem; overflow-y: visible;}
}

/* ==========================================================================
   MENÚ HAMBURGUESA (móvil)
   ========================================================================== */

.menu-toggle {
    display: none;               /* oculto en desktop */
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.menu-toggle:hover {
    background: var(--bg-body);
}

@media (max-width: 768px) {

    /* Mostrar botón hamburguesa */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* El ul se convierte en panel desplegable */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        gap: 0.5rem;
        padding: 5rem 1.5rem 1.5rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        display: flex;              /* ¡ya no display:none! */
        overflow-y: auto;
        align-items: stretch;
    }

    .nav-links.mobile-open {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        padding: 1rem 1.2rem;
        border-radius: 8px;
        font-size: 1rem;
        border: 1px solid transparent;
    }

    .nav-links a:hover,
    .nav-links a.active-link {
        background: rgba(0, 102, 204, 0.06);
        border-color: rgba(0, 102, 204, 0.1);
    }

    .nav-links a::after {
        display: none;              /* quitar subrayado animado en móvil */
    }

    /* Botón Campus a lo ancho */
    .nav-links .btn-campus {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }

    /* Overlay oscuro detrás del menú */
    .nav-links::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(15, 23, 42, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        z-index: -1;
    }

    .nav-links.mobile-open::before {
        opacity: 1;
        visibility: visible;
    }

    /* Otros ajustes responsivos que ya tenías */
    .hero { padding-top: 8rem; padding-bottom: 4rem; }
    .hero-title { font-size: 2.5rem; }
    .section { padding: 4rem 5%; }
    .stats-banner { padding: 3rem 5%; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .footer-brand p { margin: 0 auto; }
    .footer-column h4 { justify-content: center; }
    .footer-column a { justify-content: center; }
    .footer-column li { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .fab-whatsapp { width: 50px; height: 50px; font-size: 1.5rem; bottom: 20px; right: 20px; }
    .legal-document { padding: 1.5rem; }
    .mv-card { padding: 2rem; }
}