/* ==========================================================================
   FMC - HOJA DE ESTILOS PRINCIPAL
   Facultad Militar Conjunta - sitio institucional (https://www.undef.edu.ar/fmc/)

   Reemplaza a: style.css + style2.css + responsive.css (se conservan como backup).
   Aplica a:    las paginas del sitio raiz (NO a los observatorios, que usan
                sus propios CSS, ni al panel /auto).

   COMO USARLA
   - Cargar UNA sola vez en el <head>, despues de la fuente de Google:
       <link rel="stylesheet" href="fmc.css?v=3.0">
     Al modificar este archivo, subir el numero de ?v= en las paginas para que
     los visitantes no vean la version en cache.
   - Los colores, fuentes y sombras se cambian en la seccion 01 (variables).
   - Cada componente tiene sus reglas base y, justo debajo, sus reglas
     responsive (media queries). Para tocar un componente, buscar su seccion.

   PUNTOS DE QUIEBRE DEL SITIO (usar siempre estos)
   - Escritorio ............... mas de 1050px
   - Tablet / menu hamburguesa . 651px a 1050px
   - Mobile ................... 650px o menos
   (Existen ademas ajustes puntuales en 1350, 1145, 900, 800 y 767px que se
    mantienen por compatibilidad con el diseño original.)

   INDICE
   01. Variables (colores, fuentes, sombras)
   02. Base (reset, body, scroll, listas)
   03. Layout general (ancho del sitio)
   04. Header y menu principal
   05. Boton "subir"
   06. Footer
   07. Paginas internas
       07.1 Breadcrumb (.traza)
       07.2 Portada con titulo
       07.3 Contenedor y recuadros de contenido
       07.4 Normas / publicaciones
       07.5 Flotante de preinscripcion
       07.6 Autoridades
       07.7 Oferta academica (pagina interna)
       07.8 Investigacion y extension
       07.9 Observatorios y bibliotecas (tarjetas)
       07.10 Novedad (detalle)
       07.11 Editorial Universitaria (subpaginas)
   08. Home
       08.1 Carrusel
       08.2 Oferta academica (home)
       08.3 Novedades
       08.4 Sedes
       08.5 Eventos
   09. Utilidades
   ========================================================================== */


/* ==========================================================================
   01. VARIABLES
   Unico lugar donde conviene cambiar colores, fuentes y sombras globales.
   ========================================================================== */
:root {
    /* Tipografia */
    --fuente-texto: 'Encode Sans', sans-serif;
    --fuente-titulos: 'Source Serif 4', Georgia, 'Times New Roman', serif;

    /* Colores de marca */
    --color-primario: #37BBED;          /* celeste institucional */
    --color-primario-oscuro: #027BC1;   /* azul (hover, enlaces activos) */
    --color-enlace: rgba(13, 112, 169, 1);
    --color-texto: #3B4449;             /* gris azulado de titulos y menu */
    --color-gris-claro: #F1F1F1;

    /* Sombra suave, comun a menus, recuadros y tarjetas */
    --sombra-suave: 0 2px 6px rgba(0, 0, 0, .3);
}


/* ==========================================================================
   02. BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fuente-texto);
    font-style: normal;
    letter-spacing: 0.2px;
    background-color: #dbdbdb;
    box-shadow: 0 0 10px 0 rgb(0 0 0 / 30%);
    overflow-x: hidden;
}

section {
    background-color: #fff;
}

/* Barra de scroll (WebKit: Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* REGLA HEREDADA (afecta a TODOS los <li> del sitio, incluidos los del menu).
   Viene del diseño original de Oferta Academica y se mantiene tal cual para no
   alterar espaciados existentes. Si se quiere acotar, probar primero en
   ".FA-block ul li" y revisar menu, footer y listas de contenido. */
li {
    color: #000;
    padding: .2em;
    margin-left: 1.4em;
}

.FA-block ul li::marker {
    color: #000;
}


/* ==========================================================================
   03. LAYOUT GENERAL (ancho del sitio)
   - Pantallas muy grandes: el sitio ocupa 80% (minimo 1500px) y se centra.
   - Laptops (1350px o menos): ocupa todo el ancho.
   ========================================================================== */
@media (max-width: 1920px) {
    body {
        width: max(80%, 1500px);
        max-width: 100%;
        margin: auto;
    }
}

@media (max-width: 1350px) {
    body {
        width: 100%;
        margin: auto;
    }
}


/* ==========================================================================
   04. HEADER Y MENU PRINCIPAL
   Estructura (header.php):
   header > .header-container > .logo-container + .main-nav (menu)
                                + .right-column (redes) + .nav-icon (hamburguesa)
   Escritorio (>1050px): grilla: logo a la izquierda, redes arriba y menu abajo.
   Tablet/mobile (<=1050px): menu hamburguesa (se abre con la clase .mostrar,
   que agrega code.js).
   ========================================================================== */
header {
    width: 100%;
    background-color: #fff;
    padding: 1.5em 0;
}

.header-container {
    display: flex;
    width: 90%;
    margin: auto;
    padding: 1em 0;
}

.logo {
    height: 4.6em;
}

.logo-container {
    display: flex;
    align-items: center;
}

.main-nav {
    align-self: flex-end;
    flex: 3;
}

/* --- Menu y submenus --- */
.menu {
    display: flex;
    justify-content: flex-end;
    margin-left: 0;
    margin-right: 2em;
    list-style-type: none;
    transition: .5s;
}

.container-submenu {
    position: relative;
}

.menu-item {
    padding: 0;
}

.menu-link {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-texto);
    text-decoration: none;
}

.menu-link:hover {
    color: var(--color-primario-oscuro);
}

.submenu {
    position: absolute;
    overflow: visible;
    top: 1.5em;
    width: 200px;
    list-style-type: none;
    background-color: whitesmoke;
    box-shadow: var(--sombra-suave);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all .6s;
}

.submenu .menu-item {
    margin-left: 0;
}

.submenu .menu-link {
    background-color: whitesmoke;
    padding: 1em 2em;
}

.submenu .menu-link:hover {
    background-color: rgb(227, 227, 227);
}

.container-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
}

/* Item de menu de la pagina actual */
#active {
    color: var(--color-primario-oscuro);
}

/* Flecha indicadora en los items con desplegable */
.submenu-btn {
    white-space: nowrap;
}

.submenu-btn::after {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-left: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    position: relative;
    top: -2px;
    transition: transform .3s, top .3s;
}

.container-submenu:hover > .submenu-btn::after {
    transform: rotate(225deg);
    top: 1px;
}

/* --- Redes sociales e icono de contacto --- */
.right-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.redes {
    display: flex;
    justify-content: flex-end;
}

