/* --- RESETEO GENERAL Y ESTRUCTURA --- */
html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
}

.page-container {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.content-wrap {
    flex: 1;
}

/* --- HEADER GENERAL --- */
header {
    background-color: #003366;
    color: white;
    padding: 10px 15px 20px;
}

/* --- PARTE SUPERIOR: LOGO + TÍTULO + BOTÓN --- */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    flex-wrap: nowrap;
}

/* LOGO A LA IZQUIERDA */
.logo img {
    height: 80px;
    max-width: 100%;
    object-fit: contain;
}

/* TÍTULO CENTRADO */
.titulo {
    flex: 1;
    text-align: center;
}

.titulo h1 {
    margin: 0;
    font-size: 1.5rem;
}

.titulo h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: normal;
}

/* BOTÓN HAMBURGUESA A LA DERECHA */
.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

/* --- MENÚ PRINCIPAL (DEBAJO DEL HEADER) --- */
.menu {
    margin-top: 10px;
    text-align: center;
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.menu a:hover {
    color: #00ccff;
}

/* --- HERO (SECCIÓN PRINCIPAL) --- */
.hero {
    background-color: #f0f4f8;
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 2rem;
    color: #003366;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.1rem;
    color: #333;
}

/* --- CONTENIDO Y REUNIONES --- */
.contenido, .reuniones {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.contenido h2, .reuniones h2 {
    text-align: center;
    color: #003366;
    margin-bottom: 10px;
}

.contenido p, .reuniones ul {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.contenido {
    text-align: justify;
}

.reuniones ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.reuniones li {
    margin: 5px 0;
}

/* --- VERSIÓN ESCRITORIO --- */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }

    .titulo h1 {
        font-size: 1.8rem;
    }

    .titulo h2 {
        font-size: 1.2rem;
    }

    .logo img {
        height: 100px;
    }
}

/* --- VERSIÓN MÓVIL --- */
@media (max-width: 768px) {
    .header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .titulo {
        text-align: center;
        flex: 1;
    }

    .logo {
        flex-shrink: 0;
    }

    .menu-toggle {
        flex-shrink: 0;
    }

    /* --- MENÚ DESLIZANTE LATERAL CON SCROLL --- */
    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        background-color: #003366;
        transition: right 0.4s ease;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        overflow-y: auto;          /* ✅ scroll si hay muchos links */
        max-height: 100vh;         /* ✅ no sobrepasa la pantalla */
        z-index: 1000;
    }

    /* Clase activa cuando se abre el menú */
    .menu.menu-abierto {
        right: 0;
    }

    .menu ul {
        flex-direction: column;
        gap: 25px;
        width: 100%;
        align-items: center;
    }

    .menu ul li {
        margin: 8px 0;
    }

    /* Scrollbar personalizado */
    .menu::-webkit-scrollbar {
        width: 8px;
    }
    .menu::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 4px;
    }
    .menu::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.6);
    }
}

/* --- FOOTER --- */
footer {
    background-color: #00264d;
    color: #ccc;
    text-align: center;
