@charset "UTF-8";
/**
 * footer.css — Bajo Nalón Tema WP
 *
 * Estilos del pie de página (footer.php) y del modal de vídeo
 * embebido en él. Extraído de styles.css legacy durante el sprint
 * de design tokens y refactorizado para consumir los tokens del
 * Kit de Elementor + tokens técnicos de tokens.css.
 */

/* ─── Modal de vídeo (vive en footer.php) ───────────────────────────────── */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.72);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity .25s ease;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.video-modal.bn-video-open {
    /* Clase añadida por JS para activar la versión ampliada/animada */
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: auto;
    aspect-ratio: 16 / 9;
    transform: translateY(10px) scale(.98);
    transition: transform .32s cubic-bezier(.2,.9,.2,1), box-shadow .32s ease, opacity .28s ease;
    opacity: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.video-modal.bn-video-open .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
    box-shadow: 0 40px 120px rgba(0,0,0,0.75);
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--bn-color-white);
    font-size: 2.2rem;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display:flex;
    align-items:center;
    justify-content:center;
    border: none;
    cursor: pointer;
    z-index: 2100;
    transition: transform .18s ease, background .18s ease;
}

.modal-close:hover { transform: scale(1.1); background: rgba(0,0,0,0.6); }

/* ─── Lightbox de imágenes (mismo tamaño que video) ───────────────────────── */
.lightbox-modal {
    display: none; 
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    width: 90% !important;
    max-width: 1000px !important;
    height: auto !important;
    max-height: 85vh !important;
    aspect-ratio: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.6);
    display: block;
}

div#videoPlaceholder {
    height: 100%;
}


/* ─── Footer ────────────────────────────────────────────────────────────── */
.main-footer {
    background-color: #F8FAFC; /* 1 use, unique to component */
    color: #444; /* 1 use, unique to component */
    padding: 80px 5% 40px 5%;
    font-family: var(--e-global-typography-text-font-family);
}

.footer-container {
    /* Footer tiene su propio max-width más estrecho (1400px) porque el
       padding lateral lo provee .main-footer con padding: 80px 5%. */
    max-width: 1400px;
    margin-inline: auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column.branding {
    flex: 1.5;
}

.footer-logo img {
    width: 150px;
    margin-bottom: 30px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: var(--e-global-color-secondary);
    font-size: 1.4rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-3px);
}

.footer-column h3 {
    color: var(--e-global-color-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    /* Reduced width to match image better */
    height: 4px;
    background: linear-gradient(90deg, var(--bn-color-yellow), var(--e-global-color-primary));
}

.footer-column ul {
    list-style: none;
    margin-top: 20px;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--bn-color-surface-dark);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--e-global-color-primary);
}

.footer-bottom {
    border-top: 3px solid #006c943d; /* 1 use, unique to component (secondary con alpha ~24%) */
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--bn-color-surface-dark);
}

/* .copyright: estilos heredados de .footer-bottom; regla vacía eliminada */

.legal-links {
    display: flex;
    gap: 30px;
}

.legal-links a {
    color: var(--bn-color-surface-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--e-global-color-primary);
}

/* ─── Logos institucionales ─────────────────────────────────────────────── */
.footer-logos {
    padding-top: 40px;
    border-top: 1px solid rgba(0, 108, 148, 0.15);
    background-color: #FFFFFF;
    padding: 10px 0 24px;
}

.footer-logos-row {
    width: min(100%, 1440px);
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: center;
    justify-items: center;
    padding: 0 24px;
}

.footer-logos-row + .footer-logos-row {
    margin-top: 24px;
}

.footer-logos-row-secondary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-logo-img {
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

img.footer-logo-img.footer-logo-financiado-union-europea {
    max-height: 197px !important;
}

img.footer-logo-img.footer-logo-prtr {
    max-height: 95px !important;
}

img.footer-logo-img.footer-logo-gobierno-espana {
    max-height: 70px !important;
}

img.footer-logo-img.footer-logo-gobierno-principado-asturias {
    max-height: 105px !important;
}

img.footer-logo-img.footer-logo-cincovillas {
    max-height: 100px !important;
}

img.footer-logo-img.footer-logo-bajo-nalon-desarrollo-rural {
    max-height: 82px !important;
}

img.footer-logo-img.footer-logo-leader {
    max-height: 93px !important;
}

.footer-logo-img:hover {
    filter: grayscale(0%);
}

.footer-logos-full {
    display: flex;
    justify-content: center;
}

.footer-logos-full img {
    max-height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.footer-logos-full img:hover {
    filter: grayscale(0%);
}

/* Footer responsive — 1024px primero, 768px lo sobreescribe */
@media (max-width: 1024px) {
    .footer-top {
        display: grid;
        grid-template-rows: 1fr 1fr 1fr;
        justify-content: center;
        gap: 40px;
        margin-bottom: 60px;
    }

    .footer-column.branding {
        width: 100%;
        grid-column: span 3;
    }

    .main-footer {
        padding: 60px 5% 30px 5%;
        text-align: center;
    }

    .footer-social {
        display: flex;
        justify-content: center;
    }

    .footer-column {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
        margin-bottom: 60px;
    }

    .footer-column {
        width: 100%;
        min-width: unset;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .legal-links {
        justify-content: center;
    }

    .footer-logos-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 16px;
    }

    .footer-logos-row-secondary {
        grid-template-columns: repeat(2, 1fr);
    }
}