.red-img {
    width: 18px;
    margin: 4px;
    margin-bottom: 5px;
    transition: .5s;
}

.red-img:hover {
    transform: translateY(-5px);
}

.red-icon {
    display: inline-block;
    margin: 4px;
    margin-bottom: 5px;
    font-size: 18px;
    line-height: 1;
    color: var(--color-texto);
    transition: .5s;
}

.red-icon:hover {
    color: var(--color-primario-oscuro);
    transform: translateY(-5px);
}

/* Boton hamburguesa (oculto en escritorio) */
.nav-icon {
    display: none;
    z-index: 10000;
}

/* --- Escritorio (>1050px): grilla de 2 columnas --- */
@media (min-width: 1051px) {
    .header-container {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        column-gap: 1em;
    }

    .logo-container {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .right-column {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: end;
    }

    .main-nav {
        grid-column: 2;
        grid-row: 2;
        width: 100%;
        align-self: end;
    }

    .main-nav .menu {
        margin-right: 0;
    }

    /* El ultimo desplegable (Bibliotecas) se alinea a la derecha para no salirse */
    .menu > .container-submenu:last-child .submenu {
        right: 0;
        width: 300px;
    }
}

/* --- Ajustes por ancho --- */
@media (max-width: 1350px) {
    header {
        padding: 1.5em;
    }
}

@media (max-width: 1145px) {
    .header-container {
        width: 100%;
    }

    .right-column {
        padding-right: 1em;
    }
}

/* Laptops chicas: mas ancho disponible para el menu */
@media (min-width: 1051px) and (max-width: 1350px) {
    .header-container {
        width: 96%;
    }
}

/* --- Tablet y mobile (<=1050px): menu hamburguesa --- */
@media (max-width: 1050px) {
    header {
        padding: 0;
    }

    .header-container {
        display: flex;
        flex-direction: column;
    }

    .logo-container {
        margin-left: 1.5em;
    }

    .nav-icon {
        display: block;
        position: absolute;
        right: 1.5em;
        top: 1.9em;
    }

    .nav-icon .fa-bars {
        font-size: 22px;
        padding: .5em .6em;
        border-radius: 5px;
        color: var(--color-primario);
        background-color: var(--color-texto);
        cursor: pointer;
    }

    /* El menu queda fuera de pantalla (a la izquierda) hasta que code.js
       le agrega la clase .mostrar */
    .main-nav {
        position: absolute;
        top: 6.6em;
        order: 1;
        align-self: center;
        width: 100%;
        margin-top: 0;
        margin-left: -200%;
        z-index: 1000;
        transition: .8s;
    }

    .mostrar {
        margin-left: 0;
    }

    .menu {
        flex-direction: column;
        justify-content: space-between;
        width: 100%;
        margin-right: 0;
        padding: 0;
        background-color: var(--color-texto);
        z-index: 1000;
    }

    .menu-item {
        margin-left: 0;
        padding: 0;
        border-bottom: 1px solid rgba(43, 50, 53, .8);
    }

    .menu-link {
        display: block;
        font-size: 13px;
        padding: 1.1em 1.5em;
        margin-left: 0;
        color: #fff;
    }

    /* Hover/foco: texto azul sobre el fondo oscuro del menu */
    .menu-link:hover,
    .menu-link:focus-visible,
    .submenu .menu-link:hover {
        color: var(--color-primario);
    }

    .submenu .menu-link:hover {
        background-color: #2b3235;
    }

    /* Submenus integrados (sin sombra); code.js les anima la altura */
    .submenu {
        width: 100%;
        position: unset;
        height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background-color: #2b3235;
        overflow-x: hidden;
    }

    .submenu .menu-item {
        background-color: #2b3235;
    }

    .submenu .menu-link {
        background-color: #2b3235;
        font-size: 12px;
        padding: .95em 2.2em;
    }

    .right-column {
        display: none;
    }

    #active {
        color: #fff;
    }
}

@media (max-width: 900px) {
    .logo-container {
        margin-left: 2em;
    }
}


/* ==========================================================================
   05. BOTON "SUBIR"  (flecha fija abajo a la derecha)
   ========================================================================== */
.button-up {
    width: 60px;
    height: 60px;
    background-color: rgba(55, 187, 237, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    position: fixed;
    bottom: 1.5em;
    right: 2em;
    font-size: 24px;
    z-index: 1001;
    transition: .3s;
}

.button-up a {
    color: #fff;
}

.button-up:hover {
    background-color: rgba(2, 123, 193, 0.8);
}

@media (max-width: 900px) {
    .button-up {
        display: none;
    }
}


/* ==========================================================================
   06. FOOTER  (footer.php)
   Texto 20% mas chico, items 40% mas juntos e iconos 25% mas chicos que el
   diseño original. Los observatorios usan su propio footer (inc-footer.css).
   ========================================================================== */
footer {
    background-color: var(--color-texto);
    width: 100%;
}

.flex-footer-imgs {
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin: 0 auto 4em auto;
}

.flex-footer-imgs img {
    width: 90%;
    margin-top: 3em;
}

.footer-container-flex {
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin: auto;
    padding-bottom: 4em;
}

/* Columnas de enlaces y de contacto */
.contact-column {
    display: flex;
    flex-direction: column;
    margin-right: 2em;
    font-size: .8em;
}

#last-column {
    margin-right: 0;
}

.contact-column a {
    margin-top: 1.5em;
    text-decoration: none;
    color: #fff;
    transition: .3s;
}

.contact-column a:hover {
    color: var(--color-primario-oscuro);
}

.contact-column h4 {
    color: #9D9D9D;
}

.contact-column div {
    margin-top: .75em;
}

/* Filas con icono + texto (telefono, direccion, mail) */
.column-flex {
    display: flex;
    align-items: center;
}

.column-flex p {
    margin-left: 1em;
    color: #fff;
}

.column-flex a {
    text-decoration: none;
    margin: 0;
}

.column-flex .red-img {
    width: 13.5px;
    margin: 3px;
}

/* Redes sociales */
.contact-imgs {
    display: flex;
}

.contact-imgs a {
    margin: auto 1em auto 0;
}

.contact-imgs a img {
    width: 18px;
    transition: .5s;
}

.contact-imgs a img[alt="instagram"],
.contact-imgs a img[alt="linkedin"] {
    width: 17px;
}

.contact-imgs a img[alt="twitter"] {
    width: 15px;
}

.contact-imgs a img[alt="youtube"] {
    width: 16.5px;
}

.contact-imgs a img:hover {
    transform: translateY(-5px);
}

#maps {
    padding: 5px;
    color: #fff;
}

