/* --- VARIABLES DE MARCA --- */
:root {
    --primary: #512978;
    --accent: #FFDF12;
    --blue-brand: #264D7E;
    --secondary: #1a1a2e;
    --bg-light: #f8f9fa;
    --text-main: #212529;
    --text-muted: #6c757d;
    --font-head: 'League Spartan', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: white;
    color: var(--text-main);
    line-height: 1.6;
    /* Eliminado overflow-x: hidden y height: 100% que rompían ScrollReveal */
}

h1, h2, h3, h4 { 
    font-family: var(--font-head); 
    text-transform: uppercase; 
    font-weight: 800; 
    letter-spacing: -0.5px;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.highlight { color: var(--accent); }
.text-center { text-align: center; }

/* --- NAVBAR --- */
.navbar {
    background-color: var(--primary);
    position: sticky; top: 0; z-index: 1000;
    padding: 10px 0;
    border-bottom: 5px solid var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 45px; width: auto; display: block; }
.nav-links { list-style: none; display: flex; gap: 25px; align-items: center; }
.nav-links a { text-decoration: none; color: white; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }
.menu-toggle { display: none; }

/* --- BOTONES --- */
.btn {
    display: inline-block; padding: 12px 30px; border-radius: 4px;
    text-decoration: none; font-weight: 800; transition: 0.3s;
    font-family: var(--font-head); text-transform: uppercase; font-size: 0.9rem;
    cursor: pointer; border: none;
}
.btn-primary { background-color: var(--accent); color: var(--primary); }
.btn-primary:hover { background-color: white; color: var(--primary); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.btn-outline { border: 2px solid var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background-color: var(--accent); color: var(--primary); }
.btn-nav { padding: 8px 20px !important; font-size: 0.75rem; border-radius: 50px; }

/* --- HERO DINÁMICO --- */
.hero {
    /* ATENCIÓN: Revisá que el archivo en tu repo de GitHub se llame EXACTAMENTE "fondo.png" (respetando mayúsculas y minúsculas) */
    background: linear-gradient(135deg, rgba(38, 77, 126, 0.6), rgba(81, 41, 120, 0.6)), 
                url('fondo.png'); 
    background-size: cover;       
    background-position: center;  
    background-attachment: fixed; /* Efecto Parallax */
    min-height: 90vh; 
    display: flex; 
    align-items: center; 
    text-align: center; 
    color: white;
    padding: 60px 0;
}
.hero-content { margin: 0 auto; max-width: 800px; }
.badge { background: rgba(255, 223, 18, 0.2); color: var(--accent); border: 1px solid var(--accent); padding: 6px 15px; font-size: 0.75rem; font-weight: 700; border-radius: 4px; display: inline-block; margin-bottom: 20px; }
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; text-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.hero p { font-size: 1.2rem; margin-bottom: 35px; color: #f0f0f0; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.hero-btns { display: flex; gap: 15px; justify-content: center; }

/* --- SECCIONES GENERALES --- */
.section { padding: 80px 0; }
.section-title { font-size: 2.5rem; margin-bottom: 15px; text-align: center; color: var(--primary); }
.subtitle { color: var(--text-muted); margin-bottom: 50px; font-size: 1.1rem; }
.bg-light { background-color: var(--bg-light); }
.bg-dark-brand { background-color: var(--blue-brand); color: white; }
.bg-dark-brand .section-title { color: white; }

/* --- CARDS (Plan y Apoyo) --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card {
    background: white; padding: 40px 30px; border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center;
    border-top: 5px solid var(--primary); transition: 0.3s; height: 100%;
}
.card-accent { border-top-color: var(--accent); }
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.icon-box { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; transition: 0.3s; }
.card:hover .icon-box { transform: scale(1.1); }

/* --- LISTAS DE PROPUESTAS --- */
.propuesta-list { list-style: none; padding: 0; margin-top: 20px; text-align: left; }
.propuesta-list li { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #eee; font-size: 0.95rem; }
.propuesta-list li:last-child { border-bottom: none; }
.check-icon { color: var(--accent); margin-right: 10px; width: 20px; }

/* --- MANIFIESTO (Quiénes Somos) --- */
.manifesto-box { background: white; border-left: 6px solid var(--primary); padding: 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); border-radius: 0 8px 8px 0; }
.valores-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 25px; }
.valor-item { text-align: center; padding: 15px; background: var(--bg-light); border-radius: 6px; font-weight: 700; color: var(--primary); font-family: var(--font-head); text-transform: uppercase; font-size: 0.8rem; transition: 0.3s; }
.valor-item:hover { background: var(--accent); }

/* --- CALENDARIO DE VISITAS --- */
.calendar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; max-width: 1000px; margin: 0 auto; }
.month-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; overflow: hidden; text-align: left; transition: 0.3s; }
.month-card:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-5px); }
.month-header { background: var(--accent); color: var(--primary); font-weight: 800; font-size: 0.85rem; padding: 8px 12px; text-transform: uppercase; }
.visit-list { padding: 12px; }
.visit-item { margin-bottom: 10px; font-size: 0.85rem; line-height: 1.3; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; }
.visit-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.visit-item strong { display: block; color: white; font-weight: 700; }
.visit-item small { color: #bbb; font-size: 0.75rem; }

/* --- FORMULARIO DE INSCRIPCIÓN --- */
.form-container { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; max-width: 600px; margin: 40px auto 0; padding: 30px; }

/* --- EQUIPO --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 40px; }
.team-member { text-align: center; padding: 30px 20px; background: white; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; }
.team-member:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-bottom: 3px solid var(--accent); }
.team-member h4 { font-size: 1.2rem; margin-bottom: 5px; color: var(--text-main); }
.role { font-weight: 700; color: var(--primary); font-size: 0.9rem; }
.career { font-size: 0.85rem; color: var(--text-muted); }

/* --- FOOTER --- */
footer { background: #0f0f1a; color: #aaa; padding: 60px 0 30px; text-align: center; border-top: 5px solid var(--accent); }
.logo-footer { color: white; font-size: 1.8rem; margin-bottom: 15px; font-family: var(--font-head); font-weight: 800; }
.social-icons a { color: white; font-size: 1.5rem; margin: 0 10px; transition: 0.3s; background: rgba(255,255,255,0.1); width: 45px; height: 45px; line-height: 45px; border-radius: 50%; display: inline-block; }
.social-icons a:hover { background: var(--accent); color: var(--primary); transform: scale(1.1); }

/* --- RESPONSIVE (MÓVILES) --- */
@media (max-width: 768px) {
    .menu-toggle { display: block; color: white; font-size: 1.5rem; cursor: pointer; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; flex-direction: column; background: var(--primary); padding: 20px; gap: 15px; border-bottom: 3px solid var(--accent); }
    .nav-links.active { display: flex; }
    .hero { background-attachment: scroll; } 
    .hero h1 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; }
    .calendar-grid { grid-template-columns: 1fr 1fr; }
    .valores-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .calendar-grid { grid-template-columns: 1fr; }
}

/* --- FALLBACK DE SEGURIDAD PARA JS ROTO --- */
/* Si el javascript llega a fallar o trabarse, esto fuerza a que los elementos sean visibles siempre */
html.sr .reveal {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}
