/* =========================================================================
   SAN IGNACIO DE LOYOLA - SISTEMA DE DISEÑO
   Paleta: Azul marino + Guindo + Blanco + Negro
   ========================================================================= */

/* =========================================
   1. TOKENS DE DISEÑO
========================================= */

:root {
    /* Azul oscuro */
    --navy-900: #14213f;
    --navy-800: #1c315e;
    --navy-700: #28427a;
    --navy-600: #345393;

    /* Rojo oscuro */
    --guindo-800: #400a11;
    --guindo-700: #590d17;
    --guindo-600: #70101c;
    --guindo-500: #8c1524;

    --rojo: #70101c;
    --rojo-claro: #8c1524;
    --rojo-oscuro: #540b14;

    /* Neutrales */
    --gray-50: #f6f8fb;
    --gray-100: #eef2f7;
    --gray-200: #e4e9f0;
    --gray-300: #cfd8e3;
    --gray-400: #9aa7b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-900: #101828;

    --blanco: #ffffff;
    --negro: #0e0e10;

    /* Alias semánticos */
    --azul: var(--navy-800);
    --azul-oscuro: var(--navy-900);
    --azul-claro: var(--navy-700);
    --guindo: var(--guindo-600);
    --guindo-claro: var(--guindo-500);
    --guindo-oscuro: var(--guindo-800);

    --texto: #0e0e10;
    --texto-suave: var(--gray-500);
    --borde: var(--gray-200);
    --fondo: var(--gray-50);

    /* Estados */
    --peligro: #b42318;
    --peligro-bg: #fef3f2;
    --peligro-hover: #f9dcd9;

    /* Radios */
    --radio-sm: 8px;
    --radio-md: 12px;
    --radio-lg: 16px;

    /* Sombras coherentes */
    --sombra-xs: 0 1px 2px rgba(28, 49, 94, 0.06);
    --sombra-sm: 0 1px 3px rgba(28, 49, 94, 0.08), 0 1px 2px rgba(28, 49, 94, 0.04);
    --sombra-md: 0 10px 24px rgba(28, 49, 94, 0.10);
    --sombra-lg: 0 20px 45px rgba(28, 49, 94, 0.16);

    /* Otros */
    --anillo: 0 0 0 3px rgba(112, 16, 28, 0.16);
    --transicion: all 0.25s ease;
    --fuente: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
    --fuente-titulo: "Sora", "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --ancho-menu: 260px;
}

/* =========================================
   2. BASE
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fuente);
    font-size: 15px;
    line-height: 1.6;
    color: var(--texto);
    background-color: var(--gray-50);
    background-image:
        radial-gradient(circle at 1px 1px, rgba(28, 49, 94, 0.045) 1px, transparent 0),
        linear-gradient(180deg, var(--gray-50) 0%, var(--gray-100) 100%);
    background-size: 26px 26px, 100% 100%;
    background-attachment: fixed, fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-family: var(--fuente-titulo);
    line-height: 1.22;
    color: var(--azul);
    font-weight: 700;
    letter-spacing: -0.015em;
}

.nombre-colegio h1,
.nombre-colegio p {
    font-family: var(--fuente-titulo);
}

p {
    color: var(--texto-suave);
}

::selection {
    background: var(--guindo);
    color: var(--blanco);
}

::-webkit-scrollbar {
    width: 11px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--navy-700);
    border-radius: 20px;
    border: 2px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--guindo);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--guindo);
    outline-offset: 2px;
}

/* =========================================
   3. ICONOS (SVG inline vía mask)
========================================= */