@media (max-width: 900px) {
    .flex-footer-imgs {
        margin-bottom: 1em;
    }

    .footer-container-flex {
        flex-direction: column;
    }

    .contact-column {
        margin-top: 3em;
    }

    .contact-column a {
        margin-top: .75em;
    }

    /* En mobile la columna de contacto pasa arriba */
    #last-column {
        order: -1;
        margin-right: 2em;
    }
}


/* ==========================================================================
   07. PAGINAS INTERNAS
   ========================================================================== */

/* --------------------------------------------------------------------------
   07.1 BREADCRUMB (.traza)
   Banda de ancho completo pegada a la portada. Estructura en cada pagina:
   <div class="traza"><p>Home</p><img ...><p>Seccion</p><img ...><p>Pagina</p></div>
   Las <img> (flechas) se ocultan: el separador es un chevron generado por CSS.
   -------------------------------------------------------------------------- */
.traza {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 0 5%;
    background: #f4f6f7;
    border-bottom: 2px solid var(--color-primario);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #6b757a;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.traza::-webkit-scrollbar {
    display: none;
}

.traza img {
    display: none;
}

.traza p {
    display: flex;
    align-items: center;
    line-height: 1;
}

.traza p + img + p::before {
    content: "\203A";
    margin: 0 .9em;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-primario-oscuro);
}

.traza a {
    color: inherit;
    text-decoration: none;
}

.traza a:hover {
    color: var(--color-primario-oscuro);
}

/* Pagina actual (ultimo item) */
.traza p:last-of-type {
    font-weight: 700;
    color: var(--color-primario-oscuro);
}

/* --------------------------------------------------------------------------
   07.2 PORTADA CON TITULO (.portada-img)
   Imagen de 20em de alto a todo el ancho, con el titulo sobre una banda oscura.
   Fondo blanco mientras carga la imagen. Recomendado: imagen de 2400 x 500 px.
   -------------------------------------------------------------------------- */
.portada-img {
    position: relative;
    background: #fff;
}

.portada-img img {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    object-fit: cover;
    width: 100%;
    height: 20em;
    margin: 0 auto;
}

.portada-img h2 {
    position: absolute;
    bottom: 1em;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    width: 90%;
    min-height: 20%;
    padding-top: 10px;
    padding-bottom: 10px;
    margin: auto;
    padding-left: .5em;
    /* azul del logo (--color-primario-oscuro): pleno hasta el 20% del ancho y
       se desvanece suavemente (varias paradas) hasta desaparecer al 92% */
    background: linear-gradient(to right,
        rgba(2, 123, 193, 0.92) 20%,
        rgba(2, 123, 193, 0.80) 32%,
        rgba(2, 123, 193, 0.55) 48%,
        rgba(2, 123, 193, 0.28) 64%,
        rgba(2, 123, 193, 0.10) 78%,
        rgba(2, 123, 193, 0) 92%);
    border-radius: 3px;
    font-family: var(--fuente-titulos);
    font-weight: 700;
    font-size: clamp(22px, 1.2rem + 1.2vw, 35px);
    letter-spacing: 0;
    color: #fff;
    /* Entrada: se revela de izquierda a derecha tras 0.5 s */
    animation: portada-revelar .9s ease-out .5s backwards;
}

@keyframes portada-revelar {
    from {
        clip-path: inset(0 100% 0 0);
        transform: translateX(-20px);
    }
    to {
        clip-path: inset(0 0 0 0);
        transform: translateX(0);
    }
}

/* Quien tiene desactivadas las animaciones en su sistema ve el titulo directo */
@media (prefers-reduced-motion: reduce) {
    .portada-img h2 {
        animation: none;
    }
}

/* --------------------------------------------------------------------------
   07.3 CONTENEDOR Y RECUADROS DE CONTENIDO
   .center ........ contenedor al 90% del ancho, centrado
   .content-html2 . recuadro de texto (Origenes, Mision y vision, Normas...)
   .content-html .. variante con texto mas grande (sin uso actual)
   Jerarquia dentro del recuadro:
   h2 = titulo de seccion (serif, linea celeste) / h3 = subtitulo (azul)
   -------------------------------------------------------------------------- */
.center {
    width: 90%;
    padding: 4em 0;
    margin: auto;
}

.content-html,
.content-html2 {
    box-shadow: var(--sombra-suave);
    padding: 1.5em;
}

.content-html p {
    font-size: 18px;
    font-weight: 500;
    line-height: 30px;
    color: #000;
}

.content-html2 p {
    font-size: 14px;
    font-weight: 300;
    line-height: 24px;
    color: #000;
}

.content-html2 ul li {
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    color: #000;
}

.content-html2 ul strong {
    font-weight: 300;
    font-size: 16px;
    color: var(--color-texto);
}

/* Subtitulo unico del sitio: serif, negrita y linea azul inferior.
   Se usa en h2/h3 del contenido, en los titulos de seccion de normativa y
   oferta academica (.FA-title-sede h2) y donde se agregue la clase .subtitulo. */
.content-html2 h2,
.content-html2 h3,
.FA-title-sede h2,
.FA-title h2,
.nov-title h3,
.normas-cuerpo h2,
.subtitulo {
    font-family: var(--fuente-titulos);
    font-size: clamp(20px, 1rem + .6vw, 26px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    color: var(--color-primario-oscuro);
    padding: 1em 0 .5em;
    margin-bottom: .6em;
    border-bottom: 2px solid var(--color-primario-oscuro);
}

/* --------------------------------------------------------------------------
   07.4 NORMAS / PUBLICACIONES
   -------------------------------------------------------------------------- */
.normassubt {
    padding-top: 25px;
}

.normassubt strong {
    font-weight: 300;
    font-size: 16px;
    color: var(--color-texto);
}

/* --------------------------------------------------------------------------
   07.5 FLOTANTE DE PREINSCRIPCION (cuadro fijo abajo a la derecha)
   -------------------------------------------------------------------------- */
.flot-inscripcion {
    width: 330px;
    max-width: calc(100vw - 40px);
    position: fixed;
    right: 2em;
    bottom: calc(1.5em + 60px + 14px);   /* encima del boton "subir" */
    z-index: 1000;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .28);
    /* Oculto fuera de pantalla (derecha). JS agrega .visible al hacer scroll. */
    opacity: 0;
    visibility: hidden;
    transform: translateX(calc(100% + 40px));
    transition: transform .6s cubic-bezier(.22, 1, .36, 1), opacity .4s ease, visibility 0s linear .6s;
}

.flot-inscripcion.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
    .flot-inscripcion,
    .flot-inscripcion-mini {
        transition: none;
    }
}

/* Cabecera azul con icono */
.flot-inscripcion-cab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--color-primario-oscuro);
    color: #fff;
}

