/* =============================================
   SOMOS LIBRES FIUBA — Global Stylesheet v2.0
   ============================================= */

/* --- 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;

    /* Navbar glassmorphism */
    --nav-bg-scroll: rgba(18, 14, 32, 0.82);
    --nav-bg-top: rgba(18, 14, 32, 0.30);
    --nav-blur: 18px;
    --nav-border: rgba(255, 223, 18, 0.18);
}

/* --- RESET & BASE --- */
*, *::before, *::after { 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;
}

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 — Glassmorphism sticky con scroll effect
   ================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    background: var(--nav-bg-top);
    backdrop-filter: blur(var(--nav-blur));
    -webkit-backdrop-filter: blur(var(--nav-blur));
    border-bottom: 1px solid var(--nav-border);
    transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

/* Estado al hacer scroll: más oscuro */
.navbar.scrolled {
    background: var(--nav-bg-scroll);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    padding: 7px 0;
    border-bottom-color: rgba(255, 223, 18, 0.30);
}

/* En páginas sin hero (departamentos, grupos, mapa, planes) arranca oscuro */
.navbar.no-hero {
    background: var(--nav-bg-scroll) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-img { height: 42px; width: auto; display: block; }

/* Links desktop */
.nav-links {
    list-style: none;
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 6px 9px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent);
    background: rgba(255, 223, 18, 0.08);
}

.nav-links a.active {
    color: var(--accent);
}

/* Botón "Sumate" en navbar */
.btn-nav-cta {
    background: var(--accent) !important;
    color: #1a1c2a !important;
    padding: 7px 16px !important;
    border-radius: 50px !important;
    font-weight: 900 !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.06em;
    transition: transform 0.2s, box-shadow 0.2s !important;
}
.btn-nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 18px rgba(255, 223, 18, 0.45) !important;
    background: var(--accent) !important;
    color: #1a1c2a !important;
}

/* Social icons en nav */
.nav-social {
    display: flex;
    align-items: center;
    gap: 2px;
}
.nav-social a {
    font-size: 1rem !important;
    padding: 6px 8px !important;
}

/* Hamburger */
.menu-toggle {
    display: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}
.menu-toggle:hover { background: rgba(255,255,255,0.12); }

/* ================================================
   BOTONES GLOBALES
   ================================================ */
.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); }

/* ================================================
   HERO
   ================================================ */
.hero {
    background: linear-gradient(135deg, rgba(38,77,126,0.72), rgba(81,41,120,0.72)),
                url('fondo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 70px; /* espacio para navbar fixed */
    position: relative;
    color: white;
}

.hero-content {
    margin: 0 auto;
    max-width: 800px;
    text-align: center;
    padding: 0 20px;
}

.badge {
    background: rgba(255,223,18,0.18);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 6px 15px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.08;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: rgba(255,255,255,0.88);
    text-shadow: 0 2px 5px rgba(0,0,0,0.45);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================================
   ECOSISTEMA BAR (sobre el hero, antes del texto)
   ================================================ */
.eco-bar {
    width: 100%;
    padding: 28px 20px 22px;
}

.eco-label {
    text-align: center;
    font-family: var(--font-head);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin: 0 0 14px;
    font-weight: 800;
    opacity: 0.85;
}

.eco-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 1100px;
    margin: 0 auto;
}

.eco-item {
    text-decoration: none;
    flex: 1 1 88px;
    max-width: 125px;
    min-width: 72px;
}

.eco-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    padding: 11px 7px;
    text-align: center;
    transition: background 0.22s, border-color 0.22s, transform 0.22s;
    height: 100%;
}

.eco-item:hover .eco-card {
    background: rgba(111,163,239,0.18);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.eco-item.eco-cta .eco-card {
    background: rgba(245,200,0,0.13);
    border-color: rgba(245,200,0,0.55);
}

.eco-item.eco-cta:hover .eco-card {
    background: rgba(245,200,0,0.26);
    border-color: var(--accent);
}

.eco-icon { font-size: 1.15rem; margin-bottom: 5px; }

.eco-label-text {
    font-family: var(--font-head);
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
    line-height: 1.3;
}

.eco-item.eco-cta .eco-label-text { color: var(--accent); }

/* ================================================
   SECCIONES GENERALES
   ================================================ */
.section { padding: 80px 0; }
.section-title { font-size: 2.2rem; margin-bottom: 15px; text-align: center; color: var(--primary); }
.subtitle { color: var(--text-muted); margin-bottom: 50px; font-size: 1.05rem; text-align: center; }
.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 / GRIDS
   ================================================ */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.card {
    background: white;
    padding: 38px 28px;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
    text-align: center;
    border-top: 5px solid var(--primary);
    transition: transform 0.28s, box-shadow 0.28s;
    height: 100%;
}

.card-accent { border-top-color: var(--accent); }
.card:hover { transform: translateY(-8px); box-shadow: 0 16px 36px rgba(0,0,0,0.11); }

.icon-box {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 18px;
    transition: transform 0.28s;
    display: block;
}
.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: 14px; padding-bottom: 14px; border-bottom: 1px solid #eee; font-size: 0.92rem; }
.propuesta-list li:last-child { border-bottom: none; }
.check-icon { color: var(--accent); margin-right: 10px; width: 18px; }

/* ================================================
   IDENTIDAD / MANIFIESTO
   ================================================ */
.manifesto-box {
    background: white;
    border-left: 6px solid var(--primary);
    padding: 32px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    border-radius: 0 10px 10px 0;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.valor-item {
    text-align: center;
    padding: 14px;
    background: var(--bg-light);
    border-radius: 8px;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 0.78rem;
    transition: background 0.25s, color 0.25s;
}
.valor-item:hover { background: var(--accent); color: var(--primary); }

/* ================================================
   VISITAS / CALENDARIO
   ================================================ */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    max-width: 1000px;
    margin: 0 auto;
}

.month-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    transition: background 0.25s, transform 0.25s;
}
.month-card:hover { background: rgba(255,255,255,0.11); transform: translateY(-4px); }
.month-header { background: var(--accent); color: var(--primary); font-weight: 800; font-size: 0.8rem; padding: 8px 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.visit-list { padding: 12px; }
.visit-item { margin-bottom: 10px; font-size: 0.82rem; line-height: 1.35; border-bottom: 1px solid rgba(255,255,255,0.08); 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.72rem; }

.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: 28px auto 0;
    padding: 24px;
    text-align: center;
}

/* ================================================
   EQUIPO
   ================================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px;
    margin-top: 38px;
}
.team-member {
    text-align: center;
    padding: 28px 18px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: transform 0.25s, box-shadow 0.25s, border-bottom 0.25s;
    border-bottom: 3px solid transparent;
}
.team-member:hover { transform: translateY(-5px); box-shadow: 0 10px 26px rgba(0,0,0,0.1); border-bottom-color: var(--accent); }
.team-member h4 { font-size: 1.1rem; margin-bottom: 5px; color: var(--text-main); }
.role { font-weight: 700; color: var(--primary); font-size: 0.88rem; }
.career { font-size: 0.82rem; color: var(--text-muted); }

/* ================================================
   FOOTER
   ================================================ */
footer {
    background: #0f0f1a;
    color: #aaa;
    padding: 60px 0 30px;
    text-align: center;
    border-top: 4px solid var(--accent);
}
.logo-footer { color: white; font-size: 1.7rem; margin-bottom: 14px; font-family: var(--font-head); font-weight: 800; }
.social-icons a {
    color: white;
    font-size: 1.4rem;
    margin: 0 8px;
    transition: 0.28s;
    background: rgba(255,255,255,0.08);
    width: 44px;
    height: 44px;
    line-height: 44px;
    border-radius: 50%;
    display: inline-block;
}
.social-icons a:hover { background: var(--accent); color: var(--primary); transform: scale(1.1); }

/* ================================================
   GRUPOS / BUSCADOR
   ================================================ */
.search-container {
    margin-bottom: 36px;
    display: flex;
    justify-content: center;
}
#groupSearch {
    width: 100%;
    max-width: 480px;
    padding: 14px 22px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 50px;
    transition: border-color 0.25s, box-shadow 0.25s;
    font-family: var(--font-body);
}
#groupSearch:focus { outline: none; border-color: var(--primary); box-shadow: 0 4px 14px rgba(81,41,120,0.15); }
.grid-groups {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.card-hidden { display: none !important; }

/* ================================================
   PÁGINAS INTERNAS — page-header
   ================================================ */
.page-header {
    background: linear-gradient(135deg, rgba(38,77,126,0.88), rgba(81,41,120,0.88)),
                url('fondo.png');
    background-size: cover;
    background-position: center;
    padding: 120px 0 60px;
    text-align: center;
    color: white;
}
.page-header h1 { font-size: 2.8rem; margin-bottom: 12px; text-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.page-header p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ================================================
   RESPONSIVE — MOBILE FIRST
   ================================================ */

/* Tablet */
@media (max-width: 900px) {
    .nav-links {
        gap: 2px;
    }
    .nav-links a {
        font-size: 0.66rem;
        padding: 5px 7px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Hamburger */
    .menu-toggle { display: flex; align-items: center; justify-content: center; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(18, 10, 30, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 16px 20px 20px;
        gap: 4px;
        border-bottom: 2px solid var(--accent);
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .nav-links.active { display: flex; }
    .nav-links a { font-size: 0.82rem; padding: 10px 12px; border-radius: 6px; }
    .nav-links a:hover { background: rgba(255,223,18,0.1); }
    .btn-nav-cta { text-align: center; }

    /* Hero */
    .hero { background-attachment: scroll; padding-top: 60px; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .hero-btns { flex-direction: column; align-items: center; }

    /* GRIDS — máx 2 columnas en mobile */
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .grid-groups {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Ecosistema */
    .eco-grid { gap: 6px; }
    .eco-item { min-width: 68px; max-width: 110px; }

    .section { padding: 56px 0; }
    .section-title { font-size: 1.8rem; }
    .page-header h1 { font-size: 2rem; }
    .page-header { padding: 100px 0 48px; }
}

/* Phones pequeños */
@media (max-width: 480px) {
    .grid-3 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .card { padding: 22px 16px; }
    .grid-groups { grid-template-columns: 1fr; }
    .calendar-grid { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 1.9rem; }
    .valores-grid { grid-template-columns: 1fr; }
}

/* ================================================
   SCROLLREVEAL FALLBACK
   ================================================ */
html.sr .reveal {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}