@charset "UTF-8";

/* ==========================================================================
   1. FUENTES Y BASE
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@300;400;500;700;900&display=swap');
@import url("https://www.uni-mannheim.de/typo3conf/ext/uma_site/Resources/Public/Icons/sprite.css");
@import url("https://www.uni-mannheim.de/typo3conf/ext/uma_site/Resources/Public/Css/app.css");

/* ==========================================================================
   2. ACCESIBILIDAD
   ========================================================================== */
#skipnav { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; z-index: 99999; }
#skipnav:focus { position: fixed; top: 10px; left: 10px; width: auto; height: auto; background: #333; color: #fff; padding: 10px 20px; z-index: 100000; }

/* ==========================================================================
   3. ESTRUCTURA GLOBAL
   ========================================================================== */
html { position: relative; min-height: 100%; }

body {
    font-family: 'Lato', sans-serif !important;
    background-color: #fcfcfc;
    color: #333;
    margin: 0 0 450px; 
    padding-top: 140px; 
    overflow-x: hidden;
}

#admin-bar { position: fixed !important; top: 0; left: 0; width: 100%; z-index: 99999 !important; }
body.admin-bar header { top: 36px !important; }
body.admin-bar { padding-top: 180px !important; }

#wrap {
    width: 90% !important; max-width: 1300px !important; margin: 40px auto; padding: 0;
    background: transparent; border: none !important; box-shadow: none !important;
}

a { color: #D34037 !important; text-decoration: none; transition: 0.3s; }
a:hover { color: #b02a22 !important; }

/* FIX LOGOS */
#header-logo a, .footer-logo a, .logo2 a, a.no-border-link { border: none !important; background: transparent !important; display: inline-block !important; }

/* ==========================================================================
   4. HEADER FIJO (PC)
   ========================================================================== */
header {
    position: fixed !important; top: 0; left: 0; right: 0; width: 100% !important; height: 110px; z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 30px rgba(0,0,0,0.03);
    display: flex; align-items: center; justify-content: center;
    margin: 0 !important; padding: 0 !important;
    transition: all 0.3s ease;
}

header .align-bottom {
    width: 95% !important; max-width: 1400px !important;
    display: flex !important; justify-content: space-between !important; align-items: center !important;
    height: 100%;
}

/* LOGO */
#site-title { display: flex; align-items: center; }
#header-logo img { height: 75px !important; width: auto; margin-right: 25px; }
body.primary #header-logo { display: none !important; }

/* TÍTULO */
#header-text { font-size: 0 !important; line-height: 0; display: flex !important; flex-direction: column; justify-content: center; margin: 0 !important; }
#header-text::before { content: "ESCUELA NORMAL SUPERIOR"; font-family: 'Montserrat', sans-serif; font-size: 0.9rem; font-weight: 500; color: #888; letter-spacing: 2px; line-height: 1.4; display: block; margin-bottom: 3px; }
#header-text::after { content: "MARÍA AUXILIADORA"; font-family: 'Montserrat', sans-serif; font-size: 1.6rem; font-weight: 800; color: #D34037; letter-spacing: -0.5px; line-height: 1; display: block; }

/* MENÚ ESCRITORIO */
.uma-header-right { float: none !important; height: 100%; display: flex; align-items: center; }
#top-nav ul.navigation { display: flex !important; list-style: none; margin: 0; padding: 0; border: none; height: 100%; }
#top-nav ul.navigation li { margin-left: 5px !important; height: 100%; display: flex; align-items: center; }
#top-nav ul.navigation li a {
    font-family: 'Montserrat', sans-serif !important; font-weight: 600; font-size: 0.9rem; color: #555 !important; text-transform: uppercase;
    padding: 10px 20px; border-radius: 50px; border: none !important; transition: all 0.3s ease;
}
#top-nav ul.navigation li a:hover, #top-nav ul.navigation li.active a { color: #D34037 !important; background-color: rgba(211, 64, 55, 0.05) !important; }

/* HAMBURGUESA OCULTA EN PC */
#mobile-menu-trigger { display: none; }

#search-container { display: none !important; }

/* ==========================================================================
   5. HOME Y ELEMENTOS
   ========================================================================== */
#home-search-container { text-align: center; padding: 80px 20px; background: #fff; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.04); margin-bottom: 40px; border: 1px solid rgba(0,0,0,0.02); }
#home-search-container input[type="text"] { width: 100%; max-width: 700px; padding: 20px 30px; font-size: 1.2rem; border: 2px solid #f0f0f0 !important; border-radius: 50px !important; outline: none; transition: 0.3s; font-family: 'Lato', sans-serif; }
#home-search-container input[type="text"]:focus { border-color: #D34037 !important; box-shadow: 0 5px 20px rgba(211, 64, 55, 0.1); }
#home-search-container button, #home-search-container input[type="submit"] {
    margin-top: 30px !important; padding: 15px 60px !important; background: #D34037 !important; color: #fff !important; border: none !important; border-radius: 50px !important; font-weight: 700; text-transform: uppercase; cursor: pointer; box-shadow: 0 10px 20px rgba(211, 64, 55, 0.25);
}
#home-search-container #advanced-form fieldset, #home-search-container legend { display: none !important; }
#home-search-container #advanced-form { border:none !important; margin-top: 25px; }

/* ==========================================================================
   6. FOOTER ABSOLUTO
   ========================================================================== */