.menu-lateral a::before,
.icono-tarjeta::before,
.icono-grande::before,
.icono-noticia::before,
.icono-login::before,
.usuario-activo::before,
.boton-icono::before {
    content: "";
    display: block;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.menu-lateral a::before {
    width: 18px;
    height: 18px;
    margin-right: 11px;
}

.boton-icono::before {
    width: 20px;
    height: 20px;
    margin: auto;
}

.usuario-activo::before {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.icono-tarjeta::before,
.icono-grande::before,
.icono-noticia::before,
.icono-login::before {
    width: 24px;
    height: 24px;
}

.menu-lateral a[href="index.html"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5'/%3E%3C/svg%3E");
}

.menu-lateral a[href="comunicados.html"]::before,
.icono-megaphone::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11v2a1 1 0 0 0 1 1h2l4 4V6L6 10H4a1 1 0 0 0-1 1z'/%3E%3Cpath d='M14 8a4 4 0 0 1 0 8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11v2a1 1 0 0 0 1 1h2l4 4V6L6 10H4a1 1 0 0 0-1 1z'/%3E%3Cpath d='M14 8a4 4 0 0 1 0 8'/%3E%3C/svg%3E");
}

.menu-lateral a[href="noticias.html"]::before,
.icono-newspaper::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h13a2 2 0 0 1 2 2v11H6a2 2 0 0 1-2-2V5z'/%3E%3Cpath d='M8 9h7'/%3E%3Cpath d='M8 13h7'/%3E%3Cpath d='M8 17h4'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h13a2 2 0 0 1 2 2v11H6a2 2 0 0 1-2-2V5z'/%3E%3Cpath d='M8 9h7'/%3E%3Cpath d='M8 13h7'/%3E%3Cpath d='M8 17h4'/%3E%3C/svg%3E");
}

.menu-lateral a[href="horarios.html"]::before,
.icono-clock::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

.menu-lateral a[href="actividades.html"]::before,
.icono-clipboard::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4h6v3H9z'/%3E%3Cpath d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2'/%3E%3Cpath d='M9 14l2 2 4-4'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4h6v3H9z'/%3E%3Cpath d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2'/%3E%3Cpath d='M9 14l2 2 4-4'/%3E%3C/svg%3E");
}

.menu-lateral a[href="docentes.html"]::before,
.icono-person::before,
.usuario-activo::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
}

.menu-lateral a[href="conocimiento.html"]::before,
.icono-book::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
}

.menu-lateral a[href="login.html"]::before,
.icono-login-arrow::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpath d='M10 17l5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpath d='M10 17l5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3C/svg%3E");
}

.boton-icono::before,
.icono-bell::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 1 0-12 0c0 7-3 8-3 8h18s-3-1-3-8'/%3E%3Cpath d='M13.7 21a2 2 0 0 1-3.4 0'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 1 0-12 0c0 7-3 8-3 8h18s-3-1-3-8'/%3E%3Cpath d='M13.7 21a2 2 0 0 1-3.4 0'/%3E%3C/svg%3E");
}

.icono-calendar::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4'/%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4'/%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
}

.icono-list::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13'/%3E%3Cpath d='M8 12h13'/%3E%3Cpath d='M8 18h13'/%3E%3Cpath d='M3 6h.01'/%3E%3Cpath d='M3 12h.01'/%3E%3Cpath d='M3 18h.01'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13'/%3E%3Cpath d='M8 12h13'/%3E%3Cpath d='M8 18h13'/%3E%3Cpath d='M3 6h.01'/%3E%3Cpath d='M3 12h.01'/%3E%3Cpath d='M3 18h.01'/%3E%3C/svg%3E");
}

.icono-star::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.6 5.3 5.9.9-4.2 4.1 1 5.8L12 16.8 6.7 19l1-5.8-4.2-4.1 5.9-.9z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.6 5.3 5.9.9-4.2 4.1 1 5.8L12 16.8 6.7 19l1-5.8-4.2-4.1 5.9-.9z'/%3E%3C/svg%3E");
}

.icono-lock::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}

.icono-pdf::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13h8'/%3E%3Cpath d='M8 17h8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13h8'/%3E%3Cpath d='M8 17h8'/%3E%3C/svg%3E");
}

/* =========================================
   4. BARRA LATERAL
========================================= */

.barra-lateral {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--ancho-menu);
    height: 100vh;
    background: linear-gradient(180deg, #70101c 0%, #400a11 100%);
    color: var(--blanco);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 8px 0 32px rgba(64, 10, 17, 0.5);
}

.marca {
    display: flex;
    align-items: center;
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.logo-circular {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.logo-circular img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.nombre-colegio h1 {
    font-size: 18px;
    color: var(--blanco);
    margin-bottom: 1px;
}

.nombre-colegio p {
    font-size: 18px;
    color: var(--blanco);
    margin-bottom: 3px;
}

.nombre-colegio span {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.menu-lateral {
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-lateral a {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    border-radius: var(--radio-sm);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: var(--transicion);
}

.menu-lateral a:hover {
    background: rgba(255, 255, 255, 0.10);
    color: var(--blanco);
    transform: translateX(3px);
}

.menu-lateral a.activo {
    background: var(--blanco);
    color: var(--navy-800);
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.menu-lateral a.activo::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: var(--guindo);
    border-radius: 0 4px 4px 0;
}

.menu-login {
    margin-top: 10px;
}

/* =========================================
   5. CONTENIDO Y BARRA SUPERIOR
========================================= */

.contenido-principal {
    margin-left: var(--ancho-menu);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.contenido-principal main {
    flex: 1;
}

.barra-superior {
    height: 80px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 35px;
    border-bottom: 1px solid var(--borde);
    position: sticky;
    top: 0;
    z-index: 900;
}

.pequeno-titulo {
    font-size: 10px;
    color: var(--negro);
    letter-spacing: 1.5px;
    font-weight: 700;
}

.barra-superior h2 {
    font-size: 22px;
    color: var(--navy-800);
    margin-top: 3px;
}

.barra-superior h2.nombre-escuela {
    font-size: 18px;
}

.acciones-superior {
    display: flex;
    align-items: center;
    gap: 12px;
}

.boton-icono {
    width: 42px;
    height: 42px;
    border: 1px solid var(--borde);
    background: var(--blanco);
    color: var(--navy-700);
    border-radius: var(--radio-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--sombra-xs);
    transition: var(--transicion);
}

.boton-icono:hover {
    background: var(--gray-50);
    color: var(--negro);
    transform: translateY(-2px);
    box-shadow: var(--sombra-sm);
}

.boton-acceso,
.boton-tarjeta,
.boton-ingresar {
    display: inline-block;
    background: linear-gradient(135deg, var(--rojo-claro), var(--rojo));
    color: var(--blanco);
    text-decoration: none;
    border: none;
    padding: 11px 20px;
    border-radius: var(--radio-sm);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(112, 16, 28, 0.30);
    transition: var(--transicion);
}

.boton-acceso:hover,
.boton-tarjeta:hover,
.boton-ingresar:hover {
    background: linear-gradient(135deg, var(--rojo), var(--rojo-oscuro));
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(112, 16, 28, 0.42);
}

.boton-tarjeta,
.boton-ingresar {
    margin-top: 18px;
}

.boton-ingresar {
    width: 100%;
    margin-top: 0;
}

.usuario-activo {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--guindo-500);
    color: var(--blanco);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--sombra-xs);
}

.usuario-activo::before {
    background-color: var(--blanco);
}

.boton-salir {
    padding: 10px 16px;
    background: var(--blanco);
    color: var(--rojo);
    border: 1px solid var(--rojo);
    border-radius: var(--radio-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transicion);
}

.boton-salir:hover {
    background: #f8e7ea;
    transform: translateY(-2px);
}

/* =========================================
   6. HERO
========================================= */

.hero {
    min-height: 480px;
    display: flex;
    align-items: center;
    padding: 60px;
    background-image:
        linear-gradient(rgba(28, 49, 94, 0.85), rgba(14, 14, 16, 0.88)),
        url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRSVLHzj5W8ox091CoyPTB5MSC0ag2upLUj8C2b3s9TCWr41BCkkrJ-tNOh&s=10");
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--sombra-lg);
    animation: heroAparece 0.9s ease both;
}

.hero::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--guindo), var(--navy-700), var(--guindo));
    z-index: 2;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 16%, rgba(112, 16, 28, 0.45), transparent 50%),
        radial-gradient(circle at 12% 92%, rgba(28, 49, 94, 0.55), transparent 45%);
    pointer-events: none;
}

.hero-contenido {
    position: relative;
    z-index: 1;
    max-width: 720px;
    color: var(--blanco);
    animation: fadeInUp 0.9s 0.15s ease both;
}

.etiqueta {
    display: inline-block;
    padding: 7px 15px;
    background: rgba(112, 16, 28, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-size: 44px;
    color: var(--blanco);
    margin-bottom: 8px;
}

.hero h2 {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 20px;
}

.hero-texto {
    font-size: 16px;
    line-height: 1.75;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 30px;
}

.boton-principal {
    display: inline-block;
    background: linear-gradient(135deg, var(--rojo-claro), var(--rojo));
    color: var(--blanco);
    text-decoration: none;
    padding: 14px 24px;
    border-radius: var(--radio-sm);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
    transition: var(--transicion);
}

.boton-principal:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
    color: var(--blanco);
}

