/*
 * Límite Sur — Navidad 0.19.13.
 * Assets de la diseñadora: HORIZONTE, FONDO, ELEMENTO_1 y ELEMENTO_2.
 * CSS aislado por clase body, reversible sin tocar el bundle ni checkout.
 */

/* Cabecera verde profundo según PROPUESTA_1. Se mantienen paneles y mega menús blancos. */
/* Barra promocional navidena: coincidir con el verde del header.
 * Al desactivar Navidad, el tema recupera la barra negra original.
 */
html body.ls-christmas-header-enabled .ls-utility-bar {
    background: #003116 !important;
    background-color: #003116 !important;
    color: #ffffff !important;
    border-bottom-color: rgba(255, 255, 255, .12) !important;
}
html body.ls-christmas-header-enabled .ls-utility-bar .ls-utility-menu > li > a,
html body.ls-christmas-header-enabled .ls-utility-bar .ls-utility-menu > li > .ls-utility-menu__text {
    color: #ffffff !important;
}

html body.ls-christmas-header-enabled .ls-site-header,
html body.ls-christmas-header-enabled .ls-site-header.is-compact {
    background: #003116 !important;
    background-color: #003116 !important;
    color: #ffffff !important;
    border-bottom-color: rgba(255,255,255,.12) !important;
    box-shadow: 0 6px 24px rgba(0,30,13,.14) !important;
}

body.ls-christmas-header-enabled .ls-site-header > .ls-container {
    position: relative;
    z-index: 2;
}
html body.ls-christmas-header-enabled .ls-site-header .ls-site-brand a,
html body.ls-christmas-header-enabled .ls-site-header .ls-site-brand__name,
html body.ls-christmas-header-enabled .ls-site-header .ls-desktop-menu > li > a,
html body.ls-christmas-header-enabled .ls-site-header .ls-header-action {
    color: #fff !important;
}
html body.ls-christmas-header-enabled .ls-site-header .custom-logo {
    filter: brightness(0) invert(1) !important;
}
html body.ls-christmas-header-enabled .ls-site-header .ls-desktop-menu > li > a::after {
    background: #ffffff !important;
}
html body.ls-christmas-header-enabled .ls-site-header .ls-header-action:hover {
    background: rgba(255,255,255,.12) !important;
}
html body.ls-christmas-header-enabled .ls-site-header .ls-cart-count {
    color: #003116 !important;
    background: #8cba37 !important;
}
/* CTA 10% bienvenida: en el tema base tiene texto oscuro y fondo transparente.
 * Sobre el header verde de Navidad pierde contraste en el estado normal.
 * Limitar la correccion a la skin navidena, sin tocar sus otras versiones.
 */
html body.ls-christmas-header-enabled .ls-site-header a.ls-header-benefit-link,
html body.ls-christmas-header-enabled .ls-site-header a.ls-header-benefit-link:visited {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: #111111 !important;
    border-color: #111111 !important;
}
html body.ls-christmas-header-enabled .ls-site-header a.ls-header-benefit-link:hover,
html body.ls-christmas-header-enabled .ls-site-header a.ls-header-benefit-link:focus-visible {
    color: #003116 !important;
    -webkit-text-fill-color: #003116 !important;
    background: #ffffff !important;
    border-color: #ffffff !important;
}
html body.ls-christmas-header-enabled .ls-site-header a.ls-header-benefit-link:focus-visible {
    outline: 2px solid #ffffff !important;
    outline-offset: 3px;
}
/* Elementos del header: decorativos, fuera del flujo y sin bloquear acciones. */
body.ls-christmas-header-enabled .ls-site-header {
    isolation: isolate;
}
.ls-christmas-header-decor {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none !important;
    overflow: hidden;
}
.ls-christmas-header-decor img {
    display: block;
    position: absolute;
    top: -16px;
    height: 83px;
    width: auto;
    max-width: none;
    object-fit: contain;
    user-select: none;
}
.ls-christmas-header-decor__left { left: max(10px, calc((100vw - 1740px) / 2)); }
.ls-christmas-header-decor__right { right: max(10px, calc((100vw - 1740px) / 2)); }

/* Mega menús, buscador y navegación móvil conservan fondos y textos originales. */
html body.ls-christmas-header-enabled .ls-site-header .ls-desktop-menu .sub-menu a,
html body.ls-christmas-header-enabled .ls-site-header .ls-brands-mega-menu a,
html body.ls-christmas-header-enabled .ls-site-header .ls-site-header__panel a,
html body.ls-christmas-header-enabled .ls-site-header .ls-mobile-menu > li > a,
html body.ls-christmas-header-enabled .ls-site-header .ls-mobile-menu-row > a,
html body.ls-christmas-header-enabled .ls-site-header .ls-mobile-submenu-toggle,
html body.ls-christmas-header-enabled .ls-site-header .ls-site-header__panel .ls-header-action {
    color: #111 !important;
}

/*
 * Horizonte Navidad: REUTILIZAR el amanecer original del tema.
 * El SVG HORIZONTE de la disenadora tiene el cielo transparente.
 * No se debe definir background ni ocultar ::before / ::after aqui:
 * app.css ya aporta el degradado blanco-calido, el halo y el resplandor.
 */
html body.ls-christmas-footer-enabled .ls-footer-horizon {
    display: block !important;
    position: relative !important;
    isolation: isolate !important;
    z-index: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 0 -2px !important;
    padding: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
}
/* Prolongar suavemente el amanecer sobre la caja superior para evitar
 * el corte brusco entre el bloque blanco y el horizonte navideño.
 */
html body.ls-christmas-footer-enabled .ls-footer-horizon::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -220px;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse 70% 62% at 55% 100%,
            rgba(255, 196, 137, 0.22) 0%,
            rgba(255, 214, 176, 0.15) 28%,
            rgba(255, 231, 210, 0.08) 48%,
            rgba(255, 247, 240, 0.035) 66%,
            rgba(255, 255, 255, 0) 84%
        );
}
html body.ls-christmas-footer-enabled .ls-footer-horizon img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    object-fit: contain !important;
    object-position: center bottom !important;
    position: relative !important;
    z-index: 2 !important;
    inset: auto !important;
    transform: none !important;
    animation: none !important;
    filter: none !important;
}
html body.ls-christmas-footer-enabled .ls-footer-horizon + footer.ls-site-footer {
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}
/* Verde navideno solo en la skin de Navidad. */
html body.ls-christmas-footer-enabled footer.ls-site-footer,
html body.ls-christmas-footer-enabled footer.ls-site-footer .ls-footer-main,
html body.ls-christmas-footer-enabled footer.ls-site-footer .ls-footer-bottom {
    background-color: #003116 !important;
}
/* Ilustracion FONDO.svg en el fondo del bloque principal del footer. */
html body.ls-christmas-footer-enabled footer.ls-site-footer .ls-footer-main {
    position: relative;
    background-image: url('../skins/christmas/fondo.svg') !important;
    background-repeat: no-repeat !important;
    background-position: center bottom !important;
    background-size: 100% auto !important;
}
/* No tapar la ilustracion tras la franja de sellos/logos de confianza. */
html body.ls-christmas-footer-enabled footer.ls-site-footer .ls-footer-trust {
    background: transparent !important;
}
html body.ls-christmas-footer-enabled footer.ls-site-footer .ls-footer-main > .ls-container,
html body.ls-christmas-footer-enabled footer.ls-site-footer .ls-footer-trust {
    position: relative;
    z-index: 1;
}
html body.ls-christmas-footer-enabled footer.ls-site-footer .ls-footer-heading {
    color: #f0e6da !important;
}
html body.ls-christmas-footer-enabled footer.ls-site-footer .ls-footer-menu a,
html body.ls-christmas-footer-enabled footer.ls-site-footer .ls-footer-description {
    color: rgba(255,255,255,.92) !important;
}
html body.ls-christmas-footer-enabled footer.ls-site-footer .ls-footer-copyright,
html body.ls-christmas-footer-enabled footer.ls-site-footer .ls-footer-legal-menu a {
    color: rgba(255,255,255,.73) !important;
}

@media (max-width: 1499px) {
    .ls-christmas-header-decor img { height: 71px; top: -13px; }
}
@media (max-width: 1199px) {
    .ls-christmas-header-decor { display: none; }
}
@media (max-width: 767px) {
    html body.ls-christmas-footer-enabled .ls-footer-horizon {
        overflow: visible !important;
        isolation: isolate !important;
    }
    html body.ls-christmas-footer-enabled .ls-footer-horizon::before {
        top: -170px;
        background:
            radial-gradient(
                ellipse 82% 74% at 58% 100%,
                rgba(255, 196, 137, 0.20) 0%,
                rgba(255, 214, 176, 0.135) 30%,
                rgba(255, 231, 210, 0.072) 50%,
                rgba(255, 247, 240, 0.03) 68%,
                rgba(255, 255, 255, 0) 86%
            );
    }
    html body.ls-christmas-footer-enabled .ls-footer-horizon img {
        width: 180% !important;
        max-width: none !important;
        margin-left: -40% !important;
    }
    html body.ls-christmas-footer-enabled footer.ls-site-footer .ls-footer-main {
        background-size: auto 76% !important;
        background-position: center bottom !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ls-christmas-header-decor * { animation: none !important; }
}

/* En Navidad algunos copos son cristales delicados, como en PROPUESTA_1. */
html body.ls-visual-christmas .ls-snow-layer .ls-snow-flake:nth-child(5n) {
    width: calc(var(--ls-snow-size) * 2.2);
    height: calc(var(--ls-snow-size) * 2.2);
    border: 0;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
}
html body.ls-visual-christmas .ls-snow-layer .ls-snow-flake:nth-child(5n)::before {
    content: "❄";
    position: absolute;
    inset: 0;
    display: block;
    color: #9ba9aa;
    font-size: calc(var(--ls-snow-size) * 2.8);
    line-height: 1;
    text-align: center;
    opacity: .65;
}
