:root {
    /* Paleta Oficial SOAICC */
    --verde-soaicc: #1E824C; 
    --vino-soaicc: #632A33;  
    --madera-soaicc: #90533C; 
    --fondo-claro: #F4F7F9; 
    --texto-oscuro: #1E293B; 
    --texto-gris: #64748B;
    --blanco: #FFFFFF;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--fondo-claro); }
::-webkit-scrollbar-thumb { background: var(--verde-soaicc); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--vino-soaicc); }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--fondo-claro);
    color: var(--texto-oscuro);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, .nav-item, .footer-title, .badge, .full-title-bar {
    font-family: 'Montserrat', sans-serif;
}

/* === 1. TOP NAVBAR (NUEVO DISEÑO ARRIBA) === */
.top-navbar {
    background-color: var(--verde-soaicc);
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-bottom: 4px solid var(--madera-soaicc);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer; 
    transition: transform 0.3s ease; 
}

.nav-brand:hover {
    transform: scale(1.02); 
}

.nav-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    border: 2px solid var(--blanco);
    background-color: var(--blanco);
    padding: 2px;
    object-fit: contain;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.brand-titles h2 {
    color: var(--blanco);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.1;
}

.brand-titles p {
    color: var(--blanco);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Menú Horizontal */
.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-item {
    background: transparent;
    border: none;
    color: var(--blanco);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item i {
    font-size: 1.1rem;
    opacity: 0.9;
}

.nav-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.15);
}

.nav-item.active {
    background: var(--blanco);
    color: var(--verde-soaicc);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-item.logout-btn {
    background: var(--vino-soaicc);
    margin-left: 10px;
}

.nav-item.logout-btn:hover {
    background: #7d3540;
}

#menu-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: var(--blanco);
    font-size: 1.8rem;
    cursor: pointer;
}