footer, .uma-footer {
    position: absolute; bottom: 0; left: 0; width: 100% !important; height: 380px;
    background-color: #D34037 !important; color: #fff !important; padding: 60px 0 !important; border-top: none; z-index: 10;
    display: flex; align-items: center; justify-content: center;
}
.footer-content { width: 90% !important; max-width: 1400px !important; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.footer-social { order: 1; text-align: left; min-width: 200px; }
.footer-social p { margin: 0 0 15px 0; color: rgba(255,255,255,0.8) !important; font-size: 0.85rem; text-transform: uppercase; font-weight: 700; letter-spacing: 2px; }
.icon-facebook svg { width: 45px; height: 45px; fill: #fff !important; opacity: 0.9; transition: 0.3s; }
.icon-facebook:hover svg { opacity: 1; transform: scale(1.1); }
.footer-social a { border: none !important; background: transparent !important; }
.footer-credits { order: 2; text-align: center; font-size: 0.9rem; opacity: 0.8; font-weight: 400; }
.footer-logo { order: 3; text-align: right; min-width: 200px; }
.logo2 .hosted { display: block; text-align: right; font-size: 0.75rem; text-transform: uppercase; margin-bottom: 12px; color: rgba(255,255,255,0.7) !important; font-weight: 600; letter-spacing: 1px; }
.ub-logo { max-height: 140px !important; filter: brightness(0) invert(1) !important; opacity: 0.95; }
.cookie-notice, .cookie-controls, .logos .uni-logo, .footer-inner { display: none !important; }
footer a { border: none !important; }

/* Cookies */
.cookie-notice { display: flex !important; position: fixed; bottom: 0; left: 0; width: 100%; background: #222; color: #fff; padding: 15px; z-index: 99999; justify-content: center; align-items: center; gap: 20px; }
.cookie-button { background: #D34037 !important; border: none; padding: 8px 20px; color: #fff; border-radius: 4px; font-weight: 700; }


/* ==========================================================================
   7. RESPONSIVE / MÓVIL (CORREGIDO)
   ========================================================================== */
@media screen and (max-width: 900px) {
    /* Cuerpo y Footer */
    body { margin-bottom: 600px; padding-top: 130px; }
    body.admin-bar { padding-top: 170px !important; }
    footer { height: auto; padding: 40px 0 !important; }
    
    /* Header Flexible */
    header { height: auto; min-height: 90px; padding: 10px 0 !important; }
    
    /* Layout Horizontal */
    header .align-bottom { 
        flex-direction: row !important; 
        justify-content: space-between !important; 
        align-items: center !important;
        width: 90% !important;
    }
    
    /* Logo + Texto Izquierda */
    #site-title { flex: 1; flex-direction: row; align-items: center; margin: 0; }
    #header-logo img { margin-right: 10px; margin-bottom: 0; height: 50px !important; }
    #header-text { align-items: flex-start; }
    #header-text::before { font-size: 0.6rem; letter-spacing: 0.5px; }
    #header-text::after { font-size: 1rem; margin-top: 0; text-align: left; }

    /* 1. BOTÓN HAMBURGUESA (FORZAR VISIBILIDAD) */
    #mobile-menu-trigger { 
        display: block !important; 
        width: 40px; height: 40px; /* Tamaño fijo */
        padding: 5px;
        margin-left: 15px; 
        cursor: pointer; 
        z-index: 1002;
        flex-shrink: 0; /* No se aplasta */
    }
    
    /* Las líneas de la hamburguesa (ROJO INTENSO) */
    #mobile-menu-trigger span { 
        display: block; 
        width: 100%; 
        height: 4px; 
        margin: 5px 0; 
        background-color: #D34037 !important; /* ROJO PARA QUE SE VEA */
        border-radius: 4px; 
        transition: all 0.3s;
    }
    
    /* Animación X */
    #mobile-menu-trigger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    #mobile-menu-trigger.open span:nth-child(2) { opacity: 0; }
    #mobile-menu-trigger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* 2. MENÚ DESPLEGABLE CON FONDO BLANCO */
    #top-nav ul.navigation {
        display: none !important; /* Oculto por defecto */
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        
        background-color: #ffffff !important; /* FONDO BLANCO SOLIDO */
        
        border-top: 3px solid #D34037;
        box-shadow: 0 50px 100px rgba(0,0,0,0.3); /* Sombra fuerte para resaltar */
        padding: 0;
        z-index: 999;
    }

    /* Mostrar menú con JS */
    #top-nav ul.navigation.show-menu { display: flex !important; animation: slideDown 0.3s forwards; }

    /* Items del menú móvil */
    #top-nav ul.navigation li { 
        margin: 0 !important; width: 100%; text-align: center; 
        border-bottom: 1px solid #eee; /* Línea divisoria */
        background-color: #ffffff !important; /* Fondo blanco en cada item */
    }
    
    #top-nav ul.navigation li a { 
        width: 100%; display: block; padding: 20px 0; 
        color: #333 !important; /* Texto oscuro */
        background-color: transparent !important;
        font-weight: 700;
    }
    
    #top-nav ul.navigation li a:hover {
        background-color: #f5f5f5 !important;
        color: #D34037 !important;
    }

    /* Footer Stack */
    .footer-content { flex-direction: column; text-align: center; gap: 40px; }
    .footer-social, .footer-logo, .footer-credits { order: unset; text-align: center !important; min-width: 0; }
    .logo2 .hosted { text-align: center; }
}

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }