/* ==========================================================
   footer.css  |  Pie de página y redes sociales
   Los íconos son SVG de línea usados como máscara (dentro de este
   CSS), así que el HTML solo lleva enlaces simples y el color del
   ícono sale del color del texto (currentColor).
   El borde ondulado superior lo dibuja organic.css (.sa-section).
   ========================================================== */
.sa-foot {
    padding: clamp(72px, 9vw, 112px) var(--sa-gutter) 32px;
    text-align: center;
}
.sa-foot__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---------- Marca (logo) ---------- */
.sa-foot__brand {
    display: inline-flex;
    text-decoration: none;
}
.sa-foot__logo {
    display: block;
    height: clamp(56px, 7vw, 76px);
    width: auto;
    max-width: 100%;
    filter: var(--sa-logo-filter);
}
.sa-foot__tagline {
    max-width: 440px;
    margin-top: 20px;
    font-size: 1.05rem;
    line-height: 1.6;
    letter-spacing: .02em;
    color: var(--sa-on-dark-soft);
}
.sa-foot__tagline strong { font-weight: 700; letter-spacing: .06em; color: var(--sa-on-dark-strong); }
.sa-foot__group { margin-top: 26px; }

/* ---------- Redes sociales ---------- */
.sa-foot__label {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: clamp(40px, 6vw, 56px);
    font-family: var(--sa-font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--sa-on-dark-soft);
}
.sa-foot__label::before,
.sa-foot__label::after {
    content: "";
    width: 36px;
    height: 1px;
    background: rgb(var(--sa-bronze-rgb) / .7);
}

.sa-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 22px;
    list-style: none;
}
.sa-social li { margin: 0; padding: 0; }

.sa-social__link {
    position: relative;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: var(--sa-on-dark);
    border: 1px solid rgb(var(--sa-cream-rgb) / .28);
    border-radius: 50%;
    text-decoration: none;
    transition: color .3s var(--sa-ease), background .3s var(--sa-ease),
                border-color .3s var(--sa-ease), transform .3s var(--sa-ease),
                box-shadow .3s var(--sa-ease);
}
.sa-social__link::before {
    content: "";
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask: var(--sa-icon) center / contain no-repeat;
    mask: var(--sa-icon) center / contain no-repeat;
}
.sa-social__link:hover,
.sa-social__link:focus-visible {
    color: var(--sa-ink-deep);
    background: var(--sa-bronze);
    border-color: var(--sa-bronze);
    box-shadow: 0 10px 24px rgb(var(--sa-deep-rgb) / .35);
    transform: translateY(-4px);
}

.sa-social__link--instagram { --sa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='5.2' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='4.1' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='17.4' cy='6.6' r='1.05' fill='%23000'/%3E%3C/svg%3E"); }
.sa-social__link--facebook  { --sa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.5 2.8h-2.6a4.6 4.6 0 0 0-4.6 4.6v2.7H7v3.9h3.3v8.2h3.9v-8.2h2.8l.7-3.9h-3.5V7.6c0-.5.4-.9.9-.9h2.4z' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.sa-social__link--tiktok    { --sa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14.2 3v11.3a3.9 3.9 0 1 1-3.9-3.9' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M14.2 3c.3 2.7 2 4.5 4.8 4.8' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.sa-social__link--youtube   { --sa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.6 7.2a2.6 2.6 0 0 0-1.8-1.8C18.2 5 12 5 12 5s-6.2 0-7.8.4A2.6 2.6 0 0 0 2.4 7.2C2 8.8 2 12 2 12s0 3.2.4 4.8a2.6 2.6 0 0 0 1.8 1.8C5.8 19 12 19 12 19s6.2 0 7.8-.4a2.6 2.6 0 0 0 1.8-1.8c.4-1.6.4-4.8.4-4.8s0-3.2-.4-4.8z' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10 9.2v5.6l4.8-2.8z' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- Línea final ---------- */
.sa-foot__legal {
    max-width: var(--sa-max);
    margin: clamp(48px, 7vw, 72px) auto 0;
    padding-top: 24px;
    border-top: 1px solid rgb(var(--sa-cream-rgb) / .14);
    font-size: .9rem;
    color: var(--sa-on-dark-mute);
}

@media (prefers-reduced-motion: reduce) {
    .sa-social__link { transition: none; }
    .sa-social__link:hover,
    .sa-social__link:focus-visible { transform: none; }
}