.flot-inscripcion-ico {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    font-size: 18px;
}

.flot-inscripcion-cab p {
    margin: 0;
    font-family: var(--fuente-titulos);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.flot-inscripcion-cab p {
    flex: 1;
}

/* Boton cerrar (x): minimiza el flotante a un circulo */
.flot-inscripcion-cerrar {
    flex: none;
    align-self: flex-start;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: -4px -6px 0 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background .25s;
}

.flot-inscripcion-cerrar:hover {
    background: rgba(255, 255, 255, .22);
}

/* Circulo minimizado (icono del birrete), encima del boton "subir" */
.flot-inscripcion-mini {
    position: fixed;
    right: 2em;
    bottom: calc(1.5em + 60px + 14px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 0;
    border-radius: 50%;
    background: var(--color-primario-oscuro);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
    opacity: 0;
    visibility: hidden;
    transform: scale(.4);
    transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .3s ease, background .25s, visibility 0s linear .4s;
}

.flot-inscripcion-mini.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition-delay: 0s;
}

.flot-inscripcion-mini:hover {
    background: var(--color-primario);
}

/* Debajo de 900px el boton "subir" no existe: el flotante baja */
@media (max-width: 900px) {
    .flot-inscripcion,
    .flot-inscripcion-mini {
        bottom: 1.5em;
    }
}

/* Opciones: botones de ancho completo */
.flot-inscripcion2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px 16px;
}

.flot-inscripcion2 a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #d5dde2;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    color: var(--color-texto);
    transition: background .25s, border-color .25s, color .25s;
}

.flot-inscripcion2 a > :first-child {
    flex: none;
    width: 20px;
    text-align: center;
    font-size: 17px;
    color: var(--color-primario-oscuro);
    transition: color .25s;
}

.flot-inscripcion2 a span {
    flex: 1;
}

.flot-inscripcion2 a > :last-child {
    flex: none;
    font-size: 13px;
    color: var(--color-primario);
    transition: transform .25s, color .25s;
}

.flot-inscripcion2 a:hover {
    background: var(--color-primario-oscuro);
    border-color: var(--color-primario-oscuro);
    color: #fff;
}

.flot-inscripcion2 a:hover > * {
    color: #fff;
}

.flot-inscripcion2 a:hover > :last-child {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   07.6 AUTORIDADES
   -------------------------------------------------------------------------- */
.autoridad {
    display: flex;
    align-items: center;
    margin-bottom: 2em;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, .8);
    border-radius: 3px;
}

.autoridad p {
    margin-left: 1em;
}

.autoridad img {
    width: 6em;
    border-radius: 3px 0 0 3px;
}

#autoridades2 .foto {
    width: 96px;
    height: 96px;
    border-radius: 1000px;
}

#autoridades2 h4 {
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    color: #000000;
    text-transform: none;
    line-height: 20px;
    padding-top: 5px;
}

#autoridades2 p {
    font-weight: 500;
    font-size: 18px;
    text-align: center;
    color: var(--color-enlace);
    line-height: 22px;
    text-transform: uppercase;
    padding-top: 10px;
}

/* --------------------------------------------------------------------------
   07.7 OFERTA ACADEMICA (pagina interna: oferta-academica.php)
   Cada carrera es una caja: .blue (borde celeste) > .FA-block (contenido).
   Textos ~15% mas chicos que el original para evitar saltos de linea.
   -------------------------------------------------------------------------- */
.FA-container {
    width: 90%;
    margin: auto;
    padding: 3em 0;
}

.FA-title-sede {
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    color: #000;
}

.FA-title-sede h3 {
    color: var(--color-texto);
    margin-top: 1em;
    font-size: 17px;
    font-weight: 500;
}

/* Contenedor de cajas (carreras, normativas, cajas de la home). */
.FA-flex-container {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 3em;
}

/* Variante "centrada": 90% de ancho, cajas distribuidas y margen inferior.
   Se aplica a la home (contenedor con .study) y a las paginas que agregan la
   clase .FA-flex-inset (normativa.php). :where() mantiene la especificidad baja
   para que las reglas responsive de abajo sigan pudiendo pisarla. */
.FA-flex-container:where(.FA-flex-inset, :has(.study)) {
    justify-content: space-between;
    width: 90%;
    margin: auto;
    margin-bottom: 4em;
}

