  /* --- CONFIGURACIÓN ESTÉTICA BRUTALISTA --- */
        :root {
            --bg-color: #FBFBFA;       /* Off-white editorial */
            --text-color: #000000;     /* Negro puro */
            --accent-color: #E63946;   /* Detalle ROJO clásico */
            --border-style: 1px solid #000000;
            --font-main: 'Archivo', sans-serif;  /* Tipografía pesada para títulos */
            --font-body: 'Inter', sans-serif;    /* Tipografía limpia para lectura */
        }

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

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            font-family: var(--font-main);
            padding: 1.5rem;
            min-height: 100vh;
        }

        /* --- CONTENEDOR REVISTA (GRID GENERAL) --- */
        .magazine-layout {
            max-width: 900px;
            margin: 0 auto;
            border-left: var(--border-style);
            border-right: var(--border-style);
            border-top: var(--border-style);
        }

        /* Bloques de la grilla */
        .row {
            display: grid;
            grid-template-columns: 1fr;
            border-bottom: var(--border-style);
        }

        .cell {
            padding: 1.5rem;
            border-bottom: var(--border-style);
            position: relative;
        }

        /* Limpiamos bordes en mobile para que no se dupliquen */
        .cell:last-child {
            border-bottom: none;
        }

        @media (min-width: 768px) {
            .row-2col { grid-template-columns: 1fr 1fr; }
            .row-3col { grid-template-columns: 1fr 1fr 1fr; }
            .row-1-2 { grid-template-columns: 1fr 2fr; }
            .row-2-1 { grid-template-columns: 2fr 1fr; }
            
            .cell {
                border-bottom: none;
                border-right: var(--border-style);
            }
            
            .cell:last-child {
                border-right: none;
            }
        }

        /* --- TIPOGRAFÍA --- */
        h1, h2, h3 {
            text-transform: uppercase;
            line-height: 0.9;
            font-weight: 900;
            letter-spacing: -0.04em;
        }

        .huge-number {
            font-size: 5.5rem;
            line-height: 0.7;
            font-weight: 900;
            letter-spacing: -0.05em;
        }

        @media (min-width: 768px) {
            .huge-number {
                font-size: 7rem;
            }
        }

        p, ul, li, footer {
            font-family: var(--font-body);
            font-size: 0.9rem;
            line-height: 1.4;
            font-weight: 400;
        }

        strong {
            font-weight: 700;
        }

        .accent-text {
            color: var(--accent-color);
        }

        /* --- IMAGEN EN CABECERA --- */
        .header-image-container {
            width: 100%;
            height: 100%;
            min-height: 250px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #ECEBE8;
        }

        .header-image-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* --- COMPONENTES ESPECÍFICOS --- */
        .arrow-btn {
            display: inline-block;
            width: 40px;
            height: 40px;
            border: var(--border-style);
            border-radius: 50%;
            text-align: center;
            line-height: 38px;
            font-size: 1.2rem;
            cursor: pointer;
            text-decoration: none;
            color: var(--text-color);
            transition: 0.2s ease;
        }

        .arrow-btn:hover {
            background-color: var(--accent-color);
            color: white;
            border-color: var(--accent-color);
        }

        /* Faja de compañeras (Estilo los asteriscos de la referencia) */
        .team-divider {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            text-transform: uppercase;
            font-size: 0.85rem;
            letter-spacing: 0.05em;
        }

        .team-divider a {
            color: var(--text-color);
            text-decoration: none;
            font-family: var(--font-body);
            font-weight: 700;
            transition: color 0.2s ease;
        }

        .team-divider a:hover {
            color: var(--accent-color);
        }

        .team-divider::before {
            content: "★";
            color: var(--accent-color);
            font-size: 1.2rem;
        }

        /* Grilla interna para años y materias */
        .subjects-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
        
        @media (min-width: 500px) {
            .subjects-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        .year-block h4 {
            font-family: var(--font-body);
            font-weight: 700;
            font-size: 1.1rem;
            border-bottom: 2px solid var(--text-color);
            padding-bottom: 0.2rem;
            margin-bottom: 0.5rem;
        }

        .year-block ul {
            list-style: none;
            text-transform: uppercase;
            font-size: 0.75rem;
            line-height: 1.5;
        }

        /* --- FOOTER DE ADVERTENCIA --- */
        footer {
            padding: 1.5rem;
            font-size: 0.75rem;
            color: #555555;
            text-align: justify;
        }
       /* --- CURSOR INTERACTIVO ESTRELLA ★ --- */
        .custom-cursor {
            position: fixed;
            top: -50px;
            left: -50px;
            /* Usamos ancho/alto solo para crear un contenedor donde centrar el símbolo */
            width: 50px; 
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none; /* Deja hacer click a través de él */
            /* Base: centrada, escala 1, rotación 0 */
            transform: translate(-50%, -50%) scale(1) rotate(0deg);
            /* Transiciones: manejamos la escala y rotación, opacidad y color */
            transition: transform 0.2s ease, opacity 0.2s ease, color 0.3s ease; 
            z-index: 9999;
            opacity: 0; /* Oculto hasta que arranca el JS */
            color: var(--accent-color); /* Color base rojo ★ */
            font-family: var(--font-main); /* Asegura renderizado correcto del símbolo */
        }

        /* El símbolo ★ ★ ★ exacto que usamos en el diseño */
        .custom-cursor::after {
            content: "★";
            font-size: 1.5rem; /* Tamaño base de la estrella */
            line-height: 1;
        }

        /* Cuando el script arranca y moves el mouse */
        .custom-cursor.active {
            opacity: 1;
        }

        /* Interactividad: Agranda mucho la estrella sobre links, como la fucsia anterior */
        .custom-cursor.hovering {
            /* Mantenemos centrada, pero escalamos 3 veces más grande */
            transform: translate(-50%, -50%) scale(3); 
            opacity: 0.5; /* Un toque de transparencia editorial */
        }

        /* En celu lo apagamos completamente */
        @media (max-width: 767px) {
            .custom-cursor {
                display: none !important;
            }
        }
        .work-img-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #ECEBE8;
}

.work-img-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #ECEBE8;
    margin-bottom: 1rem; /* Espacio debajo de la imagen */
}

.work-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.work-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease, filter .5s ease;
}

.work-img-container:hover img {
    transform: scale(1.05);
    filter: brightness(0.8);
}
@media (min-width: 768px) {
    .row-4col {
        grid-template-columns: repeat(4, 1fr);
    }
}
.links-row .team-divider::before {
    color: #000;
}
.header-image-container {
    position: relative;
    overflow: hidden;
}

.header-image-container img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.img-default {
    opacity: 1;
}

.img-hover {
    opacity: 0;
}

.header-image-container:hover .img-default {
    opacity: 0;
}

.header-image-container:hover .img-hover {
    opacity: 1;
}