section.container.grid-lg {
    max-width: 100%;
    padding: 0;
}

/* ── Footer con enlaces legales dinámicos por sección ── */
#footer.section {
    padding: 1.6rem 1rem 1.4rem;
}
#footer .footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.4rem;
    margin: 0 0 0.9rem;
    font-size: 0.78rem;
}
#footer .footer-legal a,
#footer .footer-legal a:visited {
    color: inherit;
    opacity: 0.75;
    text-decoration: underline;
    text-underline-offset: 2px;
}
#footer .footer-legal a:hover {
    opacity: 1;
}
#footer .footer-copy {
    font-size: 0.78rem;
    margin: 0;
    opacity: 0.65;
    line-height: 1.5;
}

/* ── Aviso de cookies discreto ── */
#cookie-notice {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: 640px;
    margin: 0 auto;
    padding: 0.9rem 1.1rem;
    background: rgba(46, 46, 46, 0.95);
    color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem 1.2rem;
    z-index: 1000;
    font-size: 0.82rem;
    line-height: 1.45;
}
#cookie-notice[hidden] {
    display: none;
}
#cookie-notice p {
    margin: 0;
    flex: 1 1 260px;
}
#cookie-notice a,
#cookie-notice a:visited {
    color: #C8B6E2;
    text-decoration: underline;
    text-underline-offset: 2px;
}
#cookie-notice a:hover {
    color: #FFFFFF;
}
#cookie-notice button {
    background: #B9A7D6;
    color: #2E2E2E;
    border: none;
    border-radius: 6px;
    padding: 0.55rem 1.2rem;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}
#cookie-notice button:hover {
    background: #C8B6E2;
}
@media (max-width: 520px) {
    #cookie-notice {
        flex-direction: column;
        align-items: stretch;
    }
    #cookie-notice button {
        align-self: flex-end;
    }
}

.header-fixed #body-wrapper {
  padding-top: 0.3rem !important;
}

/* Footer legal menu */
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.4rem;
    margin-bottom: 0.6rem;
    font-size: 0.82rem;
}
.footer-legal a,
.footer-legal a:visited {
    color: #6E6A73;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.footer-legal a:hover {
    color: #604474;
    border-bottom-color: #B9A7D6;
}
.footer-copy {
    text-align: center;
    color: #6E6A73;
    font-size: 0.8rem;
    margin: 0;
}

.lang-switcher {
    position: relative;
    margin-left: 1rem;
}
.lang-current {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 0.3rem 0.7rem;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    color: inherit;
}
.lang-current .fa {
    margin-left: 0.35rem;
    font-size: 0.7rem;
}
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin: 0.25rem 0 0;
    padding: 0.25rem 0;
    list-style: none;
    min-width: 70px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 100;
    display: none;
}
.lang-switcher:hover .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown {
    display: block;
}
.lang-dropdown li {
    margin: 0;
    list-style: none;
}
.lang-dropdown a {
    display: block;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #333;
}
.lang-dropdown a:hover {
    background: rgba(0, 0, 0, 0.05);
}
