/**
 * @file plugins/themes/default/styles/wordpress-footer.css
 *
 * Footer override para OJS
 *
 * RUTA EN EL SERVIDOR OJS:
 *   /plugins/themes/default/styles/wordpress-footer.css
 */

/* ══════════════════════════════════════════════════════
   STICKY FOOTER — siempre anclado al fondo del viewport
   ══════════════════════════════════════════════════════ */

.pkp_structure_page {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

.pkp_structure_content {
    flex: 1 0 auto !important;
}

.pkp_structure_footer_wrapper {
    flex-shrink: 0 !important;
}

/* ── Google Fonts para el footer ── */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

/* ══════════════════════════════════════════════
   FOOTER — OVERRIDE VISUAL (Colores Custom)
   ══════════════════════════════════════════════ */

.pkp_structure_footer_wrapper {
    max-width: 1240px !important;
    margin-top: 48px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding: 0 24px 32px !important;
    background: transparent !important;
}

.pkp_structure_footer {
    position: relative !important;
    padding: 28px 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 28px !important;
    /* Degradado con los nuevos colores solicitados (Cambiado a 90deg de izquierda a derecha) */
    background: linear-gradient(90deg, #69c8e6 0%, #09647f 100%) !important;
    box-shadow: 0 22px 42px rgba(9, 100, 127, 0.22) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-align: left !important;
}

.pkp_structure_footer a,
.pkp_footer_content,
.pkp_footer_content p,
.pkp_brand_footer,
.pkp_brand_footer a {
    color: #ffffff !important;
}

.pkp_structure_footer a:hover,
.pkp_structure_footer a:focus,
.pkp_brand_footer a:hover,
.pkp_brand_footer a:focus {
    color: rgba(255, 255, 255, 0.8) !important;
}

.pkp_footer_content {
    padding: 0 0 18px 0 !important;
    font-family: "Roboto", sans-serif !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    text-align: left !important;
}

.pkp_brand_footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 0 0 0 !important;
}

.pkp_brand_footer a {
    float: right !important;
    display: block !important;
    max-width: 150px !important;
    opacity: 0.9 !important;
    transition: opacity 0.2s ease !important;
}

/* Fuerza al logo nativo de PKP/OJS (que en OJS es oscuro) a ser color BLANCO para hacer contraste con el fondo oscuro */
.pkp_brand_footer a img {
    filter: brightness(0) invert(1) !important;
}

.pkp_brand_footer a:hover,
.pkp_brand_footer a:focus {
    opacity: 1 !important;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

@media (max-width: 991px) {
    .pkp_structure_footer_wrapper {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
}

@media (max-width: 767px) {
    .pkp_structure_footer {
        padding: 24px 20px !important;
        border-radius: 22px !important;
    }

    .pkp_footer_content {
        font-size: 0.9rem !important;
    }

    .pkp_brand_footer a {
        float: none !important;
        margin-top: 14px !important;
        max-width: 120px !important;
    }
}

/* ══════════════════════════════════════════════
   CONTACTO FOOTER OJS (Inyectado via JS)
   ══════════════════════════════════════════════ */

.cesfro-footer-contact {
    font-family: "Roboto", sans-serif !important;
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
    max-width: 65% !important;
}

.cesfro-footer-contact .contact-item {
    margin-bottom: 8px !important;
}

.cesfro-footer-contact strong {
    color: #ffffff !important;
    font-weight: 700 !important;
    margin-right: 6px !important;
    letter-spacing: 0.03em !important;
}

.cesfro-footer-contact a {
    color: #d8f5ff !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    float: none !important;
    display: inline !important;
    max-width: none !important;
}

.cesfro-footer-contact a:hover,
.cesfro-footer-contact a:focus {
    color: #ffffff !important;
    text-decoration: none !important;
}

@media (max-width: 767px) {
    .pkp_brand_footer {
        flex-direction: column-reverse !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .cesfro-footer-contact {
        font-size: 0.88rem !important;
        text-align: center !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
    }
}