/* =========================================
   7. SECCIONES Y TÍTULOS
========================================= */

section {
    padding: 65px 45px;
}

.seccion {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.titulo-seccion {
    margin-bottom: 32px;
}

.titulo-seccion span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--negro);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.titulo-seccion span::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--guindo);
    border-radius: 2px;
}

.titulo-seccion h2 {
    color: var(--navy-800);
    font-size: 30px;
    margin-bottom: 8px;
}

.titulo-seccion p {
    color: var(--texto-suave);
    font-size: 15px;
    max-width: 640px;
}

.subtitulo-seccion {
    color: var(--texto-suave);
    font-size: 14px;
    margin-bottom: 30px;
}

/* =========================================
   8. TARJETAS
========================================= */

.tarjetas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.tarjeta {
    background: var(--blanco);
    border-radius: var(--radio-lg);
    padding: 28px;
    border: 1px solid var(--borde);
    box-shadow: var(--sombra-sm);
    transition: var(--transicion);
    animation: fadeInUp 0.6s ease backwards;
}

.tarjeta:nth-child(2) {
    animation-delay: 0.08s;
}

.tarjeta:nth-child(3) {
    animation-delay: 0.16s;
}

.tarjeta:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-lg);
    border-color: var(--gray-300);
}

.tarjeta,
.pdf-card,
.noticia,
.horario-curso {
    position: relative;
    overflow: hidden;
}

.tarjeta::before,
.pdf-card::before,
.noticia::before,
.horario-curso::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--guindo), var(--navy-700));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.tarjeta:hover::before,
.pdf-card:hover::before,
.noticia:hover::before,
.horario-curso:hover::before {
    transform: scaleX(1);
}

.icono-tarjeta,
.icono-grande,
.icono-noticia,
.icono-login {
    width: 52px;
    height: 52px;
    border-radius: var(--radio-md);
    background: linear-gradient(135deg, #f8e7ea, #edd0d5);
    color: var(--negro);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: var(--transicion);
}

.tarjeta:hover .icono-tarjeta,
.noticia:hover .icono-noticia {
    transform: translateY(-3px) scale(1.06);
}

.tarjeta h3,
.noticia h3,
.tarjeta-grande h3,
.actividad h3 {
    color: var(--negro);
}

.tarjeta h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.tarjeta p {
    font-size: 14px;
    line-height: 1.65;
}

/* Noticias */
.noticias {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.noticia {
    background: var(--blanco);
    border-radius: var(--radio-lg);
    padding: 28px;
    border: 1px solid var(--borde);
    box-shadow: var(--sombra-sm);
    transition: var(--transicion);
    animation: fadeInUp 0.6s ease backwards;
}

.noticia:nth-child(2) {
    animation-delay: 0.08s;
}

.noticia:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-lg);
    border-color: var(--gray-300);
}

.noticia h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.noticia p {
    font-size: 14px;
    line-height: 1.65;
}

.noticia-fecha {
    color: var(--gray-500);
    font-size: 12px;
    margin-bottom: 10px;
}

/* Tarjeta grande */
.tarjeta-grande {
    background: var(--blanco);
    border-radius: var(--radio-lg);
    padding: 32px;
    border: 1px solid var(--borde);
    box-shadow: var(--sombra-sm);
    transition: var(--transicion);
    animation: fadeInUp 0.6s ease backwards;
}

.tarjeta-grande:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-md);
}

.tarjeta-grande h3 {
    font-size: 21px;
    margin-bottom: 12px;
}

.tarjeta-grande p {
    font-size: 14px;
    line-height: 1.7;
}

.tarjeta-grande .tabla-contenedor {
    margin-top: 18px;
}

.boton-cancelar {
    display: inline-block;
    margin-top: 18px;
    margin-left: 10px;
    padding: 11px 20px;
    background: var(--blanco);
    color: var(--rojo);
    border: 1px solid var(--rojo);
    border-radius: var(--radio-sm);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transicion);
}

.boton-cancelar:hover {
    background: #f8e7ea;
}

/* Actividades (legado) */
.actividades {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.actividad {
    background: var(--blanco);
    padding: 25px;
    border-radius: var(--radio-lg);
    border: 1px solid var(--borde);
    box-shadow: var(--sombra-sm);
}

/* =========================================
   9. LOGIN
========================================= */

.login {
    max-width: 470px;
    margin: auto;
    background: var(--blanco);
    padding: 38px;
    border-radius: var(--radio-lg);
    border: 1px solid var(--borde);
    box-shadow: var(--sombra-md);
    text-align: center;
    animation: fadeInUp 0.6s ease backwards;
}

.login .icono-login {
    margin: 0 auto 18px;
}

.login h2 {
    color: var(--negro);
    font-size: 23px;
    margin-bottom: 10px;
}

.login > p {
    color: var(--texto-suave);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 24px;
}

.login form {
    text-align: left;
}

.login label {
    display: block;
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
}

.login input {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radio-sm);
    outline: none;
    margin-bottom: 18px;
    font-size: 14px;
    font-family: inherit;
    color: var(--texto);
    transition: var(--transicion);
}

.login input:focus {
    border-color: var(--negro);
    box-shadow: var(--anillo);
}

.login-error {
    background: var(--peligro-bg);
    color: var(--negro);
    border: 1px solid var(--peligro-hover);
    border-radius: var(--radio-sm);
    padding: 10px 14px;
    font-size: 13px;
    text-align: left;
    margin-bottom: 18px;
}

.login-info {
    max-width: 660px;
    margin: 26px auto 0;
    padding: 0 10px;
    color: var(--texto-suave);
    font-size: 13px;
    line-height: 1.75;
    text-align: center;
}

/* =========================================
   10. PUBLICACIONES (comunicados/noticias/actividades)
========================================= */

.aviso-sesion {
    background: #f8e7ea;
    border: 1px solid #ecd0d6;
    border-radius: var(--radio-md);
    padding: 14px 18px;
    margin-bottom: 25px;
    color: var(--gray-700);
    font-size: 14px;
}

.aviso-sesion a {
    color: var(--negro);
    font-weight: 700;
    text-decoration: none;
}

.aviso-sesion a:hover {
    text-decoration: underline;
}

.panel-publicar {
    background: var(--blanco);
    border: 1px solid var(--borde);
    border-radius: var(--radio-lg);
    padding: 28px;
    margin-bottom: 25px;
    box-shadow: var(--sombra-md);
    animation: fadeInUp 0.5s ease backwards;
}

.panel-encabezado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.panel-encabezado h3 {
    color: var(--negro);
    font-size: 18px;
}

.boton-cerrar {
    padding: 9px 15px;
    background: var(--rojo);
    color: var(--blanco);
    border: 1px solid var(--rojo);
    border-radius: var(--radio-sm);
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transicion);
}

.boton-cerrar:hover {
    background: var(--rojo-oscuro);
}

#form-publicar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.campo {
    display: flex;
    flex-direction: column;
}

.campo-ancho {
    grid-column: 1 / -1;
}

.campo label {
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
}

.campo input,
.campo select,
.campo textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radio-sm);
    outline: none;
    font-size: 14px;
    font-family: inherit;
    color: var(--texto);
    background: var(--blanco);
    transition: var(--transicion);
}

.campo textarea {
    resize: vertical;
    min-height: 84px;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    border-color: var(--negro);
    box-shadow: var(--anillo);
}

.campo-acciones {
    grid-column: 1 / -1;
}

.campo-acciones .boton-tarjeta {
    margin-top: 0;
}

.campo-acciones .boton-cancelar {
    margin-top: 0;
}

.lista-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.item {
    position: relative;
    background: var(--gray-50);
    border: 1px solid var(--borde);
    border-left: 4px solid var(--guindo);
    border-radius: var(--radio-md);
    padding: 14px 16px;
    animation: fadeInUp 0.4s ease backwards;
}

.item h4 {
    color: var(--negro);
    font-size: 15px;
    margin-bottom: 5px;
    padding-right: 140px;
}

.item p {
    font-size: 13px;
    line-height: 1.6;
}

.item-fecha {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 12px;
    background: #f8e7ea;
    color: var(--negro);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.item-meta {
    margin-top: 8px;
    color: var(--gray-400);
    font-size: 11px;
}

.item-acciones {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
}

.item-editar,
.item-eliminar {
    padding: 5px 11px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transicion);
}

.item-editar {
    background: var(--rojo);
    color: var(--blanco);
}

.item-editar:hover {
    background: var(--rojo-oscuro);
}

