/**
 * Pie de página — fondo oscuro neutro
 */

.site-footer {
    position: relative;
    z-index: 2;
    isolation: isolate;
    color: rgba(255, 255, 255, 0.92);
    margin-top: 0;
}

.site-footer .container {
    width: 100%;
    max-width: var(--section-inner-max, 72rem);
    margin-inline: auto;
    padding-inline: var(--section-inline-padding, clamp(1rem, 2.5vw, 2rem));
    box-sizing: border-box;
}

.site-footer__rule {
    display: block;
    width: 100%;
    height: 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    margin: 0;
    padding: 0;
}

.footer-main {
    position: relative;
    background: linear-gradient(180deg, #454545 0%, #383838 52%, #323232 100%);
    padding-block: clamp(2.75rem, 5.5vw, 4rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: start;
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: clamp(2.5rem, 5vw, 4.5rem);
        align-items: center;
    }
}

/* Marca */
.footer-brand__link {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-brand__link:hover {
    opacity: 0.9;
}

.footer-logo {
    display: block;
    width: min(100%, 4.75rem);
    height: auto;
    max-width: 6.5rem;
}

@media (min-width: 992px) {
    .footer-logo {
        width: min(100%, 5.5rem);
        max-width: 7.5rem;
    }
}

.footer-tagline {
    margin: 1.15rem 0 0;
    max-width: 22rem;
    font-family: var(--font-sans, Inter, system-ui, sans-serif);
    font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
    font-style: normal;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.68);
}

/* Contacto */
.footer-contact {
    max-width: 100%;
}

@media (min-width: 992px) {
    .footer-contact {
        margin-left: auto;
    }
}

.footer-kicker {
    margin: 0 0 0.4rem;
    font-family: var(--font-sans, Inter, system-ui, sans-serif);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
}

.footer-heading {
    margin: 0 0 1.25rem;
    font-family: var(--font-sans, Inter, system-ui, sans-serif);
    font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
    font-weight: 600;
    font-style: normal;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.95);
}

.footer-social-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: min(100%, 22rem);
}

@media (min-width: 992px) {
    .footer-social-list {
        margin-left: auto;
    }
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
    padding: 0.7rem 0.85rem;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition:
        background-color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.footer-social-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-social-text {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.footer-social-label {
    font-family: var(--font-sans, Inter, system-ui, sans-serif);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
}

.footer-social-value {
    font-family: var(--font-sans, Inter, system-ui, sans-serif);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
    word-break: break-word;
}

.footer-social-link:hover .footer-social-value,
.footer-social-link:focus-visible .footer-social-value {
    color: #fff;
}

/* Barra inferior */
.footer-bar {
    position: relative;
    z-index: 1;
    background: var(--ab-footer-bar, #2a2a2a) !important;
    background-color: var(--ab-footer-bar, #2a2a2a) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-block: 0.95rem;
}

.footer-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem 1.25rem;
}

@media (min-width: 768px) {
    .footer-bar__inner {
        justify-content: space-between;
    }
}

.footer-bar__copy,
.footer-bar__tagline,
.footer-bar__credit {
    margin: 0;
    font-family: var(--font-sans, Inter, system-ui, sans-serif);
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.58);
}

.footer-bar__tagline {
    color: rgba(255, 255, 255, 0.66);
    font-weight: 500;
}

.footer-bar__credit {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.48);
}

.footer-bar__credit-link {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bar__credit-link:hover,
.footer-bar__credit-link:focus-visible {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

@media (max-width: 767.98px) {
    .footer-bar__inner {
        flex-direction: column;
        gap: 0.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-brand__link,
    .footer-social-link {
        transition: none;
    }
}