.blue {
    position: relative;
    width: 42%;
    min-width: 21em;
    background-color: var(--color-primario);
    border-radius: 6px;
    margin: 2.5em 4em 0 0;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.FA-block {
    width: 100%;
    height: 100%;
    position: relative;
    left: 8px;
    padding: 1em 2.5em;
    background: var(--color-gris-claro);
    border-radius: 0 6px 6px 0;
}

.FA-block h3 {
    color: var(--color-texto);
    margin-bottom: 1.4em;
    font-size: 16px;
    line-height: 1.3;
}

.FA-block h4 {
    font-size: 0.8em;
    line-height: 1.7;
    color: var(--color-texto) !important;
}

.FA-block h4 a {
    color: var(--color-texto);
}

.FA-block h4 a:hover {
    color: #000;
    text-decoration: none;
}

.FA-block ul li {
    font-size: 13.6px;
    line-height: 1.45;
}

.FA-block ul li a {
    color: var(--color-enlace);
    font-weight: bolder;
    text-decoration: underline;
    transition: .3s;
}

.FA-block ul li a:hover {
    color: var(--color-primario);
}

.dashed-line {
    width: 100%;
    border: 1px dashed rgba(0, 0, 0, 0.25);
}

@media (max-width: 900px) {
    .FA-flex-container {
        flex-wrap: wrap;
    }
}

@media (max-width: 800px) {
    .FA-flex-container {
        flex-wrap: nowrap;
        flex-direction: column;
        align-items: center;
    }

    .blue {
        width: 95%;
        margin: 2em 0;
    }

    .FA-block {
        padding: 2em 1em;
    }
}

@media (max-width: 650px) {
    .FA-flex-container {
        justify-content: center;
    }
}

/* Listados de normativa (.FA-flex-inset): cajas mas compactas que las de la
   home y carreras (menos alto y menos separacion entre ellas) */
.FA-compacto {
    padding-bottom: 1em;
}

.FA-flex-inset {
    padding-bottom: 1em;
    margin-bottom: 2em;
}

.FA-flex-inset .blue,
.FA-compacto .blue {
    margin: 1.1em 2em 0 0;
}

.FA-flex-inset .FA-block,
.FA-compacto .FA-block {
    padding: .6em 1.6em;
}

.FA-flex-inset .FA-block h4,
.FA-compacto .FA-block h4 {
    line-height: 1.5;
}

@media (max-width: 800px) {
    .FA-flex-inset .blue,
    .FA-compacto .blue {
        margin: .5em 0;
    }

    .FA-flex-inset .FA-block,
    .FA-compacto .FA-block {
        padding: .9em 1em;
    }
}

/* --------------------------------------------------------------------------
   07.8 INVESTIGACION Y EXTENSION (lineas / actividades)
   .page-container: recuadro con texto (.page-content) e imagen a la derecha.
   -------------------------------------------------------------------------- */
.page-container {
    display: flex;
    justify-content: space-between;
    box-shadow: var(--sombra-suave);
}

.page-content {
    padding: 1.5em;
    border-radius: 3px 0 0 3px;
}

.page-content a {
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-weight: 600;
}

.page-content ul {
    padding: 1.2em 0;
}

.page-container img {
    width: 50%;
    border-radius: 0 3px 3px 0;
    object-fit: cover;
}

.page-container .img2 {
    width: 36% !important;
    border-radius: 0 3px 3px 0;
    object-fit: cover;
}

@media (max-width: 650px) {
    .page-container {
        flex-direction: column;
        border-radius: 3px;
    }

    .page-container img {
        width: 100%;
        border-radius: 0 0 3px 3px;
        object-fit: cover;
    }
}

/* --------------------------------------------------------------------------
   07.9 OBSERVATORIOS Y BIBLIOTECAS (tarjetas .libro)
   -------------------------------------------------------------------------- */
.biblioteca-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.biblioteca-container .libro {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 21.5em;
    height: 5.5em;
    margin: 2em auto;
    padding: 1.5em 2em;
    text-decoration: none;
    border-radius: 5px;
    background-color: whitesmoke;
    color: var(--color-primario);
    box-shadow: var(--sombra-suave);
    transition: .5s;
}

.biblioteca-container .libro:hover {
    color: var(--color-primario-oscuro);
    transform: scale(1.05);   /* antes 1.1 */
}

.logoobs {
    width: 50px;
    height: auto;
    margin: auto;
    margin-top: -5px !important;
}

/* --------------------------------------------------------------------------
   07.10 NOVEDAD (detalle de una noticia: novedad.php)
   -------------------------------------------------------------------------- */
/* Nota: columna de lectura centrada (~760px), fecha, titulo grande, foto,
   texto y pie con boton "volver" y botones de compartir. */
.nota {
    max-width: 760px;
    margin: 0 auto;
}

.nota-fecha {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .35em .8em;
    border-radius: 999px;
    background: var(--color-gris-claro);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primario-oscuro);
}

.nota-titulo {
    margin: .6em 0 .8em;
    font-family: var(--fuente-titulos);
    font-size: clamp(26px, 1.2rem + 1.6vw, 38px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--color-texto);
}

.nota-foto img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 32em;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--sombra-suave);
}

.nota-texto {
    margin-top: 1.6em;
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-texto);
    text-align: left;
}

.nota-texto p {
    margin-bottom: 1.2em;
}

.nota-texto a {
    color: var(--color-enlace);
    text-decoration: underline;
}

.nota-pie {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    margin-top: 2.5em;
    padding-top: 1.5em;
    border-top: 2px solid var(--color-gris-claro);
}

.boton-volver {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    padding: .8em 1.4em;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    color: #fff;
    background-color: var(--color-primario);
    transition: .5s;
}

.boton-volver:hover {
    background-color: var(--color-primario-oscuro);
}

.nota-compartir {
    display: flex;
    align-items: center;
    gap: .6em;
    font-size: 14px;
    font-weight: 600;
    color: #6b757a;
}

.nota-compartir a,
.nota-compartir button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--color-gris-claro);
    font-size: 16px;
    color: var(--color-texto);
    text-decoration: none;
    cursor: pointer;
    transition: background .25s, color .25s;
}

.nota-compartir a:hover,
.nota-compartir button:hover {
    background: var(--color-primario-oscuro);
    color: #fff;
}

.nota-compartir small {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-primario-oscuro);
}

/* --------------------------------------------------------------------------
   07.11 EDITORIAL UNIVERSITARIA (home + vision-conjunta, contribuciones, normas)
   Las 4 paginas comparten (inc-editorial-nav.php), debajo de la foto hero:
   .eumic-banda ..... banda a todo el ancho con el logo y el titulo de la EUMIC
   .tabs-seccion .... solapas de las 4 paginas (la activa se une a la linea azul)
   .editorial-grid .. grilla de tapas (reutiliza las tarjetas .novedad)
   .normas-layout ... indice lateral + cuerpo de las normas
   -------------------------------------------------------------------------- */
.eumic-banda {
    background: var(--color-gris-claro);
}

.eumic-banda-in {
    display: flex;
    align-items: center;
    gap: 2em;
    width: 90%;
    margin: 0 auto;
    padding: 1.2em 0;
}

.eumic-banda-logo {
    flex: 0 0 auto;
    display: block;
    line-height: 0;
}

/* el logo es un JPG con fondo blanco: "multiply" hace que el blanco tome el gris de la banda */
.eumic-banda-logo img {
    display: block;
    width: 250px;
    max-width: 100%;
    height: auto;
    mix-blend-mode: multiply;
}

.eumic-banda-titulo {
    padding-left: 1.6em;
    border-left: 3px solid var(--color-primario-oscuro);
    font-family: var(--fuente-titulos);
    font-size: clamp(18px, 1rem + .6vw, 26px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primario-oscuro);
}

.tabs-seccion {
    border-bottom: 3px solid var(--color-primario-oscuro);
}

.tabs-seccion-in {
    display: flex;
    flex-wrap: wrap;
    gap: .4em;
    width: 90%;
    margin: 0 auto;
    padding-top: 1em;
}

.tabs-seccion a {
    padding: .7em 1.4em;
    border-radius: 8px 8px 0 0;
    background: var(--color-gris-claro);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-texto);
    transition: background .25s, color .25s;
}

.tabs-seccion a:hover {
    background: var(--color-primario);
    color: #fff;
}

/* solapa activa: se une a la linea azul de la seccion */
.tabs-seccion a[aria-current="page"] {
    margin-bottom: -3px;
    background: var(--color-primario-oscuro);
    color: #fff;
}

.tabs-seccion + .center {
    padding-top: 3em;
}

@media (max-width: 700px) {
    .eumic-banda-in {
        flex-direction: column;
        gap: 1em;
        text-align: center;
    }

    .eumic-banda-logo img {
        width: 220px;
    }

    .eumic-banda-titulo {
        padding-left: 0;
        border-left: 0;
    }

    .tabs-seccion a {
        flex: 1 1 45%;
        padding: .7em .8em;
        text-align: center;
        font-size: 14px;
    }
}

/* Tarjeta de tapa: la tapa se ve completa (sin recortes) y el titulo y la
   descripcion van DEBAJO de la tapa, no encima, para no tapar el diseño. */
.editorial-grid .novedad {
    overflow: hidden;
    background: #fff;
    box-shadow: var(--sombra-suave);
    color: var(--color-texto);
}

.editorial-grid .nov-img img {
    height: auto;
    object-fit: contain;
}

.editorial-grid .fecha-container {
    position: static;
    width: 100%;
    margin: 0;
    padding: .9em 1em .3em;
}

.editorial-grid .nov-fecha {
    padding: 0;
    background: none;
    border-radius: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    color: var(--color-primario-oscuro);
}

.editorial-grid .nov-description,
.novedad:hover .editorial-grid .nov-description {
    position: static;
    padding: 0 1em 1em;
    background: none;
    border-radius: 0;
}

.editorial-grid .novedad:hover .nov-description {
    background: none;
}

.editorial-grid .nov-description h5 {
    margin-bottom: .6em;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-texto);
}

.editorial-grid .nov-description {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Boton de abrir: lupa en circulo azul, siempre abajo a la derecha de la
   tarjeta (margin-top:auto lo empuja al pie aunque el texto sea corto).
   El enlace real es toda la tarjeta (.nov-img::after); esto es el indicador. */
.editorial-grid .nov-link {
    margin-top: auto;
    padding-top: .4em;
}

.editorial-grid .nov-link a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.3em;
    height: 2.3em;
    border-radius: 50%;
    background: var(--color-primario-oscuro);
    color: #fff;
    font-size: 15px;
    transition: background .3s ease, transform .3s ease;
}

.editorial-grid .novedad:hover .nov-link a {
    background: var(--color-primario);
    color: #fff;
    transform: scale(1.12);
}

@media (min-width: 901px) {
    .editorial-grid {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 1em 1.6em;
    }

    /* 4 por fila (3 por fila en pantallas de 901 a 1150px) */
    .editorial-grid .novedad {
        width: calc((100% - 4.8em) / 4);
    }
}

@media (min-width: 901px) and (max-width: 1150px) {
    .editorial-grid .novedad {
        width: calc((100% - 3.2em) / 3);
    }
}

.normas-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 3em;
    max-width: 1020px;
    margin: 0 auto;
}

.normas-indice {
    position: sticky;
    top: 6em;
    align-self: start;
    padding: 1.2em 1.4em;
    border-radius: 8px;
    background: var(--color-gris-claro);
}

.normas-indice p {
    margin-bottom: .6em;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--color-primario-oscuro);
}

.normas-indice ul {
    list-style: none;
}

.normas-indice li {
    margin: 0;
    padding: .35em 0;
}

.normas-indice a {
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-texto);
    transition: color .25s;
}

.normas-indice a:hover {
    color: var(--color-primario-oscuro);
}

.normas-cuerpo {
    font-size: 15.3px;   /* 10% menos que 17px */
    line-height: 1.75;
    color: var(--color-texto);
}

.normas-cuerpo h2 {
    scroll-margin-top: 6em;
}

.normas-cuerpo p {
    margin-bottom: 1em;
}

.normas-cuerpo li {
    color: var(--color-texto);
}

.normas-cuerpo a {
    color: var(--color-enlace);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .normas-layout {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }

    .normas-indice {
        position: static;
    }
}

/* ==========================================================================
   08. HOME  (home.php)
   Los componentes de esta seccion se usan en la pagina de inicio y, algunos,
   en Novedades.
   ========================================================================== */

/* --------------------------------------------------------------------------
   08.1 CARRUSEL
   Controlado por code.js (#slider, #btn_left, #btn_right).
   -------------------------------------------------------------------------- */
.slider_container {
    position: relative;
    width: 100%;
    margin: auto;
    overflow: hidden;
}

.slider {
    display: flex;
    margin-left: -100%;
    width: 400%;
    height: 30em;
}

.slider_section {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider_section img,
.slider_section video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bloque de texto sobre la imagen.
   Una sola mascara: degradado oscuro a la izquierda (donde va el texto) que se
   desvanece hacia la derecha. Contenido centrado verticalmente; el boton
   "Ver Mas" va debajo del texto. */
.section_content {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 80%;
    height: 100%;
    padding: 2em 6em;
    background: linear-gradient(to right,
        rgba(0, 0, 0, 0.62) 0%,
        rgba(0, 0, 0, 0.55) 45%,
        rgba(0, 0, 0, 0.28) 75%,
        rgba(0, 0, 0, 0) 100%);
    text-decoration: none;
    z-index: 100;
}

/* Slide de bienvenida: texto y boton centrados */
.section_content-centrado {
    width: 70%;
    padding-right: 22%;
    align-items: center;
    text-align: center;
}

/* Escritorio: el nombre de la unidad academica va en una sola linea y la
   lista de carreras no se estira mas alla de ~34em */
@media (min-width: 901px) {
    .section_content:not(.section_content-centrado) h1 {
        white-space: nowrap;
    }

    .section_content:not(.section_content-centrado) ul {
        max-width: 34em;
    }
}

.section_content h3 {
    font-weight: 700;
    font-size: 14px;
    color: var(--color-primario);
}

.section_content h1 {
    margin: .5em 0 .8em 0;
    font-family: var(--fuente-titulos);
    font-weight: 600;
    font-size: clamp(18px, 1.7vw, 26px);
    letter-spacing: 0;
    color: #fff;
}

.section_content ul li,
.section_content p {
    font-weight: 400;
    font-size: 16px;
    color: #fff;
    margin-bottom: .5em;
}

.section_content span {
    width: auto;
    height: auto;
    margin-top: 1.2em;
    padding: .8em;
    font-size: 16px;
    border-radius: 5px;
    color: #fff;
    background-color: var(--color-primario);
    transition: .5s;
}

.section_content span:hover {
    background-color: var(--color-primario-oscuro);
}

/* Flechas del carrusel */
.slider_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5em;
    height: 2.5em;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    border-radius: 50%;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all .5s;
    z-index: 110;
}

.slider_btn:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.slider_btn_left {
    left: 10px;
}

.slider_btn_right {
    right: 10px;
}

@media (max-width: 900px) {
    .slider {
        height: 32em;
    }

    .slider_section {
        background-color: var(--color-texto);
    }

    /* Imagen/video de fondo: cubren todo el slide (sin franjas) */
    .slider_section img,
    .slider_section video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 72% center;
    }

    /* Texto centrado en vertical; margen lateral para no tapar las flechas */
    .section_content {
        width: 100%;
        padding: 2em 3.2em;
        justify-content: center;
        background: rgba(0, 0, 0, 0.55);
    }

    .section_content h3 {
        font-size: 15px;
    }

    .section_content h1 {
        font-size: clamp(19px, 4.6vw, 26px);
        line-height: 1.25;
    }

    .section_content ul li,
    .section_content p {
        font-size: 16px;
    }

    /* Slide de bienvenida: texto grande y centrado */
    .section_content-centrado {
        width: 100%;
        padding: 2em 3.2em;
        align-items: center;
        text-align: center;
    }

    .section_content-centrado h1 {
        margin: 0 0 .6em 0;
        font-size: clamp(26px, 7.4vw, 44px);
        line-height: 1.2;
    }

    .section_content-centrado h1 br {
        display: none;
    }

    .section_content-centrado p {
        font-size: clamp(18px, 4.6vw, 26px);
        line-height: 1.35;
        margin-bottom: .4em;
    }

    .section_content-centrado span {
        margin-top: 1.2em;
        padding: .8em 1.4em;
        font-size: clamp(17px, 4.2vw, 22px);
    }

    .slider_btn {
        color: rgba(255, 255, 255, .6);
        background-color: rgba(255, 255, 255, 0);
    }

    .slider_btn_left {
        left: 5px;
    }

    .slider_btn_right {
        right: 5px;
    }
}

/* --------------------------------------------------------------------------
   08.2 OFERTA ACADEMICA (home): titulo + 5 cajas .study con desplegable
   Desplegable controlado por code.js (alterna .border y .bajar, ver seccion 09).
   Escritorio: 5 por fila | Tablet: 2 por fila | Mobile: 1 por fila.
   -------------------------------------------------------------------------- */
.FA-title {
    width: 90%;
    margin: 0 auto 1.5em auto;
    padding-top: 1em;
}
/* El h2 usa el estilo unico de subtitulo (ver 07.3) */

/* El contenedor .FA-flex-container (07.7) tiene una variante con .study (ver alli). */
.study {
    width: 18%;
    border-radius: 5px;
}

.study-title {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 6em;
    border-radius: 5px 5px 0 0;
    color: var(--color-texto);
    background-color: var(--color-gris-claro);
}

.study-title h3 {
    font-weight: 700;
    font-size: 20px;
}

.dropdown-study {
    position: relative;
    cursor: pointer;
}

.dropdown-study p {
    display: flex;
    justify-content: flex-end;
    font-weight: 700;
    font-size: 10px;
    background-color: var(--color-primario);
    padding: 1em;
    color: #fff;
    border-radius: 0 0 5px 5px;
    transition: ease-in 1s;
}

.dropdown-study ul {
    position: absolute;
    width: 100%;
    padding: 1em 1em;
    background-color: var(--color-primario);
    z-index: 1000;
    border-radius: 0px 0px 5px 5px;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: .7s;
}

.dropdown-study ul li {
    padding: 0.2em;
    list-style-position: outside;
}

.dropdown-study ul li::marker {
    color: #fff;
}

.dropdown-study ul li a {
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    color: #fff;
}

.dropdown-study ul li:hover a {
    color: var(--color-texto);
}

/* Boton centrado (mismo estilo que "Ver Mas" del carrusel). Se usa para
   "Ver Toda la Oferta Academica" y "Ver todas las novedades". */
.FA-link {
    display: flex;
    justify-content: center;
    width: 90%;
    margin: 0 auto;
    padding-bottom: 3em;
}

.FA-link a {
    padding: .8em 1.4em;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    color: #fff;
    background-color: var(--color-primario);
    transition: .5s;
}

.FA-link a:hover {
    background-color: var(--color-primario-oscuro);
}

/* En la home el boton queda cerca de las cajas (no 4em mas abajo) */
#oferta-ACADÉMICA .FA-flex-container {
    margin-bottom: 1.5em;
    padding-bottom: 0;
}

/* Tablet (<=1050px): 2 cajas por fila */
@media (max-width: 1050px) {
    .FA-flex-container:has(.study) {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: stretch;
    }

    .FA-flex-container:has(.study) .study {
        width: 48%;
        margin-bottom: 2.5em;
    }
}

/* Mobile (<=650px): 1 caja por fila */
@media (max-width: 650px) {
    .FA-flex-container:has(.study) {
        flex-direction: column;
        align-items: center;
    }

    .FA-flex-container:has(.study) .study {
        width: 100%;
        max-width: 22em;
    }
}

/* --------------------------------------------------------------------------
   08.3 NOVEDADES (home y novedades.php)
   -------------------------------------------------------------------------- */
.nov-container {
    width: 90%;
    margin: 0em auto;
    padding-bottom: 4em;
}

/* Home: boton "Ver todas las novedades" pegado al bloque de noticias y con
   mas aire antes de la seccion siguiente */
#novedades .nov-container {
    padding-bottom: 0;
}

#novedades .FA-link {
    padding-top: 1em;
    padding-bottom: 5em;
}

.nov-title {
    width: 100%;
    padding-bottom: 1.5em;
}

.nov-flex-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: auto;
}

.nov-img img {
    display: block;
    width: 100%;
    height: 19.5em;   /* 35% menos que los 30em originales */
    border-radius: 5px;
    object-fit: cover;
}

/* Toda la tarjeta es un enlace: el pseudo-elemento del enlace de la imagen
   (.nov-img, sin position) se estira sobre .novedad (position: relative). */
.nov-img::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 5px;
    cursor: pointer;
}

/* Hover: la foto hace un zoom suave (dentro de la tarjeta) y el fondo del
   titulo pasa al azul del logo. La tarjeta no cambia de tamano. */
.nov-img {
    display: block;
    overflow: hidden;
    border-radius: 5px;
}

.nov-img img {
    transition: transform .6s ease;
}

.novedad:hover .nov-img img {
    transform: scale(1.04);
}

.novedad:hover .nov-description {
    background: rgba(2, 123, 193, 0.9);
}

.novedad {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 1em 0;
    width: 24%;
    border-radius: 5px;
    color: #fff;
    z-index: 1;
}

/* Fecha: banda al 90% del ancho de la tarjeta, texto centrado, azul del logo
   con leve transparencia */
.fecha-container {
    position: absolute;
    width: 90%;
    margin: 1em 5%;
}

.nov-fecha {
    width: 100%;
    background: rgba(2, 123, 193, 0.88);
    border-radius: 6px;
    padding: .5em;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
}

.nov-description {
    position: absolute;
    bottom: 0;
    background: rgba(59, 68, 73, 0.8);
    border-radius: 0 0 5px 5px;
    padding: 1em;
    transition: background .4s ease;
}

