/**
 * Footer — mismo lenguaje visual que store-collections (Inter, tokens Maor).
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

footer.site-footer {
    --footer-font: 'Inter', system-ui, sans-serif;
    --footer-page-width: 1900px;
    --footer-sp-5: 1.25rem;
    --footer-sp-6: 1.5rem;
    --footer-sp-10: 2.5rem;
    --footer-sp-12: 3rem;
    --footer-radius: clamp(0.625rem, 1.053vw, 1.25rem);
    --footer-btn-radius: 3.75rem;
    --footer-bg: var(--background, #f8f7f4);
    --footer-text: var(--text, #141414);
    --footer-muted: var(--text-muted, rgba(20, 20, 20, 0.58));
    --footer-border: var(--border, rgba(20, 20, 20, 0.1));
    --footer-surface: var(--surface, #ffffff);
    --footer-btn-bg: var(--text, #141414);
    --footer-btn-fg: var(--background, #f8f7f4);
    --footer-btn-hover-bg: #ffffff;
    --footer-btn-hover-fg: var(--text, #141414);

    margin-top: 0 !important;
    padding: var(--footer-sp-12) clamp(var(--footer-sp-5), 3vw, var(--footer-sp-12)) var(--footer-sp-10) !important;
    background: var(--footer-bg) !important;
    color: var(--footer-text) !important;
    border-top: 1px solid var(--footer-border) !important;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    font-family: var(--footer-font);
}

[data-theme="dark"] footer.site-footer {
    --footer-surface: #141414;
    --footer-btn-hover-bg: #0c0c0c;
    --footer-btn-hover-fg: #f2f2f0;
}

footer.site-footer p,
footer.site-footer a,
footer.site-footer button,
footer.site-footer input,
footer.site-footer label {
    font-family: var(--footer-font) !important;
    letter-spacing: normal !important;
    line-height: 1.5 !important;
    inline-size: auto !important;
}

footer.site-footer p {
    margin: 0;
    font-size: 0.9375rem !important;
    color: inherit;
}

footer.site-footer button {
    background: transparent;
    cursor: pointer;
}

footer.site-footer h2 {
    font-family: var(--footer-font) !important;
    letter-spacing: -0.04em !important;
    line-height: 1 !important;
    text-transform: none;
}

.site-footer__inner {
    width: 100%;
    max-width: var(--footer-page-width);
    margin: 0 auto;
    display: grid;
    gap: clamp(var(--footer-sp-6), 3vw, var(--footer-sp-10));
}

.site-footer__main {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
}

.site-footer__brand {
    font-size: clamp(1.125rem, 2vw, 1.375rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    color: var(--footer-text) !important;
}

.site-footer__tagline {
    margin-top: 0.35rem !important;
    color: var(--footer-text) !important;
    font-size: 0.9375rem !important;
    font-weight: 400 !important;
}

.site-footer__copy {
    margin-top: 0.85rem !important;
    color: var(--footer-text) !important;
    font-size: 0.8125rem !important;
    opacity: 0.9;
}

.site-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.site-footer__meta {
    color: var(--footer-muted) !important;
    font-size: 0.875rem !important;
}

.site-footer__link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--footer-text) !important;
    text-decoration: none;
    font-size: 0.875rem !important;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.site-footer__link:hover {
    opacity: 0.72;
}

.site-footer__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.site-footer__social-link {
    --footer-social-bg: #ffffff;
    --footer-social-fg: #141414;
    --footer-social-hover-bg: #141414;
    --footer-social-hover-fg: #ffffff;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.55rem 1rem;
    overflow: hidden;
    isolation: isolate;
    border-radius: 999px;
    border: 2px solid #141414 !important;
    background: var(--footer-social-bg) !important;
    color: var(--footer-social-fg) !important;
    text-decoration: none;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.2 !important;
    cursor: pointer;
    transform: scale(1);
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] .site-footer__social-link {
    --footer-social-bg: #ffffff;
    --footer-social-fg: #141414;
    --footer-social-hover-bg: #0c0c0c;
    --footer-social-hover-fg: #ffffff;
    border-color: #ffffff !important;
}

.site-footer__social-link-fill {
    position: absolute;
    display: block;
    width: 150%;
    height: 200%;
    top: -50%;
    left: -25%;
    border-radius: 50%;
    background: var(--footer-social-hover-bg) !important;
    transform: translate3d(0, -100%, 0);
    transition: transform 0.6s cubic-bezier(0.3, 1, 0.3, 1);
    z-index: 0;
    pointer-events: none;
}

.site-footer__social-link-text {
    position: relative;
    z-index: 1;
    color: inherit !important;
}

.site-footer__social-link:hover {
    color: var(--footer-social-hover-fg) !important;
    background: var(--footer-social-bg) !important;
    border-color: var(--footer-social-hover-bg) !important;
    transform: scale(1.06);
}

.site-footer__social-link:hover .site-footer__social-link-fill {
    transform: translate3d(0, 0, 0);
}

.site-footer__social-link:active {
    transform: scale(1.02);
}

.site-footer__theme {
    position: static !important;
    width: 2.625rem;
    height: 2.625rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--footer-border);
    background: var(--footer-surface) !important;
    color: var(--footer-text);
    box-shadow: none !important;
    cursor: pointer;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.site-footer__theme:hover {
    opacity: 0.85;
}

.site-footer__theme svg {
    width: 1.125rem;
    height: 1.125rem;
}

.site-footer__newsletter {
    padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
    border-top: 1px solid var(--footer-border);
}

.site-footer__section-title {
    margin: 0 0 1rem !important;
    font-family: var(--footer-font) !important;
    font-size: clamp(1.875rem, 5.5vw, 3rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.04em !important;
    line-height: 1 !important;
    text-transform: none;
    color: var(--footer-text) !important;
}

@media (min-width: 1024px) {
    .site-footer__section-title {
        font-size: clamp(2.5rem, 4vw, 3.75rem) !important;
    }
}

.site-footer__newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: stretch;
    max-width: 36rem;
}

.site-footer__newsletter-form input[type="email"] {
    flex: 1 1 14rem;
    min-width: 0;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--footer-border);
    border-radius: var(--footer-radius);
    background: var(--footer-surface);
    color: var(--footer-text) !important;
    font-size: 0.9375rem !important;
    transition: border-color 0.2s ease;
}

.site-footer__newsletter-form input[type="email"]::placeholder {
    color: var(--footer-muted);
    opacity: 1;
}

.site-footer__newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--footer-text) 35%, transparent);
}

.site-footer__newsletter-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.35rem;
    overflow: hidden;
    isolation: isolate;
    border: 2px solid var(--footer-btn-bg) !important;
    border-radius: var(--footer-btn-radius) !important;
    background: var(--footer-btn-bg) !important;
    color: var(--footer-btn-fg) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    white-space: nowrap;
    transition: color 0.35s cubic-bezier(0.3, 1, 0.3, 1);
}

.site-footer__newsletter-submit-fill {
    position: absolute;
    display: block;
    width: 150%;
    height: 200%;
    top: -50%;
    left: -25%;
    border-radius: 50%;
    background: var(--footer-btn-hover-bg) !important;
    transform: translate3d(0, -100%, 0);
    transition: transform 0.6s cubic-bezier(0.3, 1, 0.3, 1);
    z-index: 0;
    pointer-events: none;
}

.site-footer__newsletter-submit-text {
    position: relative;
    z-index: 1;
    color: inherit !important;
}

.site-footer__newsletter-submit:hover {
    color: var(--footer-btn-hover-fg) !important;
    background: var(--footer-btn-bg) !important;
}

.site-footer__newsletter-submit:hover .site-footer__newsletter-submit-fill {
    transform: translate3d(0, 0, 0);
}

.site-footer__newsletter-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.site-footer__newsletter-success {
    font-size: 0.875rem !important;
    color: var(--footer-muted) !important;
}

@media (max-width: 900px) {
    .site-footer__main {
        grid-template-columns: 1fr;
    }

    .site-footer__aside {
        align-items: flex-start;
    }

    .site-footer__social {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .site-footer__newsletter-form {
        flex-direction: column;
        max-width: none;
    }

    .site-footer__newsletter-submit {
        width: 100%;
    }
}
