/*
 * Ajuste exclusivo de Quiénes Somos.
 * El HTML del footer viene de maestra.html; estas reglas igualan su
 * presentación con la portada sin cargar principal.css en esta página.
 */
.footer {
    --index-footer-accent: #f4c900;
    --index-footer-accent-ink: #111318;
}

[data-theme="dark"] .footer {
    --index-footer-accent: var(--brand-red);
    --index-footer-accent-ink: #fff;
}

.footer .footer-accent-blue,
.footer .footer-accent-red {
    display: none;
}

.footer::before { content: none; }

.footer .container { width: min(100% - 48px, 1280px); }

.footer .footer-primary {
    grid-template-columns: minmax(245px, 1.18fr) minmax(125px, .56fr) minmax(145px, .64fr) minmax(360px, 1.48fr);
    gap: clamp(26px, 3vw, 44px);
    padding: clamp(32px, 3.5vw, 44px) 0 clamp(26px, 3vw, 36px);
}

.footer .footer-logo-link { margin-bottom: 13px; }
.footer .footer-logo { height: 42px; }

.footer .footer-tagline {
    max-width: 34ch;
    margin-bottom: 16px;
    font-size: .84rem;
    line-height: 1.55;
}

.footer .footer-heading {
    margin-bottom: 14px;
    padding-bottom: 8px;
    font-size: .74rem;
    letter-spacing: .095em;
}

.footer .footer-heading::after {
    width: 32px;
    height: 2px;
    background: var(--index-footer-accent);
}

.footer .footer-links ul { gap: 8px; }
.footer .footer-links a { font-size: .82rem; line-height: 1.4; }
.footer .footer-social { gap: 7px; }

.footer .footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

.footer .footer-social a i { font-size: .84rem; }

.footer .footer-contact {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(145px, .78fr);
    grid-template-rows: auto 1fr;
    column-gap: 18px;
    align-content: start;
}

.footer .footer-contact .footer-heading { grid-column: 1 / -1; }
.footer .footer-contact-list { gap: 10px; }

.footer .footer-contact-list li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
}

.footer .footer-contact-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    color: var(--index-footer-accent-ink);
    background: var(--index-footer-accent);
    font-size: .86rem;
}

.footer .footer-contact-whatsapp { color: #fff; background: #168c4e; }
.footer .footer-contact-list small { margin-bottom: 2px; font-size: .68rem; }
.footer .footer-contact-list a { font-size: .8rem; line-height: 1.35; }

.footer .footer-hours {
    align-self: start;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--footer-border);
    border-top: 2px solid var(--index-footer-accent);
    border-radius: 11px;
    background: color-mix(in srgb, var(--index-footer-accent) 4%, var(--footer-surface));
    box-shadow: var(--footer-shadow);
}

.footer .footer-hours > span {
    margin-bottom: 8px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--footer-border);
    font-size: .7rem;
}

.footer .footer-hours > span i { color: var(--index-footer-accent); }
.footer .footer-hours dl { gap: 5px; }
.footer .footer-hours dl div { gap: 10px; font-size: .68rem; }

.footer .footer-bottom {
    min-height: 48px;
    padding: 10px 0;
    font-size: .7rem;
}

.footer .footer-bottom-links > span { background: var(--index-footer-accent); }
.footer :focus-visible { outline-color: var(--index-footer-accent); }

@media (hover: hover) and (pointer: fine) {
    .footer .footer-social a:hover {
        color: var(--index-footer-accent-ink);
        border-color: var(--index-footer-accent);
        background: var(--index-footer-accent);
        transform: translateY(-2px);
    }

    .footer .footer-links a:hover,
    .footer .footer-contact-list a:hover,
    .footer .footer-bottom a:hover {
        color: color-mix(in srgb, var(--index-footer-accent) 78%, var(--footer-text));
    }
}

@media (max-width: 1024px) {
    .footer .footer-primary {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
        gap: 34px 48px;
    }

    .footer .footer-contact {
        grid-column: auto;
        padding-top: 0;
        border-top: 0;
    }

    .footer .footer-contact .footer-heading {
        grid-column: auto;
        margin-bottom: 18px;
    }

    .footer .footer-contact-list { grid-template-columns: 1fr; }

    .footer .footer-hours {
        margin: 0;
        padding: 12px;
        border-top: 2px solid var(--index-footer-accent);
        border-left: 0;
    }
}

@media (max-width: 680px) {
    .footer .container { width: min(100% - 32px, 1280px); }

    .footer .footer-primary {
        grid-template-columns: 1fr 1fr;
        gap: 0 20px;
        padding: 28px 0 22px;
    }

    .footer .footer-brand,
    .footer .footer-contact { grid-column: 1 / -1; }

    .footer .footer-brand {
        padding-bottom: 22px;
        border-bottom: 1px solid var(--footer-border);
    }

    .footer .footer-logo { height: 38px; }
    .footer .footer-tagline { max-width: 38ch; font-size: .82rem; }

    .footer .footer-links { min-width: 0; padding: 22px 0; }
    .footer .footer-heading { margin-bottom: 13px; font-size: .72rem; }

    .footer .footer-links a,
    .footer .footer-contact-list a { font-size: .8rem; line-height: 1.35; }

    .footer .footer-contact {
        display: block;
        padding-top: 22px;
        border-top: 1px solid var(--footer-border);
    }

    .footer .footer-hours { margin-top: 16px; padding: 11px 12px; }

    .footer .footer-bottom {
        gap: 7px;
        min-height: 0;
        padding: 14px 0;
        font-size: .67rem;
        line-height: 1.45;
    }
}

@media (max-width: 520px) {
    .footer .footer-primary { column-gap: 16px; }
}