.nov-description a {
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    color: #fff;
}

.nov-description h4 {
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    margin-bottom: .3em;
}

.nov-description h5 {
    font-weight: 100;
    font-size: 14px;
    line-height: 16px;
    margin-bottom: .3em;
}

.nov-description-mini {
    font-size: 10px;
    color: #464646;
}

.nov-link {
    display: flex;
    justify-content: flex-end;
}

/* Boton de abrir de las tarjetas: lupa en circulo azul (abajo a la derecha).
   Sobre el fondo azul del hover pasa a circulo blanco con la lupa azul. */
.nov-link a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.3em;
    height: 2.3em;
    border-radius: 50%;
    background: var(--color-primario-oscuro);
    color: #fff;
    font-size: 15px;
    transition: background .3s ease, color .3s ease, transform .3s ease;
}

.novedad:hover .nov-link a {
    background: #fff;
    color: var(--color-primario-oscuro);
    transform: scale(1.12);
}

@media (max-width: 900px) {
    .nov-flex-container {
        flex-direction: column;
        align-items: center;
    }

    .novedad {
        width: 30em;
    }

    .nov-description {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 30%;
    }
}

/* --------------------------------------------------------------------------
   08.4 SEDES (banda con los logos de las sedes)
   -------------------------------------------------------------------------- */
/* Fondo a todo el ancho de pantalla: la imagen se escala (cover) y, cuando la
   pantalla es mas ancha/angosta que la imagen, se recorta de forma centrada. */
.sedes-container {
    width: 100%;
    margin: 0;
    background-image: url("assets/sedes/background.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.sedes-filter {
    width: 100%;
    margin: auto;
    padding: 3em;
    background-color: rgba(59, 68, 73, 0.85);
}

.sedes-filter h3 {
    margin: 1em auto 2.5em auto;
    text-align: center;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
}

.imgs-container {
    display: flex;
    justify-content: center;
}

.sede-img {
    margin: auto 2em;
    transition: 0.5s;
}

.sede-img:hover {
    transform: scale(1.1);
}

@media (max-width: 900px) {
    .imgs-container {
        flex-wrap: wrap;
    }
}

@media (max-width: 650px) {
    .sedes-filter {
        padding: 0;
    }

    .sedes-filter h3 {
        padding: 1em;
        margin: auto;
    }

    .imgs-container {
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .imgs-container a img {
        margin: 1em 0;
    }

    .sede-img {
        margin-top: 3em;
    }
}

/* --------------------------------------------------------------------------
   08.5 EVENTOS (banda celeste con tarjetas de eventos)
   -------------------------------------------------------------------------- */
.events-container {
    width: 100%;
    background-color: #74C9DF;
    padding: 4em 0;
}

.event-title-link {
    display: flex;
    justify-content: space-between;
    width: 90%;
    padding: 0 0 2em 0;
    margin: auto;
    color: #fff;
}

.event-title-link a {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    transition: .3s;
}

.event-title-link a:hover {
    color: var(--color-texto);
}

.flex-events {
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin: auto;
}

.event {
    width: 32%;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 5px;
    padding: 1em;
}

.event-num-cat {
    display: flex;
    justify-content: space-between;
}

.event-num-cat h3 {
    font-weight: 900;
    font-size: 33px;
    color: #000000;
}

.event-num-cat p {
    display: flex;
    align-items: center;
    font-weight: 300;
    font-size: 11px;
    color: #50B8B1;
}

.event-month h4 {
    font-weight: 300;
    font-size: 28px;
    color: #000000;
}

.month-line {
    background-color: #50B8B1;
    width: 25%;
    height: .4em;
}

.event-text {
    padding: 1em 0;
    font-weight: 500;
    font-size: 16px;
    color: #000000;
}

.event-time-info {
    display: flex;
    justify-content: space-between;
}

.event-time-info p {
    color: #000000;
    font-weight: 300;
    font-size: 15px;
    margin-right: .5em;
}

.event-time-info a {
    align-self: flex-end;
    text-decoration: none;
    color: #74C9DF;
    font-weight: 500;
    font-size: 11px;
    transition: .3s;
}

.event-time-info a:hover {
    color: var(--color-primario-oscuro);
}

@media (max-width: 900px) {
    .flex-events {
        flex-direction: column;
        align-items: center;
    }

    .event-title-link {
        padding: 0;
    }

    .event {
        width: 28em;
        margin-top: 3em;
    }
}

/* Tarjetas de eventos y novedades en mobile */
@media (max-width: 650px) {
    .event,
    .novedad {
        max-width: 95%;
    }
}

/* Tarjetas de novedades y de tapas (Vision Conjunta / Contribuciones):
   2 por fila en mobile y tablet chica */
@media (max-width: 900px) {
    .nov-flex-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: stretch;
    }

    .novedad {
        width: 48.5%;
        max-width: none;
        margin: .5em 0;
    }

    .nov-img img {
        height: 12em;
    }

    .fecha-container {
        margin: .6em 5%;
    }

    .nov-fecha {
        padding: .35em;
        font-size: 12px;
    }

    .nov-description {
        height: auto;
        padding: .6em;
    }

    .nov-description h4 {
        margin-bottom: .2em;
        font-size: 13px;
        line-height: 1.2;
    }

    .nov-link a {
        font-size: 12px;
    }

    /* Tapas: se ven completas, texto mas chico debajo */
    .editorial-grid .nov-img img {
        height: auto;
    }

    .editorial-grid .fecha-container {
        margin: 0;
        padding: .6em .7em .2em;
    }

    .editorial-grid .nov-fecha {
        padding: 0;
        font-size: 13px;
    }

    .editorial-grid .nov-description {
        padding: 0 .7em .7em;
    }

    .editorial-grid .nov-description h5 {
        font-size: 12px;
    }
}


/* ==========================================================================
   09. UTILIDADES
   Clases sueltas que se usan dentro de los HTML de las paginas y del contenido
   cargado desde el panel admin. No borrar aunque no aparezcan en los .php.
   ========================================================================== */

/* Desplegable de Oferta Academica (home): las agrega/quita code.js al hacer click */
.border {
    border-radius: 0 !important;
    transition: ease-in .1s !important;
}

.bajar {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important;
}

.ext-enlaces {
    text-decoration: underline !important;
}

.textomayuscula {
    text-transform: uppercase;
}

.mt30 {
    margin-top: 30px;
}

.clearr {
    clear: both;
}

.achica {
    font-size: 0.9em;
}

.achica-fuente {
    font-size: 0.75em;
}

.segundoul {
    margin-left: 20px;
}

.eumic-logo {
    width: 600px !important;
    max-width: 90%;
    height: auto;
}