.item-eliminar {
    background: var(--rojo-oscuro);
    color: var(--blanco);
    border: 1px solid var(--rojo-oscuro);
}

.item-eliminar:hover {
    background: #6d0a12;
}

.item-vacio {
    color: var(--gray-400);
    font-size: 13px;
    font-style: italic;
}

/* =========================================
   11. TABLAS
========================================= */

.tabla-contenedor {
    overflow-x: auto;
    background: var(--blanco);
    border-radius: var(--radio-md);
    border: 1px solid var(--borde);
    box-shadow: var(--sombra-xs);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

th {
    background: var(--navy-800);
    color: var(--blanco);
    padding: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-align: left;
}

td {
    padding: 14px;
    border-bottom: 1px solid var(--borde);
    color: var(--gray-600);
    font-size: 13px;
}

tr:hover td {
    background: var(--gray-50);
}

/* =========================================
   12. HORARIOS
========================================= */

.leyenda-materias {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--blanco);
    border: 1px solid var(--borde);
    border-radius: var(--radio-md);
    box-shadow: var(--sombra-xs);
}

.materia-chip {
    display: inline-block;
    padding: 5px 12px;
    background: #f8e7ea;
    color: var(--negro);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.horario-curso {
    margin-bottom: 30px;
    padding: 28px;
    background: var(--blanco);
    border: 1px solid var(--borde);
    border-radius: var(--radio-lg);
    box-shadow: var(--sombra-sm);
    animation: fadeInUp 0.5s ease backwards;
}

.horario-curso h3 {
    color: var(--negro);
    font-size: 20px;
    margin-bottom: 16px;
}

.materias-celda {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.materias-celda .materia-chip {
    padding: 4px 8px;
    font-size: 11px;
    text-align: center;
}

/* =========================================
   13. CONOCIMIENTO
========================================= */

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--borde);
}

.tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    color: var(--texto-suave);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transicion);
}

.tab:hover {
    color: var(--negro);
}

.tab.activo {
    color: var(--negro);
    border-bottom-color: var(--negro);
}

.pdf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.pdf-card {
    background: var(--blanco);
    border: 1px solid var(--borde);
    border-radius: var(--radio-lg);
    padding: 28px;
    box-shadow: var(--sombra-sm);
    transition: var(--transicion);
    animation: fadeInUp 0.5s ease backwards;
}

.pdf-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-lg);
    border-color: var(--gray-300);
}

.pdf-card h3 {
    color: var(--navy-800);
    font-size: 17px;
    margin-bottom: 6px;
}

.pdf-card p {
    color: var(--texto-suave);
    font-size: 13px;
    margin-bottom: 16px;
}

.pdf-acciones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.pdf-acciones .boton-tarjeta {
    margin-top: 0;
}

.pdf-acciones .boton-cerrar {
    display: inline-block;
    text-decoration: none;
    background: var(--blanco);
    color: var(--rojo);
    border-color: var(--rojo);
}

.pdf-acciones .boton-cerrar:hover {
    background: #f8e7ea;
}

.visor-pdf {
    margin-top: 30px;
    background: var(--blanco);
    border: 1px solid var(--borde);
    border-radius: var(--radio-lg);
    box-shadow: var(--sombra-md);
    overflow: hidden;
    animation: fadeInUp 0.4s ease backwards;
}

.visor-encabezado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--navy-800), var(--guindo-800));
    color: var(--blanco);
}

.visor-encabezado h3 {
    font-size: 16px;
    color: var(--blanco);
}

.visor-acciones {
    display: flex;
    align-items: center;
    gap: 10px;
}

.visor-acciones a {
    padding: 8px 14px;
    color: var(--blanco);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radio-sm);
    transition: var(--transicion);
}

.visor-acciones a:hover {
    background: rgba(255, 255, 255, 0.16);
}

.visor-pdf iframe {
    width: 100%;
    height: 75vh;
    border: none;
    display: block;
}

/* =========================================
   14. INICIO: HISTORIA, FUNDADORES E IDENTIDAD
========================================= */

.linea-tiempo {
    list-style: none;
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: 10px 0;
}

.linea-tiempo::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--guindo), var(--navy-700));
    border-radius: 3px;
}

.linea-tiempo li {
    position: relative;
    padding: 0 0 30px 52px;
    animation: fadeInUp 0.5s ease backwards;
}

