/**
 * Pie de página público — espaciado y navegación secundaria.
 */

body.dwbi-landing {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.dwbi-landing main.dwbi-main {
    flex: 1;
}

/* Separación respecto al bloque anterior (sin hueco excesivo en el fondo oscuro) */
body.dwbi-landing .site-footer {
    margin-top: 0;
    background: linear-gradient(180deg, var(--bg-footer) 0%, var(--bg-footer-deep) 100%);
}

.site-footer {
    background: linear-gradient(180deg, var(--brand-navy-mid) 0%, var(--brand-navy) 42%, var(--brand-navy-soft) 100%);
    color: rgba(255, 255, 255, 0.88);
    margin-top: auto;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 0;
}

.site-footer .container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

body.dwbi-landing .site-footer .container {
    max-width: 80rem;
    padding: 0 2rem;
}

.site-footer .container.footer-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr 1.25fr;
    gap: 2rem 3rem;
    padding-top: 2.75rem;
    padding-bottom: 2.25rem;
}

body.dwbi-landing .site-footer .container.footer-grid {
    gap: 2.25rem 3.5rem;
    padding-top: 3rem;
    padding-bottom: 2.5rem;
}

/* — Marca — */
.site-footer .footer-col--brand {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.site-footer .footer-logo {
    display: flex;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .footer-logo .footer-logo-lockup {
    gap: 0.55rem;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.site-footer .footer-logo .footer-logo-lockup.brand-logo--horizontal-dark {
    color: #fff;
}

.site-footer .footer-logo .footer-logo-lockup .brand-logo__img--icon-part {
    height: 2.35rem;
    max-width: 2.35rem;
    background: transparent;
    border-radius: 0;
    object-fit: contain;
}

.footer-icon {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: rgba(var(--brand-orange-rgb), 0.85);
    transition: color 0.18s ease;
}

.footer-contact-icon .footer-icon {
    width: 1rem;
    height: 1rem;
    color: rgba(var(--brand-orange-rgb), 0.85);
}

.site-footer .footer-logo .footer-logo-lockup .brand-logo__img--wordmark-part {
    height: 1.85rem;
    max-width: min(100%, 11rem);
}

.site-footer .footer-bottom .brand-mark-img--inline {
    display: inline-flex;
    vertical-align: -0.2em;
    margin: 0 0.1em;
}

.site-footer .footer-bottom .brand-mark-img--inline .brand-logo__img--wordmark {
    height: 1.05rem;
    max-width: 5.5rem;
}

.site-footer .logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--brand-gradient-warm);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(var(--brand-orange-rgb), 0.28), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.site-footer .logo-text {
    font-family: var(--font-display, 'Source Serif 4', Georgia, serif);
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.footer-desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.7;
    max-width: 22rem;
    margin: 0;
    padding-top: 0.25rem;
}

.footer-desc strong {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

/* — Títulos de columna — */
.footer-title {
    font-family: var(--font-display, 'Source Serif 4', Georgia, serif);
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
    padding-bottom: 1rem;
    letter-spacing: -0.01em;
    text-transform: none;
    border-bottom: none;
    position: relative;
}

body.dwbi-landing .footer-title::after {
    background: var(--color-acento);
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 2.75rem;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-orange), rgba(var(--brand-orange-rgb), 0.35));
    border-radius: 2px;
}

.footer-title::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* — Enlaces de navegación — */
.site-footer .footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer .footer-links li {
    margin: 0;
}

.site-footer .footer-links a,
.site-footer .footer-link-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    margin: 0;
    padding: 0.6rem 0.75rem;
    font-family: var(--font-body, 'Archivo', system-ui, sans-serif);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    text-align: left;
    background: transparent;
    border: none;
    border-left: 2px solid transparent;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, padding 0.18s ease;
}

.site-footer .footer-links a .footer-icon,
.site-footer .footer-link-btn .footer-icon {
    color: rgba(var(--brand-orange-rgb), 0.85);
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible,
.site-footer .footer-link-btn:hover,
.site-footer .footer-link-btn:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-left-color: var(--brand-orange);
    padding-left: 0.95rem;
}

.site-footer .footer-links a:hover .footer-icon,
.site-footer .footer-links a:focus-visible .footer-icon,
.site-footer .footer-link-btn:hover .footer-icon,
.site-footer .footer-link-btn:focus-visible .footer-icon {
    color: var(--brand-orange-soft);
}

/* — Contacto — */
.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.7rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.68);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.site-footer .footer-contact a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    word-break: break-word;
    transition: color 0.18s ease;
}

.site-footer .footer-contact a:hover,
.site-footer .footer-contact a:focus-visible {
    color: var(--brand-orange-soft);
    text-decoration: none;
}

.site-footer .footer-contact a:visited {
    color: rgba(255, 255, 255, 0.82);
}

.site-footer .footer-contact a:visited:hover {
    color: var(--brand-orange-soft);
}

.footer-contact li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.footer-contact-icon {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(var(--brand-orange-rgb), 0.12);
    border: 1px solid rgba(var(--brand-orange-rgb), 0.22);
    color: rgba(var(--brand-orange-rgb), 0.85);
    font-size: 0.95rem;
}

/* — Barra inferior — */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding: 1.35rem 0 1.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.42);
    background: rgba(0, 0, 0, 0.12);
}

body.dwbi-landing .footer-bottom {
    background: var(--bg-footer-deep);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.footer-bottom-inner p {
    margin: 0;
}

.footer-powered {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-powered a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    transition: color 0.15s, border-color 0.15s;
}

.footer-powered a:hover {
    color: #fff;
    border-bottom-color: var(--brand-orange);
}

/* Cookie trigger heredado (páginas sin nuevo marcado) */
.site-footer .cookie-configure-trigger:not(.footer-link-btn) {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.68);
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.site-footer .cookie-configure-trigger:not(.footer-link-btn):hover {
    color: #fff;
}

@media (max-width: 1024px) {
    .site-footer .container.footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.75rem;
        padding-top: 2.5rem;
        padding-bottom: 2rem;
    }

    body.dwbi-landing .site-footer .container.footer-grid {
        padding-top: 2.75rem;
        padding-bottom: 2.25rem;
    }

    .footer-col--brand {
        grid-column: 1 / -1;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-desc {
        max-width: 36rem;
    }
}

@media (max-width: 768px) {
    body.dwbi-landing .site-footer .container,
    .site-footer .container {
        padding: 0 1.25rem;
    }

    .site-footer .container.footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding-top: 2.25rem;
        padding-bottom: 1.75rem;
    }

    body.dwbi-landing .site-footer .container.footer-grid {
        padding-top: 2.5rem;
        padding-bottom: 2rem;
    }

    .footer-col--brand {
        border-bottom: none;
        padding-bottom: 0;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}