/* === 2. SUB-CABECERA === */
.full-title-bar {
    background-color: var(--blanco);
    text-align: center;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.full-title-bar h1 {
    color: var(--vino-soaicc);
    font-size: 1.2rem;
    font-weight: 700;
}

/* === 3. CONTENIDO PRINCIPAL === */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pages-container {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page-section {
    display: none;
    animation: slideUpFade 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.page-section.active {
    display: block;
}

.section-title {
    color: var(--verde-soaicc);
    margin-bottom: 30px;
    padding-left: 18px;
    border-left: 6px solid var(--vino-soaicc);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-banner {
    background: linear-gradient(135deg, var(--verde-soaicc) 0%, #135532 100%);
    color: var(--blanco);
    padding: 70px 40px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 50px;
    box-shadow: 0 15px 35px rgba(30, 130, 76, 0.25);
    position: relative;
    overflow: hidden;
    transition: all 0.6s ease; 
}

.hero-banner h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.hero-banner p {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.salones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card-info, .info-card {
    background: var(--blanco);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    border-top: 4px solid var(--verde-soaicc);
    transition: all 0.3s ease;
}

.card-info:hover, .info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.card-icon, .contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(30, 130, 76, 0.08);
    color: var(--verde-soaicc);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card-info:hover .card-icon {
    background: var(--verde-soaicc);
    color: var(--blanco);
    transform: rotate(-10deg) scale(1.1);
}

.card-info h3, .info-card h3 {
    color: var(--vino-soaicc);
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 700;
}

.highlight-text {
    font-size: 1.1rem;
    color: var(--verde-soaicc);
    margin-bottom: 15px;
}

.highlight-text i { margin-right: 8px; }
.text-muted { color: var(--texto-gris); font-size: 0.95rem; }

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.badge {
    background: var(--vino-soaicc);
    color: var(--blanco);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}
.contact-icon { margin-bottom: 0; flex-shrink: 0; }

.divisor {
    border: 0; height: 1px;
    background: linear-gradient(to right, rgba(0,0,0,0.05), rgba(0,0,0,0.1), rgba(0,0,0,0.05));
    margin: 30px 0;
}

.heyzine-wrapper { padding: 25px; }
.intro-text { margin-bottom: 25px; font-weight: 500; font-size: 1.1rem; }
.heyzine-container {
    position: relative; width: 100%; min-height: 600px;
    background: #fcfcfc; border-radius: 12px; overflow: hidden;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.05);
}

/* === 4. FOOTER INSTITUCIONAL === */
.main-footer {
    background-color: #0B2918 !important;
    color: #94A3B8 !important; 
    padding: 50px 30px 30px 30px;
    text-align: center;
    border-top: 5px solid var(--verde-soaicc);
    width: 100%;
}

.footer-content {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.95rem;
}

.footer-title {
    font-weight: 800;
    color: var(--blanco) !important;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.privacy-link {
    color: var(--blanco) !important;
    text-decoration: underline;
    text-underline-offset: 4px;
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.privacy-link:hover { color: var(--verde-soaicc) !important; }

@keyframes slideUpFade {
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   TEMAS ESTACIONALES
   ========================================= */
.hero-banner.tema-patrio {
    background: linear-gradient(135deg, #006847 0%, #FFFFFF 50%, #CE1126 100%);
    box-shadow: 0 15px 35px rgba(206, 17, 38, 0.2);
}
.hero-banner.tema-patrio h2, .hero-banner.tema-patrio p {
    color: #111827; text-shadow: 0 2px 15px rgba(255, 255, 255, 1);
}
.hero-banner.tema-muertos {
    background: linear-gradient(135deg, #4A154B 0%, #E67E22 100%); 
    box-shadow: 0 15px 35px rgba(74, 21, 75, 0.25);
}
.hero-banner.tema-muertos h2, .hero-banner.tema-muertos p {
    color: #FFFFFF; text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.hero-banner.tema-navidad {
    background: linear-gradient(135deg, #0F5132 0%, #990000 100%); 
    box-shadow: 0 15px 35px rgba(153, 0, 0, 0.25);
}
.hero-banner.tema-navidad h2, .hero-banner.tema-navidad p {
    color: #FFFFFF; text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* NUEVO: Tema Año Nuevo (Elegante Azul Noche y Dorado) */
.hero-banner.tema-anonuevo {
    background: linear-gradient(135deg, #0B132B 0%, #1C2541 50%, #D69E2E 100%); 
    box-shadow: 0 15px 35px rgba(11, 19, 43, 0.4);
}
.hero-banner.tema-anonuevo h2, .hero-banner.tema-anonuevo p {
    color: #FFFFFF; text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.hero-banner.tema-aniversario {
    background: linear-gradient(135deg, #D69E2E 0%, var(--vino-soaicc) 100%); 
    box-shadow: 0 15px 35px rgba(214, 158, 46, 0.25);
}
.hero-banner.tema-aniversario h2, .hero-banner.tema-aniversario p {
    color: #FFFFFF; text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* =========================================
   DISEÑO MÓVIL (RESPONSIVE NAVBAR)
   ========================================= */
@media screen and (max-width: 992px) {
    .top-navbar {
        padding: 15px 25px;
    }
    
    #menu-toggle-btn { display: block; }
    
    /* El menú se vuelve un menú desplegable debajo de la barra */
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--verde-soaicc);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu.show { display: flex; }

    .nav-item {
        width: 100%;
        text-align: left;
        padding: 15px;
    }
    
    .nav-item.logout-btn {
        margin-left: 0;
        margin-top: 10px;
    }

    .brand-titles h2 { font-size: 1.2rem; }
    .brand-titles p { font-size: 0.7rem; }
    .nav-logo { width: 50px; height: 50px; }
    
    .full-title-bar h1 { font-size: 1rem; }
    .pages-container { padding: 30px 20px; }
    .hero-banner { padding: 50px 20px; border-radius: 16px;}
    .hero-banner h2 { font-size: 2rem; }
    .heyzine-container { min-height: 400px; }
    .heyzine-container iframe { height: 400px; }
    .event-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}