.linea-tiempo li:last-child {
    padding-bottom: 0;
}

.linea-tiempo li::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 4px;
    width: 17px;
    height: 17px;
    background: var(--blanco);
    border: 3px solid var(--guindo);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(112, 16, 28, 0.12);
}

.linea-tiempo .anio {
    display: inline-block;
    color: var(--negro);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.linea-tiempo h3 {
    color: var(--navy-800);
    font-size: 17px;
    margin-bottom: 6px;
}

.linea-tiempo p {
    font-size: 14px;
    line-height: 1.65;
}

.fundadores {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.fundador {
    background: var(--blanco);
    border: 1px solid var(--borde);
    border-top: 4px solid var(--guindo);
    border-radius: var(--radio-md);
    padding: 26px;
    box-shadow: var(--sombra-sm);
    transition: var(--transicion);
    animation: fadeInUp 0.6s ease backwards;
}

.fundador:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-lg);
}

.fundador h3 {
    color: var(--navy-800);
    font-size: 16px;
    margin-bottom: 8px;
}

.fundador p {
    font-size: 13px;
    line-height: 1.6;
}

.destacado-identidad {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy-800), var(--guindo-800));
    color: var(--blanco);
    border-radius: 20px;
    padding: 55px 45px;
    text-align: center;
    box-shadow: var(--sombra-lg);
    animation: fadeInUp 0.6s ease backwards;
}

.destacado-identidad > span {
    display: inline-block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.destacado-identidad h2 {
    font-size: 32px;
    color: var(--blanco);
    margin-bottom: 16px;
}

.destacado-identidad p {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.8;
}

/* =========================================
   15. PIE DE PÁGINA
========================================= */

footer {
    background: var(--negro);
    color: var(--blanco);
    padding: 36px 45px 20px;
    border-top: 4px solid var(--guindo);
    position: relative;
    z-index: 1100;
    margin-left: calc(-1 * var(--ancho-menu));
    width: calc(100% + var(--ancho-menu));
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45);
}

.pie-contenido {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pie-marca h3 {
    font-size: 18px;
    color: var(--blanco);
    margin-bottom: 6px;
}

.pie-marca p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.pie-enlace a {
    display: inline-block;
    color: var(--blanco);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radio-sm);
    transition: var(--transicion);
}

.pie-enlace a:hover {
    background: var(--guindo);
    border-color: var(--negro);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.pie-inferior {
    padding-top: 18px;
    text-align: center;
}

.pie-inferior p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

/* =========================================
   16. RESPONSIVE
========================================= */

@media (max-width: 1000px) {

    :root {
        --ancho-menu: 220px;
    }

    .tarjetas,
    .actividades,
    .fundadores,
    .pdf-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 750px) {

    :root {
        --ancho-menu: 0px;
    }

    .barra-lateral {
        position: relative;
        width: 100%;
        height: auto;
    }

    .marca {
        justify-content: center;
    }

    .menu-lateral {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 12px;
    }

    .menu-lateral a {
        font-size: 12px;
        padding: 9px 12px;
    }

    .menu-lateral a.activo::after {
        display: none;
    }

    .barra-superior {
        height: auto;
        padding: 18px;
        gap: 15px;
    }

    .acciones-superior {
        gap: 8px;
    }

    .boton-icono {
        display: none;
    }

    .boton-acceso {
        padding: 9px 12px;
        font-size: 11px;
    }

    .hero {
        padding: 45px 25px;
        min-height: 420px;
    }

    .hero h1 {
        font-size: 31px;
    }

    section {
        padding: 45px 22px;
    }

    footer {
        padding: 28px 22px 18px;
    }

    .pie-contenido {
        flex-direction: column;
        gap: 18px;
    }

    #form-publicar {
        grid-template-columns: 1fr;
    }

    .tarjetas,
    .noticias,
    .actividades,
    .fundadores,
    .pdf-grid {
        grid-template-columns: 1fr;
    }

    .titulo-seccion h2 {
        font-size: 24px;
    }

    .destacado-identidad {
        padding: 40px 25px;
    }

    .destacado-identidad h2 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {

    .barra-superior h2 {
        font-size: 17px;
    }

    .hero h1 {
        font-size: 27px;
    }

    .hero-texto {
        font-size: 14px;
    }
}

/* =========================================
   17. ANIMACIONES
========================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroAparece {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}