.site-footer {
    position: relative;
    background: #000;
    color: var(--color-white);
    margin-top: var(--spacing-2xl);
    padding: 0;
}

.site-footer__edge {
    position: absolute;
    top: -18px;
    left: 0;
    right: 0;
    height: 20px;
    background: var(--color-white);
    clip-path: polygon(
        0% 100%,
        2% 40%,
        5% 90%,
        8% 20%,
        12% 85%,
        16% 30%,
        20% 95%,
        24% 25%,
        28% 80%,
        32% 15%,
        36% 90%,
        40% 35%,
        44% 75%,
        48% 10%,
        52% 85%,
        56% 25%,
        60% 95%,
        64% 40%,
        68% 70%,
        72% 20%,
        76% 90%,
        80% 30%,
        84% 80%,
        88% 15%,
        92% 85%,
        96% 35%,
        100% 100%,
        100% 100%,
        0% 100%
    );
    z-index: 2;
}

.site-footer__main {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-lg) var(--spacing-xl);
    position: relative;
    z-index: 1;
    overflow: hidden;
    isolation: isolate;
}

.site-footer__figure-wrap {
    position: absolute;
    left: 0;
    bottom: -8%;
    z-index: 0;
    width: min(360px, 42%);
    height: min(380px, 96%);
    pointer-events: none;
    opacity: 0.8;
    /* Fundido hacia arriba y a la derecha: se lee detrás sin tapar textos. */
    -webkit-mask-image:
        linear-gradient(to top, #000 40%, rgba(0, 0, 0, 0.5) 66%, transparent 100%),
        linear-gradient(to right, #000 50%, rgba(0, 0, 0, 0.4) 74%, transparent 100%);
    mask-image:
        linear-gradient(to top, #000 40%, rgba(0, 0, 0, 0.5) 66%, transparent 100%),
        linear-gradient(to right, #000 50%, rgba(0, 0, 0, 0.4) 74%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.site-footer__figure {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    object-fit: contain;
    object-position: left bottom;
    filter: saturate(1.05) contrast(1.04);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.2fr 1.4fr;
    gap: var(--spacing-xl);
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.site-footer__logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.site-footer__logo img {
    height: 52px;
    width: auto;
}

.site-footer__heading {
    color: var(--color-white);
    font-size: var(--font-size-base);
    font-weight: 700;
    margin: 0 0 var(--spacing-md);
    line-height: 1.35;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.site-footer__heading--social {
    margin-top: var(--spacing-xl);
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__links a {
    display: block;
    font-size: var(--font-size-sm);
    color: #ddd;
    margin-bottom: 10px;
    transition: color var(--transition);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.site-footer__links a:hover {
    color: var(--color-orange);
}

.site-footer__col--brand {
    position: relative;
    justify-content: flex-start;
    z-index: 1;
}

/* Ligero velo solo en la columna de enlaces para legibilidad con cualquier figura. */
.site-footer__col--brand::before {
    content: "";
    position: absolute;
    inset: -10px -14px -18px -18px;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(
        120% 90% at 18% 70%,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.22) 45%,
        transparent 72%
    );
}

.site-footer__col--visual {
    position: relative;
}

.site-footer__payments {
    margin-top: 4px;
}

.site-footer__payments img {
    max-width: 100%;
    width: min(320px, 100%);
    max-height: none;
    height: auto;
    opacity: 0.95;
}

.site-footer__newsletter {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 360px;
    z-index: 2;
}

.site-footer__newsletter input {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 44px;
    box-sizing: border-box;
    padding: 0 112px 0 18px;
    border: none;
    border-radius: 999px;
    background: var(--color-white);
    color: var(--color-dark);
    font-size: var(--font-size-sm);
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
}

.site-footer__newsletter input:focus {
    outline: 2px solid var(--color-orange, #bf360c);
    outline-offset: 2px;
}

.site-footer__newsletter input::placeholder {
    color: #999;
}

.site-footer__newsletter button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    z-index: 2;
    margin: 0;
    padding: 0 18px;
    border: none;
    /* Mismo radio píldora que el input (no el --radius-btn de 6px). */
    border-radius: 999px !important;
    background: var(--color-orange, #bf360c);
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity var(--transition);
}

.site-footer__newsletter button:hover {
    opacity: 0.9;
}

.site-footer__newsletter-msg {
    margin: 0 0 10px;
    font-size: var(--font-size-sm);
    line-height: 1.4;
    max-width: 360px;
}

.site-footer__newsletter-msg--success {
    color: #9ae6b4;
}

.site-footer__newsletter-msg--error {
    color: #feb2b2;
}

.site-footer__social {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.site-footer__social a {
    color: var(--color-white);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: color var(--transition), background var(--transition), transform var(--transition);
}

.site-footer__social a:hover {
    color: var(--color-orange);
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.site-footer__social svg {
    width: 26px;
    height: 26px;
}

.site-footer__social-whatsapp:hover {
    color: #25d366;
}

.site-footer__social-tiktok:hover {
    color: #69c9d0;
}

.site-footer__social-hint {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.85);
    padding: var(--spacing-md) var(--spacing-lg);
}

.site-footer__bottom-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.site-footer__copy {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-white);
}

.site-footer__legal {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.site-footer__legal a {
    color: var(--color-white);
    transition: color var(--transition);
}

.site-footer__legal a:hover {
    color: var(--color-orange);
}

.site-footer__legal span {
    color: rgba(255, 255, 255, 0.6);
}

.site-footer__domains {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-md);
}

.site-footer__domains-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.site-footer__domains-content {
    flex: 1 1 auto;
    min-width: 0;
}

.site-footer__domains-title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    margin: 0 0 var(--spacing-sm);
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.site-footer__domains-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 20px;
}

.site-footer__domains-list a {
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: color var(--transition);
}

.site-footer__domains-list a:hover {
    color: var(--color-orange);
}

.site-footer__domains-list a.is-current {
    color: var(--color-orange);
    text-decoration: underline;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-fab-cart {
    position: fixed !important;
    left: 24px !important;
    right: auto !important;
    bottom: 24px !important;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: var(--color-white);
    color: #e53935;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    z-index: 10050;
    cursor: pointer;
    transition: transform var(--transition);
}

.site-fab-cart:hover {
    transform: scale(1.05);
}

.site-fab-cart svg {
    width: 24px;
    height: 24px;
}

.site-fab-cart__count {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 50%;
    background: #e53935;
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1100px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl) var(--spacing-lg);
    }

    .site-footer__figure-wrap {
        width: min(280px, 42vw);
        height: min(300px, 78%);
        opacity: 0.62;
        bottom: -4%;
    }

    .site-footer__col--visual {
        position: relative;
    }
}

@media (max-width: 640px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .site-footer__figure-wrap {
        width: min(220px, 58vw);
        height: min(240px, 55%);
        opacity: 0.45;
        left: var(--spacing-lg);
        bottom: 0;
    }

    .site-footer__col--brand {
        min-height: 200px;
        padding-bottom: 28px;
    }

    .site-footer__domains-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .site-footer__newsletter {
        max-width: 100%;
    }

    .site-footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
