/*
 * XHIN SHOP — decoración de las temporadas (Navidad, Año Nuevo, San
 * Valentín, Verano, Halloween). Solo se carga mientras hay una temporada
 * (layouts/tienda). El kit va en <body> como .xs-temp-{kit} y cada pieza
 * prendida como .xs-temp-con-{pieza}; el color de acento, en
 * --xs-temp-acento. Todo es decorativo: no se puede tocar ni tapa botones.
 * El movimiento se apaga con prefers-reduced-motion.
 */

/* ------------------------------------------------------- Barra de arriba */

.tienda-publica .xs-temp-barra {
    position: relative;
    z-index: 41;
    border-bottom: 1px solid color-mix(in srgb, var(--xs-temp-acento) 30%, transparent);
    background:
        linear-gradient(90deg,
            color-mix(in srgb, var(--xs-temp-acento) 16%, #0b0d14),
            color-mix(in srgb, var(--xs-violeta) 22%, #0b0d14) 50%,
            color-mix(in srgb, var(--xs-temp-acento) 16%, #0b0d14));
    font-size: 0.82rem;
    line-height: 1.35;
    color: #f8fafc;
}

.tienda-publica .xs-temp-barra-fila {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem 0.7rem;
    max-width: 80rem;
    min-height: 2.15rem;
    margin: 0 auto;
    padding: 0.35rem 2.6rem 0.35rem 1rem;
}

.tienda-publica .xs-temp-barra-texto {
    margin: 0;
    min-width: 0;
    text-align: center;
}

.tienda-publica .xs-temp-barra-tiempo {
    padding: 0 0.15rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--xs-temp-acento);
}

.tienda-publica .xs-temp-barra-enlace {
    flex-shrink: 0;
    font-weight: 700;
    white-space: nowrap;
    color: var(--xs-temp-acento);
}

.tienda-publica .xs-temp-barra-enlace:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tienda-publica .xs-temp-barra-vista,
.tienda-publica .xs-temp-vista-flotante {
    flex-shrink: 0;
    padding: 0.1rem 0.55rem;
    border: 1px dashed rgba(248, 250, 252, 0.45);
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    color: #f8fafc;
}

.tienda-publica .xs-temp-vista-flotante {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 60;
    padding: 0.4rem 0.8rem;
    background: rgba(11, 13, 20, 0.9);
}

.tienda-publica .xs-temp-barra-cerrar {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    display: flex;
    padding: 0.3rem;
    border-radius: 9999px;
    color: #94a3b8;
    transform: translateY(-50%);
    transition: color 0.15s, background-color 0.15s;
}

.tienda-publica .xs-temp-barra-cerrar:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.tienda-publica .xs-temp-barra .xs-oferta-insignia {
    width: 1rem;
    height: 1rem;
    color: var(--xs-temp-acento);
}

@media (max-width: 639px) {
    .tienda-publica .xs-temp-barra {
        font-size: 0.76rem;
    }

    .tienda-publica .xs-temp-barra-fila {
        flex-wrap: wrap;
        padding-left: 0.75rem;
    }
}

/* El lazo de Navidad, rojo (el resto toma el color de la temporada). */
.tienda-publica.xs-temp-navidad .xs-oferta-insignia {
    color: #f05252;
}

/* ------------------------------------------------- Accesorio del logo */
/* Cada dibujo va en una caja con su lugar sobre la corona; el dibujo (o la
   imagen subida) se ajusta dentro sin deformarse. Tamaño, corrimiento y
   giro elegidos en el panel llegan en --acc-escala, --acc-x, --acc-y y
   --acc-giro; --acc-base es la inclinación propia de cada dibujo. */

.tienda-publica .xs-temp-accesorio {
    position: absolute;
    z-index: 1;
    display: block;
    pointer-events: none;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
    transform:
        translate(var(--acc-x, 0px), var(--acc-y, 0px))
        rotate(calc(var(--acc-base, 0deg) + var(--acc-giro, 0deg)))
        scale(var(--acc-escala, 1));
    transform-origin: 50% 80%;
}

.tienda-publica .xs-temp-accesorio > svg,
.tienda-publica .xs-temp-accesorio > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: 50% 100%;
}

.tienda-publica .xs-temp-accesorio-gorro { top: -9px; left: 11px; width: 30px; height: 25px; --acc-base: 16deg; }
.tienda-publica .xs-temp-accesorio-fiesta { top: -14px; left: 13px; width: 18px; height: 22.5px; --acc-base: -8deg; }
.tienda-publica .xs-temp-accesorio-corazon { top: -5px; right: -7px; width: 16px; height: 16px; --acc-base: 14deg; }
.tienda-publica .xs-temp-accesorio-gafas { top: 14px; left: 7px; width: 30px; height: 10px; }
.tienda-publica .xs-temp-accesorio-bruja { top: -19px; left: 6px; width: 33px; height: 27.5px; --acc-base: -6deg; }
.tienda-publica .xs-temp-accesorio-escarapela { top: -8px; right: -8px; width: 16px; height: 20px; --acc-base: 10deg; }
.tienda-publica .xs-temp-accesorio-flor { top: -7px; right: -7px; width: 17px; height: 17px; }
.tienda-publica .xs-temp-accesorio-mono { bottom: -8px; left: 10px; width: 24px; height: 12px; transform-origin: 50% 50%; filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.7)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); }
.tienda-publica .xs-temp-accesorio-globo { top: -18px; right: -10px; width: 12px; height: 22px; --acc-base: 8deg; }
.tienda-publica .xs-temp-accesorio-etiqueta { top: -4px; right: -11px; width: 14px; height: 18px; --acc-base: 18deg; transform-origin: 40% 0; }
/* Imagen propia: una caja sobre la corona; la imagen ya viene recortada a su contenido. */
.tienda-publica .xs-temp-accesorio-imagen { top: -15px; left: 6px; width: 32px; height: 26px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); }

/* --------------------------------------------- Ícono del carrito decorado */

.tienda-publica .xs-temp-carrito {
    position: relative;
    display: inline-flex;
}

.tienda-publica .xs-temp-accesorio.xs-temp-accesorio-en-carrito {
    top: -5px;
    right: auto;
    bottom: auto;
    left: 5px;
    width: 19px;
    height: 16px;
    --acc-base: -14deg;
}

.tienda-publica .xs-temp-accesorio.xs-temp-accesorio-en-carrito.xs-temp-accesorio-gafas { top: 13px; left: 9px; width: 22px; height: 8px; --acc-base: 0deg; }
.tienda-publica .xs-temp-accesorio.xs-temp-accesorio-en-carrito.xs-temp-accesorio-mono { top: auto; bottom: 0; left: 12px; width: 16px; height: 8px; --acc-base: 0deg; }
.tienda-publica .xs-temp-accesorio.xs-temp-accesorio-en-carrito:is(.xs-temp-accesorio-corazon, .xs-temp-accesorio-flor, .xs-temp-accesorio-escarapela, .xs-temp-accesorio-globo, .xs-temp-accesorio-etiqueta) { left: auto; right: 0; width: 13px; height: 15px; --acc-base: 12deg; }

/* ------------------------------------------------ Guirnalda bajo el menú */
/* Cada pieza es <span style="--luz: color; --i: n"><i></i></span>. */

.tienda-publica .xs-temp-guirnalda {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    height: 14px;
    padding: 0 1.25rem;
    pointer-events: none;
}

.tienda-publica .xs-temp-guirnalda > span {
    position: relative;
    display: block;
    flex-shrink: 0;
}

.tienda-publica .xs-temp-guirnalda i {
    position: relative;
    display: block;
}

/* En celular, la mitad. */
.tienda-publica .xs-temp-guirnalda > span:nth-child(n + 15) {
    display: none;
}

@media (min-width: 768px) {
    .tienda-publica .xs-temp-guirnalda > span:nth-child(n + 15) {
        display: block;
    }
}

/* Sin cable, una arriba y otra abajo. */
.tienda-publica .xs-temp-guirnalda:not(.xs-temp-guirnalda-con-cable) > span:nth-child(even) i {
    top: 2px;
}

/* Foquitos con su casquillo. */
.tienda-publica .xs-temp-guirnalda-luces i {
    top: 2px;
    width: 7px;
    height: 11px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    background: var(--luz);
    box-shadow: 0 0 7px 1px color-mix(in srgb, var(--luz) 70%, transparent);
}

.tienda-publica .xs-temp-guirnalda-luces i::before,
.tienda-publica .xs-temp-guirnalda-bolitas i::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 4px;
    height: 3px;
    margin-left: -2px;
    border-radius: 1px;
    background: #64748b;
}

/* Bolitas navideñas con brillo. */
.tienda-publica .xs-temp-guirnalda-bolitas i {
    top: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.75) 0 14%, transparent 16%),
        radial-gradient(circle at 50% 50%, var(--luz) 40%, color-mix(in srgb, var(--luz) 55%, #000));
    box-shadow: 0 0 6px color-mix(in srgb, var(--luz) 45%, transparent);
}

/* Formas con máscara: el color es --luz. */
.tienda-publica :is(.xs-temp-guirnalda-estrellas, .xs-temp-guirnalda-destellos, .xs-temp-guirnalda-corazones, .xs-temp-guirnalda-flores) i {
    top: 1px;
    width: 10px;
    height: 10px;
    background: var(--luz);
    -webkit-mask: var(--xs-forma) center / contain no-repeat;
    mask: var(--xs-forma) center / contain no-repeat;
    filter: drop-shadow(0 0 3px color-mix(in srgb, var(--luz) 60%, transparent));
}

.tienda-publica .xs-temp-guirnalda-estrellas { --xs-forma: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.6 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 20.9l1.6-7L2 9.2l7.1-.6z'/%3E%3C/svg%3E"); }
.tienda-publica .xs-temp-guirnalda-estrellas i { width: 11px; height: 11px; }
.tienda-publica .xs-temp-guirnalda-destellos { --xs-forma: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l2.6 9.4L24 12l-9.4 2.6L12 24l-2.6-9.4L0 12l9.4-2.6z'/%3E%3C/svg%3E"); }
.tienda-publica .xs-temp-guirnalda-destellos > span:nth-child(even) i { width: 7px; height: 7px; }
.tienda-publica .xs-temp-guirnalda-corazones { --xs-forma: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.3C.9 8.2 3 4.5 6.6 4.5c2.1 0 3.6 1.2 4.4 2.6.8-1.4 2.3-2.6 4.4-2.6 3.6 0 5.7 3.7 4.2 7.2C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E"); }
.tienda-publica .xs-temp-guirnalda-corazones i { width: 9px; height: 9px; }
.tienda-publica .xs-temp-guirnalda-flores { --xs-forma: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2.5c1.9 0 3.3 1.6 3 3.6 1.7-1.1 3.9-.6 4.8 1.2.9 1.8.1 3.8-1.7 4.6 1.8.8 2.6 2.8 1.7 4.6-.9 1.8-3.1 2.3-4.8 1.2.3 2-1.1 3.6-3 3.6s-3.3-1.6-3-3.6c-1.7 1.1-3.9.6-4.8-1.2-.9-1.8-.1-3.8 1.7-4.6C3.1 11.1 2.3 9.1 3.2 7.3 4.1 5.5 6.3 5 8 6.1c-.3-2 1.1-3.6 4-3.6zM12 9.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z'/%3E%3C/svg%3E"); }
.tienda-publica .xs-temp-guirnalda-flores i { width: 12px; height: 12px; }

/* Banderines. */
.tienda-publica .xs-temp-guirnalda-banderines i {
    top: 0;
    width: 12px;
    height: 13px;
    background: var(--luz);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.tienda-publica .xs-temp-guirnalda-banderines > span:nth-child(even) i {
    top: 0;
}

/* Imagen subida en el panel, repetida. */
.tienda-publica .xs-temp-guirnalda-imagen i {
    top: 1px;
    width: 16px;
    height: 16px;
    background: var(--xs-guirnalda-imagen) center / contain no-repeat;
}

/* Con cable: cada pieza cuelga de su tramo de cable. */
.tienda-publica .xs-temp-guirnalda-con-cable {
    bottom: -12px;
    height: 18px;
    padding: 0;
}

.tienda-publica .xs-temp-guirnalda-con-cable > span {
    display: flex;
    flex: 1 1 0;
    justify-content: center;
}

.tienda-publica .xs-temp-guirnalda-con-cable > span::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 9px;
    border-bottom: 1.5px solid #475569;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.tienda-publica .xs-temp-guirnalda-con-cable i {
    top: 6px;
}

.tienda-publica .xs-temp-guirnalda-con-cable.xs-temp-guirnalda-banderines i {
    top: 2px;
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes xs-temp-titilar {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.4; }
    }

    /* Se prenden una tras otra, como una ola que corre por el menú. */
    @keyframes xs-temp-secuencia {
        0%, 100% { opacity: 0.3; filter: none; }
        12% { opacity: 1; filter: brightness(1.35) drop-shadow(0 0 4px var(--luz)); }
        30% { opacity: 0.3; filter: none; }
    }

    .tienda-publica .xs-temp-guirnalda-anim-titilar i {
        animation: xs-temp-titilar 2.4s ease-in-out infinite;
    }

    .tienda-publica .xs-temp-guirnalda-anim-titilar > span:nth-child(3n + 1) i { animation-delay: -0.8s; }
    .tienda-publica .xs-temp-guirnalda-anim-titilar > span:nth-child(3n + 2) i { animation-delay: -1.6s; }

    .tienda-publica .xs-temp-guirnalda-anim-secuencia i {
        animation: xs-temp-secuencia 3.6s linear infinite;
        animation-delay: calc(var(--i) * 0.12s);
    }
}

/* ------------------------------------------- Adornos colgando del menú */

.tienda-publica .xs-temp-colgantes {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1;
    height: 0;
    pointer-events: none;
}

.tienda-publica .xs-temp-colgantes > span {
    position: absolute;
    top: 0;
    left: var(--x);
    width: 1px;
    height: var(--largo);
    background: linear-gradient(rgba(226, 232, 240, 0.6), rgba(226, 232, 240, 0.35));
    transform-origin: 50% 0;
}

.tienda-publica .xs-temp-colgantes i {
    position: absolute;
    top: 100%;
    left: 50%;
    display: block;
    width: 16px;
    height: 16px;
    margin-left: -8px;
}

/* En celular, solo el de cada punta. */
@media (max-width: 767px) {
    .tienda-publica .xs-temp-colgantes > span:nth-child(n + 2):nth-child(-n + 5) {
        display: none;
    }

    .tienda-publica .xs-temp-colgantes > span:first-child { left: 22%; }
    .tienda-publica .xs-temp-colgantes > span:last-child { left: 78%; }
}

.tienda-publica .xs-temp-colgantes-esferas i {
    margin-top: 2px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.8) 0 12%, transparent 14%),
        radial-gradient(circle at 50% 50%, var(--c) 42%, color-mix(in srgb, var(--c) 50%, #000));
    box-shadow: 0 0 10px color-mix(in srgb, var(--c) 45%, transparent);
}

.tienda-publica .xs-temp-colgantes-esferas i::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 6px;
    height: 4px;
    margin-left: -3px;
    border-radius: 1px;
    background: #94a3b8;
}

.tienda-publica :is(.xs-temp-colgantes-estrellas, .xs-temp-colgantes-corazones) i {
    background: var(--c);
    -webkit-mask: var(--xs-forma) center / contain no-repeat;
    mask: var(--xs-forma) center / contain no-repeat;
    filter: drop-shadow(0 0 4px color-mix(in srgb, var(--c) 60%, transparent));
}

.tienda-publica .xs-temp-colgantes-estrellas { --xs-forma: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.6 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 20.9l1.6-7L2 9.2l7.1-.6z'/%3E%3C/svg%3E"); }
.tienda-publica .xs-temp-colgantes-corazones { --xs-forma: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.3C.9 8.2 3 4.5 6.6 4.5c2.1 0 3.6 1.2 4.4 2.6.8-1.4 2.3-2.6 4.4-2.6 3.6 0 5.7 3.7 4.2 7.2C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E"); }

.tienda-publica .xs-temp-colgantes-aranas i {
    width: 14px;
    height: 14px;
    margin-left: -7px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%238b7bb0' stroke-width='1.6' stroke-linecap='round' fill='none'%3E%3Cpath d='M9 11 3 7 2 10M9 14l-6 0-1 4M9 16l-5 4M15 11l6-4 1 3M15 14h6l1 4M15 16l5 4'/%3E%3C/g%3E%3Cellipse cx='12' cy='14.5' rx='4.2' ry='5' fill='%235b4a7a'/%3E%3Ccircle cx='12' cy='8.6' r='3' fill='%235b4a7a'/%3E%3Ccircle cx='11' cy='8.2' r='.8' fill='%23fb923c'/%3E%3Ccircle cx='13' cy='8.2' r='.8' fill='%23fb923c'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tienda-publica .xs-temp-colgantes-escarapelas i {
    width: 15px;
    height: 19px;
    margin-left: -7.5px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 40'%3E%3Cpath d='M11 22 6 38l5-3 3 4 3-15zM21 22l5 16-5-3-3 4-3-15z' fill='%23d91023'/%3E%3Ccircle cx='16' cy='16' r='13' fill='%23d91023'/%3E%3Ccircle cx='16' cy='16' r='8.6' fill='%23f8fafc'/%3E%3Ccircle cx='16' cy='16' r='5' fill='%23d91023'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tienda-publica .xs-temp-colgantes-globos i {
    width: 14px;
    height: 17px;
    margin-left: -7px;
    margin-top: 2px;
    border-radius: 50% 50% 48% 48% / 56% 56% 44% 44%;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.6) 0 13%, transparent 15%),
        var(--c);
}

.tienda-publica .xs-temp-colgantes-etiquetas i {
    width: 12px;
    height: 18px;
    margin-left: -6px;
    background: radial-gradient(circle at 50% 22%, #0b0d14 0 1.6px, transparent 2px), var(--c);
    clip-path: polygon(50% 0, 100% 24%, 100% 100%, 0 100%, 0 24%);
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes xs-temp-mecer {
        0%, 100% { transform: rotate(-2.5deg); }
        50% { transform: rotate(2.5deg); }
    }

    @keyframes xs-temp-mecer-fuerte {
        0% { transform: rotate(0); }
        20% { transform: rotate(12deg); }
        45% { transform: rotate(-8deg); }
        70% { transform: rotate(4deg); }
        100% { transform: rotate(0); }
    }

    .tienda-publica .xs-temp-colgantes > span {
        animation: xs-temp-mecer 5s ease-in-out infinite;
        animation-delay: calc(var(--i) * -0.9s);
    }

    .tienda-publica .xs-header:hover .xs-temp-colgantes > span {
        animation: xs-temp-mecer-fuerte 1.6s ease-out;
    }
}

/* -------------------------------------- Nieve sobre el menú y los botones */

.tienda-publica .xs-temp-copete-nieve {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    height: 6px;
    /* Una capa fina y pareja de nieve sobre el borde de arriba del menú. */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='6' viewBox='0 0 160 6'%3E%3Cpath d='M0 0H160V2.6Q150 5.6 138 3.8T112 4.6 88 3.4 64 5 40 3.6 18 4.8 0 3z' fill='%23eef2f7'/%3E%3C/svg%3E") left top / auto 100% repeat-x;
    opacity: 0.92;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.tienda-publica.xs-temp-copete-nieve .xhin-boton-primario:not(.absolute):not(.fixed):not(.sticky) {
    position: relative;
}

.tienda-publica.xs-temp-copete-nieve .xhin-boton-primario::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 9%;
    right: 9%;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='8' viewBox='0 0 60 8'%3E%3Cpath d='M0 6Q4 1 10 3T22 2 34 3 46 1 60 5V8H0z' fill='%23f8fafc'/%3E%3C/svg%3E") left bottom / auto 100% repeat-x;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

/* ------------------------------------------------- Esquinas de arriba */

.tienda-publica.xs-temp-con-esquinas main {
    position: relative;
}

.tienda-publica .xs-temp-esquinas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    height: 0;
    pointer-events: none;
}

.tienda-publica .xs-temp-esquina {
    position: absolute;
    top: 0;
    width: clamp(62px, 10vw, 136px);
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
}

.tienda-publica .xs-temp-esquina-izquierda { left: 0; }
.tienda-publica .xs-temp-esquina-derecha { right: 0; transform: scaleX(-1); }

/* ---------------------------------------- Adorno en las fotos de tarjetas */

.tienda-publica .xs-temp-foto {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 2;
    width: 26px;
    height: 26px;
    pointer-events: none;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
}

.tienda-publica .xs-temp-foto svg {
    display: block;
    width: 100%;
    height: 100%;
}

.tienda-publica .xs-temp-foto-telarana {
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
}

/* La cinta de oferta ocupa esa esquina. */
.tienda-publica :is(.xs-media, .cuentas-foto):has(.xs-cinta-oferta) .xs-temp-foto {
    display: none;
}

/* Con la cinta, la etiqueta de la categoría no llega hasta esa esquina. */
.tienda-publica :is(.xs-media, .cuentas-foto):has(.xs-cinta-oferta) :is(.xs-chip-categoria, .cuentas-etiqueta-categoria) {
    max-width: calc(100% - 5.2rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Cuenta reservada: su etiqueta va en esa esquina. */
.tienda-publica .cuentas-foto:has(.cuentas-etiqueta-reservada) .xs-temp-foto {
    display: none;
}

/* ------------------------------------------------------ Botones de temporada */

.tienda-publica[class*='xs-temp-botones-'] .xhin-boton-primario {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.tienda-publica.xs-temp-botones-caramelo .xhin-boton-primario {
    background-image: repeating-linear-gradient(-45deg, #dc2626 0 9px, #b91c1c 9px 13px, #fee2e2 13px 15px, #b91c1c 15px 19px);
    border-color: rgba(254, 202, 202, 0.55);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.3) inset, 0 10px 26px -12px rgba(220, 38, 38, 0.9);
}

.tienda-publica.xs-temp-botones-dorado .xhin-boton-primario {
    background-image: linear-gradient(180deg, #fde68a, #f5c451 55%, #c99a2e);
    border-color: rgba(253, 230, 138, 0.7);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.45) inset, 0 10px 26px -12px rgba(245, 196, 81, 0.9);
    color: #1c1405;
    text-shadow: none;
}

.tienda-publica.xs-temp-botones-rosa .xhin-boton-primario {
    background-image: linear-gradient(180deg, #f9a8d4, #ec4899 55%, #be185d);
    border-color: rgba(251, 207, 232, 0.55);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.3) inset, 0 10px 26px -12px rgba(236, 72, 153, 0.9);
}

.tienda-publica.xs-temp-botones-mar .xhin-boton-primario {
    background-image: linear-gradient(180deg, #67e8f9, #0ea5e9 55%, #0369a1);
    border-color: rgba(165, 243, 252, 0.55);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.3) inset, 0 10px 26px -12px rgba(14, 165, 233, 0.9);
}

.tienda-publica.xs-temp-botones-calabaza .xhin-boton-primario {
    background-image: linear-gradient(180deg, #fdba74, #f97316 55%, #c2410c);
    border-color: rgba(30, 27, 46, 0.9);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.3) inset, 0 -3px 0 0 rgba(30, 27, 46, 0.55) inset, 0 10px 26px -12px rgba(249, 115, 22, 0.9);
}

.tienda-publica.xs-temp-botones-patrio .xhin-boton-primario {
    background-image: linear-gradient(180deg, #f87171, #d91023 55%, #a50d1a);
    border-color: rgba(248, 250, 252, 0.8);
    box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.35) inset, 0 10px 26px -12px rgba(217, 16, 35, 0.9);
}

.tienda-publica.xs-temp-botones-azul .xhin-boton-primario {
    background-image: linear-gradient(180deg, #93c5fd, #3b82f6 55%, #1d4ed8);
    border-color: rgba(191, 219, 254, 0.55);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.3) inset, 0 10px 26px -12px rgba(59, 130, 246, 0.9);
}

.tienda-publica.xs-temp-botones-arcoiris .xhin-boton-primario {
    background-image: linear-gradient(90deg, #ef4444, #f59e0b, #10b981, #3b82f6, #a855f7);
    border-color: rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.tienda-publica.xs-temp-botones-negro .xhin-boton-primario {
    background-image: linear-gradient(180deg, #27272a, #0b0b0f);
    border-color: #f5c451;
    box-shadow: 0 0 0 1px rgba(245, 196, 81, 0.25) inset, 0 10px 26px -12px rgba(245, 196, 81, 0.7);
    color: #f5c451;
}

/* ------------------------------------------------- Ofertas más vistosas */

/* Tarjeta con descuento: borde y resplandor del color de la temporada. */
.tienda-publica.xs-temp-con-ofertas .xs-tarjeta-oferta {
    border-color: color-mix(in srgb, var(--xs-temp-acento) 55%, transparent);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--xs-temp-acento) 25%, transparent),
        0 0 28px -8px color-mix(in srgb, var(--xs-temp-acento) 70%, transparent),
        var(--xs-sombra);
}

/* Navidad: un poco de nieve colgando del borde de arriba de la tarjeta. */
.tienda-publica.xs-temp-ofertas-nieve .xs-tarjeta-oferta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='11' viewBox='0 0 90 11'%3E%3Cpath d='M0 0H90V4Q84 9 78 5T66 7 56 4 46 8 36 4 26 6 16 3 8 7 0 4z' fill='%23f8fafc'/%3E%3C/svg%3E") left top / auto 100% repeat-x;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

/* Cinta cruzada en la esquina de la foto, con brillo. */
.tienda-publica .xs-cinta-oferta {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    width: 96px;
    height: 96px;
    overflow: hidden;
    pointer-events: none;
}

.tienda-publica .xs-cinta-oferta-banda {
    position: absolute;
    top: 20px;
    right: -36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 144px;
    padding: 0.3rem 0;
    overflow: hidden;
    transform: rotate(45deg);
    background: linear-gradient(180deg, color-mix(in srgb, var(--xs-temp-acento) 75%, #fff), var(--xs-temp-acento) 45%, color-mix(in srgb, var(--xs-temp-acento) 72%, #000));
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.6);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: #0b0d14;
}

.tienda-publica .xs-cinta-oferta .xs-cinta-oferta-banda .xs-oferta-insignia {
    width: 0.85rem;
    height: 0.85rem;
    color: currentColor;
}

/* El brillo (cinta y etiquetas). */
.tienda-publica .xs-cinta-oferta-banda::after,
.tienda-publica.xs-temp-con-ofertas :is(.xs-oferta-chip, .xs-oferta-esquina)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
    transform: translateX(-120%);
    pointer-events: none;
}

.tienda-publica.xs-temp-con-ofertas :is(.xs-oferta-chip, .xs-oferta-esquina) {
    position: relative;
    overflow: hidden;
}

/* La etiqueta de la ficha, un poco más grande y con resplandor. */
.tienda-publica.xs-temp-con-ofertas .xs-oferta-chip {
    padding: 0.38rem 0.9rem;
    font-size: 0.86rem;
    box-shadow: 0 0 22px -6px color-mix(in srgb, var(--xs-oferta-color) 80%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes xs-temp-brillo {
        0%, 55% { transform: translateX(-120%); }
        85%, 100% { transform: translateX(120%); }
    }

    .tienda-publica .xs-cinta-oferta-banda::after,
    .tienda-publica.xs-temp-con-ofertas :is(.xs-oferta-chip, .xs-oferta-esquina)::after {
        animation: xs-temp-brillo 3.4s ease-in-out infinite;
    }
}

/* Sección "Ofertas de Navidad" del inicio. */
.tienda-publica .xs-seccion-ofertas-temporada .xs-oferta-termina {
    display: inline-flex;
}

/* ---------------------------------------------------------- Personaje */

.tienda-publica .xs-temp-personaje {
    position: fixed;
    left: 1.25rem;
    bottom: 0;
    z-index: 30;
    display: none;
    width: 84px;
    transform: translateY(36%);
    transition: transform 0.35s var(--xs-ease, ease);
}

@media (min-width: 768px) {
    .tienda-publica .xs-temp-personaje {
        display: block;
    }
}

.tienda-publica .xs-temp-personaje:hover {
    transform: translateY(10%);
}

.tienda-publica .xs-temp-personaje svg {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}

.tienda-publica .xs-temp-personaje-cerrar {
    position: absolute;
    top: -6px;
    right: -6px;
    z-index: 1;
    display: flex;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    background: rgba(11, 13, 20, 0.88);
    color: #cbd5e1;
    opacity: 0;
    transition: opacity 0.2s;
}

.tienda-publica .xs-temp-personaje:hover .xs-temp-personaje-cerrar,
.tienda-publica .xs-temp-personaje-cerrar:focus-visible {
    opacity: 1;
}

@media (hover: none) {
    .tienda-publica .xs-temp-personaje-cerrar {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes xs-temp-asomar {
        0%, 100% { translate: 0 0; }
        50% { translate: 0 -5px; }
    }

    .tienda-publica .xs-temp-personaje svg {
        animation: xs-temp-asomar 4s ease-in-out infinite;
    }
}

/* -------------------------------------------------- Fondo de temporada */

.tienda-publica .xs-temp-fondo {
    position: fixed;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tienda-publica .xs-temp-fondo-niebla {
    background:
        radial-gradient(ellipse 60% 40% at 15% 100%, rgba(124, 58, 237, 0.2), transparent 70%),
        radial-gradient(ellipse 50% 35% at 85% 100%, rgba(251, 146, 60, 0.12), transparent 70%),
        radial-gradient(ellipse 70% 30% at 50% 0%, rgba(76, 29, 149, 0.16), transparent 70%);
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes xs-temp-niebla {
        0%, 100% { opacity: 0.7; transform: translateX(0); }
        50% { opacity: 1; transform: translateX(2%); }
    }

    .tienda-publica .xs-temp-fondo-niebla {
        animation: xs-temp-niebla 14s ease-in-out infinite;
    }
}

/* ------------------------------------------ Escena y regalos sobre el pie */

.tienda-publica .xs-temp-escena {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% - 4px);
    height: clamp(40px, 5vw, 58px);
    background-position: left bottom;
    background-repeat: repeat-x;
    background-size: auto 100%;
    pointer-events: none;
}

.tienda-publica .xs-temp-escena-pueblo {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='58' viewBox='0 0 300 58'%3E%3Cpath d='M20 58v-6H7l8-10h-5l8-11h-4l9-13 9 13h-4l8 11h-5l8 10H28v6z' fill='%230f2a1d'/%3E%3Cpath d='M23 18l4.5 6.5-2.6-.8L23 25.6l-1.9-1.9-2.6.8z' fill='%23f1f5f9'/%3E%3Crect x='52' y='32' width='42' height='26' fill='%231b2638'/%3E%3Cpath d='M47 34 73 14 99 34z' fill='%232b3a52'/%3E%3Cpath d='M47 34 73 14 99 34h-5L73 18 52 34z' fill='%23f1f5f9'/%3E%3Crect x='84' y='15' width='6' height='11' fill='%232b3a52'/%3E%3Crect x='83' y='13.5' width='8' height='3' rx='1.5' fill='%23f1f5f9'/%3E%3Crect x='58' y='40' width='9' height='8' fill='%23fcd34d'/%3E%3Crect x='79' y='40' width='9' height='8' fill='%23fbbf24'/%3E%3Crect x='69' y='45' width='8' height='13' fill='%230f172a'/%3E%3Crect x='122' y='22' width='32' height='36' fill='%23172033'/%3E%3Cpath d='M117 24 138 7 159 24z' fill='%2326344b'/%3E%3Cpath d='M117 24 138 7 159 24h-5L138 11 122 24z' fill='%23f1f5f9'/%3E%3Crect x='128' y='30' width='7' height='7' fill='%23fcd34d'/%3E%3Crect x='141' y='30' width='7' height='7' fill='%23475569'/%3E%3Crect x='128' y='43' width='7' height='7' fill='%23475569'/%3E%3Crect x='141' y='43' width='7' height='7' fill='%23fcd34d'/%3E%3Cpath d='M180 58v-5h-9l6-8h-4l7-10h-3l8-11 8 11h-3l7 10h-4l6 8h-9v5z' fill='%23123222'/%3E%3Cpath d='M188 24l4 5.5-2.2-.6-1.8 1.7-1.8-1.7-2.2.6z' fill='%23f1f5f9'/%3E%3Crect x='214' y='34' width='52' height='24' fill='%231b2638'/%3E%3Cpath d='M209 36 240 17 271 36z' fill='%232b3a52'/%3E%3Cpath d='M209 36 240 17 271 36h-6L240 21 214 36z' fill='%23f1f5f9'/%3E%3Crect x='222' y='41' width='9' height='7' fill='%23fcd34d'/%3E%3Crect x='249' y='41' width='9' height='7' fill='%23fcd34d'/%3E%3Crect x='236' y='45' width='9' height='13' fill='%230f172a'/%3E%3Ccircle cx='240' cy='28' r='2.6' fill='%23fde68a'/%3E%3C/svg%3E");
}

.tienda-publica .xs-temp-escena-ciudad {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='58' viewBox='0 0 240 58'%3E%3Cg fill='%232c2860'%3E%3Crect x='0' y='26' width='26' height='32'/%3E%3Crect x='28' y='12' width='20' height='46'/%3E%3Crect x='36' y='4' width='4' height='9'/%3E%3Crect x='50' y='30' width='30' height='28'/%3E%3Crect x='82' y='18' width='22' height='40'/%3E%3Crect x='106' y='34' width='26' height='24'/%3E%3Crect x='134' y='8' width='18' height='50'/%3E%3Cpath d='M134 8l9-7 9 7z'/%3E%3Crect x='154' y='28' width='28' height='30'/%3E%3Crect x='184' y='16' width='24' height='42'/%3E%3Crect x='210' y='32' width='30' height='26'/%3E%3C/g%3E%3Cg fill='%23fcd34d'%3E%3Crect x='5' y='32' width='4' height='4'/%3E%3Crect x='15' y='40' width='4' height='4'/%3E%3Crect x='32' y='18' width='4' height='4'/%3E%3Crect x='40' y='26' width='4' height='4'/%3E%3Crect x='32' y='40' width='4' height='4'/%3E%3Crect x='56' y='36' width='4' height='4'/%3E%3Crect x='68' y='44' width='4' height='4'/%3E%3Crect x='87' y='24' width='4' height='4'/%3E%3Crect x='95' y='34' width='4' height='4'/%3E%3Crect x='112' y='40' width='4' height='4'/%3E%3Crect x='139' y='16' width='3' height='4'/%3E%3Crect x='145' y='28' width='3' height='4'/%3E%3Crect x='139' y='40' width='3' height='4'/%3E%3Crect x='160' y='34' width='4' height='4'/%3E%3Crect x='172' y='42' width='4' height='4'/%3E%3Crect x='189' y='22' width='4' height='4'/%3E%3Crect x='199' y='32' width='4' height='4'/%3E%3Crect x='216' y='38' width='4' height='4'/%3E%3Crect x='228' y='46' width='4' height='4'/%3E%3C/g%3E%3Cg fill='%23a78bfa' opacity='.8'%3E%3Crect x='20' y='48' width='3' height='3'/%3E%3Crect x='74' y='36' width='3' height='3'/%3E%3Crect x='124' y='46' width='3' height='3'/%3E%3Crect x='200' y='46' width='3' height='3'/%3E%3C/g%3E%3C/svg%3E");
}

.tienda-publica .xs-temp-escena-cementerio {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='58' viewBox='0 0 280 58'%3E%3Cpath d='M30 58V30c0-3-3-6-6-9m6 9c2-4 6-7 10-8M30 40c-4-2-8-2-11 0M30 36c3-3 7-4 11-3' stroke='%23564a75' stroke-width='3' stroke-linecap='round' fill='none'/%3E%3Cpath d='M60 58V40a9 9 0 0 1 18 0v18z' fill='%2364748b'/%3E%3Cpath d='M66 44h6M69 41v8' stroke='%23334155' stroke-width='2'/%3E%3Cpath d='M96 58V46a7 7 0 0 1 14 0v12z' fill='%23526077'/%3E%3Crect x='128' y='34' width='4' height='24' fill='%2364748b'/%3E%3Crect x='122' y='40' width='16' height='4' fill='%2364748b'/%3E%3Cpath d='M152 58V42h16v16z' fill='%23526077'/%3E%3Cpath d='M150 42h20v-3h-20z' fill='%2364748b'/%3E%3Cg stroke='%23564a75' stroke-width='1.6'%3E%3Cpath d='M186 58V38M196 58V38M206 58V38M216 58V38M226 58V38M236 58V38M182 44h58M182 52h58'/%3E%3C/g%3E%3Cg fill='%23564a75'%3E%3Cpath d='M184 38l2-4 2 4zM194 38l2-4 2 4zM204 38l2-4 2 4zM214 38l2-4 2 4zM224 38l2-4 2 4zM234 38l2-4 2 4z'/%3E%3C/g%3E%3Cellipse cx='258' cy='54' rx='9' ry='7' fill='%23ea580c'/%3E%3Cpath d='M257 47.5c0-2 1-3 2.6-3.6' stroke='%234d7c0f' stroke-width='1.6' fill='none'/%3E%3Cpath d='M254 52l2-2 2 2M259 52l2-2 2 2M253 56q5 3 10 0' stroke='%23fde68a' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
}

.tienda-publica .xs-temp-regalos {
    position: absolute;
    right: 5%;
    bottom: calc(100% - 8px);
    z-index: 2;
    width: clamp(72px, 9vw, 120px);
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

/* -------------------------------------------- Separadores entre secciones */

.tienda-publica.xs-temp-con-separadores .xs-seccion + .xs-seccion::before {
    content: '';
    display: block;
    width: min(26rem, 80%);
    height: 18px;
    margin: -2.6rem auto 2.6rem;
    background: var(--xs-temp-separador) center / auto 100% repeat-x;
    -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
    mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
    pointer-events: none;
}

.tienda-publica.xs-temp-separadores-ramas { --xs-temp-separador: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='18' viewBox='0 0 60 18'%3E%3Cpath d='M0 9q15-5 30 0t30 0' stroke='%2314532d' stroke-width='5' fill='none'/%3E%3Cpath d='M0 9q15-5 30 0t30 0' stroke='%2316a34a' stroke-width='2' stroke-dasharray='1 2.4' fill='none'/%3E%3Ccircle cx='18' cy='9.5' r='2.6' fill='%23dc2626'/%3E%3Ccircle cx='21.5' cy='11' r='2.2' fill='%23ef4444'/%3E%3Ccircle cx='46' cy='9' r='2.4' fill='%23f5c451'/%3E%3C/svg%3E"); }
.tienda-publica.xs-temp-separadores-destellos { --xs-temp-separador: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='18' viewBox='0 0 40 18'%3E%3Cpath d='M10 3l1.6 5.4L17 10l-5.4 1.6L10 17l-1.6-5.4L3 10l5.4-1.6z' fill='%23fde68a'/%3E%3Ccircle cx='26' cy='9' r='1.6' fill='%23f8fafc'/%3E%3Ccircle cx='34' cy='10' r='1.1' fill='%23c4b5fd'/%3E%3C/svg%3E"); }
.tienda-publica.xs-temp-separadores-corazones { --xs-temp-separador: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18' viewBox='0 0 36 18'%3E%3Cpath d='M12 15s-5-3-6.4-6.2C4.6 6.5 6 4 8.4 4c1.4 0 2.4.8 2.9 1.7.6-.9 1.6-1.7 3-1.7 2.4 0 3.8 2.5 2.8 4.8C15.7 12 12 15 12 15z' fill='%23f472b6'/%3E%3Ccircle cx='27' cy='9' r='1.4' fill='%23fda4af'/%3E%3C/svg%3E"); }
.tienda-publica.xs-temp-separadores-olas { --xs-temp-separador: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='18' viewBox='0 0 40 18'%3E%3Cpath d='M0 9q10-7 20 0t20 0' stroke='%2338bdf8' stroke-width='2.4' fill='none'/%3E%3Cpath d='M0 13q10-5 20 0t20 0' stroke='%230ea5e9' stroke-width='1.4' fill='none' opacity='.6'/%3E%3C/svg%3E"); }
.tienda-publica.xs-temp-separadores-calabazas { --xs-temp-separador: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='18' viewBox='0 0 60 18'%3E%3Cpath d='M0 7q15 6 30 0t30 0' stroke='%234d7c0f' stroke-width='1.6' fill='none'/%3E%3Cellipse cx='30' cy='11' rx='6' ry='5' fill='%23f97316'/%3E%3Cpath d='M30 6.4v-2' stroke='%234d7c0f' stroke-width='1.6'/%3E%3Ccircle cx='10' cy='9.5' r='1.4' fill='%23a78bfa'/%3E%3Ccircle cx='50' cy='9.5' r='1.4' fill='%23a78bfa'/%3E%3C/svg%3E"); }
.tienda-publica.xs-temp-separadores-franja { --xs-temp-separador: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='18' viewBox='0 0 40 18'%3E%3Cpath d='M0 3h40' stroke='%2394a3b8' stroke-width='.8'/%3E%3Crect x='6' y='3' width='4' height='10' fill='%23d91023'/%3E%3Crect x='10' y='3' width='4' height='10' fill='%23f8fafc'/%3E%3Crect x='14' y='3' width='4' height='10' fill='%23d91023'/%3E%3Ccircle cx='30' cy='8' r='1.6' fill='%23f8fafc'/%3E%3C/svg%3E"); }
.tienda-publica.xs-temp-separadores-flores { --xs-temp-separador: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='18' viewBox='0 0 40 18'%3E%3Cg fill='%23f472b6'%3E%3Ccircle cx='12' cy='5.5' r='3'/%3E%3Ccircle cx='16.2' cy='8.6' r='3'/%3E%3Ccircle cx='14.6' cy='13.4' r='3'/%3E%3Ccircle cx='9.4' cy='13.4' r='3'/%3E%3Ccircle cx='7.8' cy='8.6' r='3'/%3E%3C/g%3E%3Ccircle cx='12' cy='9.6' r='2.2' fill='%23fbbf24'/%3E%3Ccircle cx='30' cy='9' r='1.6' fill='%23c084fc'/%3E%3C/svg%3E"); }
.tienda-publica.xs-temp-separadores-banderines { --xs-temp-separador: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='18' viewBox='0 0 48 18'%3E%3Cpath d='M0 2q24 4 48 0' stroke='%2394a3b8' stroke-width='.8' fill='none'/%3E%3Cpath d='M3 2.5h9l-4.5 10z' fill='%23f87171'/%3E%3Cpath d='M15 3.4h9l-4.5 10z' fill='%23fbbf24'/%3E%3Cpath d='M27 3.4h9l-4.5 10z' fill='%2334d399'/%3E%3Cpath d='M39 2.5h9l-4.5 10z' fill='%2360a5fa'/%3E%3C/svg%3E"); }

/* ----------------------------- Barra de desplazamiento y selección de texto */

html:has(body.xs-temp-con-detalles) {
    scrollbar-color: color-mix(in srgb, var(--xs-temp-acento) 65%, #1e293b) #0b0d14;
}

.tienda-publica.xs-temp-con-detalles ::selection {
    background: color-mix(in srgb, var(--xs-temp-acento) 45%, transparent);
    color: #fff;
}

/* ---------------------------------------------- Adornos en los títulos */
/* Reemplazan al rombo de .xhin-titulo-seccion por el ícono del kit. */

.tienda-publica.xs-temp-con-titulos .xhin-titulo-seccion::before {
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 0;
    background: var(--xs-temp-acento);
    box-shadow: none;
    transform: none;
    -webkit-mask: var(--xs-temp-icono-titulo) center / contain no-repeat;
    mask: var(--xs-temp-icono-titulo) center / contain no-repeat;
}

.tienda-publica.xs-temp-navidad {
    --xs-temp-icono-titulo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5 6.8 9h2.7L5 15h3.6L4 21.5h7V23h2v-1.5h7L15.4 15H19l-4.5-6h2.7z'/%3E%3C/svg%3E");
}

.tienda-publica.xs-temp-ano-nuevo {
    --xs-temp-icono-titulo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.6 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 20.9l1.6-7L2 9.2l7.1-.6z'/%3E%3C/svg%3E");
}

.tienda-publica.xs-temp-san-valentin {
    --xs-temp-icono-titulo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.3C.9 8.2 3 4.5 6.6 4.5c2.1 0 3.6 1.2 4.4 2.6.8-1.4 2.3-2.6 4.4-2.6 3.6 0 5.7 3.7 4.2 7.2C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E");
}

.tienda-publica.xs-temp-verano {
    --xs-temp-icono-titulo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zM11 1h2v3h-2zM11 20h2v3h-2zM1 11h3v2H1zM20 11h3v2h-3zM4.2 5.6l1.4-1.4 2.1 2.1-1.4 1.4zM16.3 17.7l1.4-1.4 2.1 2.1-1.4 1.4zM4.2 18.4l2.1-2.1 1.4 1.4-2.1 2.1zM16.3 6.3l2.1-2.1 1.4 1.4-2.1 2.1z'/%3E%3C/svg%3E");
}

.tienda-publica.xs-temp-halloween {
    --xs-temp-icono-titulo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.6 6.1c.4-1.6 1.3-2.9 2.9-3.6l.7 1.4c-1.1.6-1.7 1.4-2 2.4 4.6.6 7.8 3.6 7.8 7.7 0 4.5-4.2 8-10 8s-10-3.5-10-8c0-4.3 3.5-7.4 8.4-7.8.7-.1 1.5-.1 2.2-.1z'/%3E%3C/svg%3E");
}

/* --------------------------------------------- Borde del pie de página */

.tienda-publica .xs-temp-pie {
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    z-index: 1;
    height: 18px;
    background-repeat: repeat-x;
    background-position: left bottom;
    background-size: auto 100%;
    pointer-events: none;
}

/* Nieve acumulada sobre el borde. */
.tienda-publica .xs-temp-pie-nieve {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='18' viewBox='0 0 160 18'%3E%3Cpath d='M0 18V11Q10 6 20 7T40 10T60 5T80 9T100 6T120 10T140 7T160 11V18z' fill='%23e2e8f0'/%3E%3Cpath d='M0 18V14Q20 11 40 14T80 14T120 14T160 14V18z' fill='%23f8fafc'/%3E%3C/svg%3E");
}

/* Serpentinas (Año Nuevo). */
.tienda-publica .xs-temp-pie-serpentinas {
    top: -9px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='16' viewBox='0 0 120 16'%3E%3Cpath d='M0 6q15-7 30 0t30 0 30 0 30 0' stroke='%23f5c451' stroke-width='2' fill='none'/%3E%3Cpath d='M0 10q15 7 30 0t30 0 30 0 30 0' stroke='%23a78bfa' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}

/* Pétalos (San Valentín). */
.tienda-publica .xs-temp-pie-petalos {
    top: -10px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='16' viewBox='0 0 140 16'%3E%3Cg fill='%23f472b6'%3E%3Cellipse cx='12' cy='10' rx='5' ry='2.6' transform='rotate(-20 12 10)'/%3E%3Cellipse cx='58' cy='7' rx='4' ry='2.2' transform='rotate(25 58 7)' fill='%23fda4af'/%3E%3Cellipse cx='96' cy='11' rx='5' ry='2.6' transform='rotate(10 96 11)'/%3E%3Cellipse cx='126' cy='6' rx='3.6' ry='2' transform='rotate(-35 126 6)' fill='%23e11d48'/%3E%3C/g%3E%3C/svg%3E");
}

/* Olas (Verano). */
.tienda-publica .xs-temp-pie-olas {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='18' viewBox='0 0 120 18'%3E%3Cpath d='M0 18V9q15-8 30 0t30 0 30 0 30 0V18z' fill='%230ea5e9' fill-opacity='.55'/%3E%3Cpath d='M0 18v-5q15-6 30 0t30 0 30 0 30 0v5z' fill='%2338bdf8' fill-opacity='.8'/%3E%3C/svg%3E");
}

/* Calabazas (Halloween). */
.tienda-publica .xs-temp-pie-calabazas {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='18' viewBox='0 0 180 18'%3E%3Cg fill='%23fb923c'%3E%3Cellipse cx='30' cy='12.5' rx='7' ry='5.5'/%3E%3Cellipse cx='120' cy='13' rx='6' ry='5'/%3E%3C/g%3E%3Cg fill='%2365a30d'%3E%3Crect x='29' y='5' width='2' height='3' rx='1'/%3E%3Crect x='119' y='6' width='2' height='3' rx='1'/%3E%3C/g%3E%3C/svg%3E");
}

/* Íconos de los títulos de las fiestas nuevas. */
.tienda-publica.xs-temp-fiestas-patrias {
    --xs-temp-icono-titulo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 3.4a6.6 6.6 0 1 1 0 13.2 6.6 6.6 0 0 1 0-13.2zm0 2.8a3.8 3.8 0 1 0 0 7.6 3.8 3.8 0 0 0 0-7.6z'/%3E%3C/svg%3E");
}

.tienda-publica.xs-temp-dia-madre {
    --xs-temp-icono-titulo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2.5c1.9 0 3.3 1.6 3 3.6 1.7-1.1 3.9-.6 4.8 1.2.9 1.8.1 3.8-1.7 4.6 1.8.8 2.6 2.8 1.7 4.6-.9 1.8-3.1 2.3-4.8 1.2.3 2-1.1 3.6-3 3.6s-3.3-1.6-3-3.6c-1.7 1.1-3.9.6-4.8-1.2-.9-1.8-.1-3.8 1.7-4.6C3.1 11.1 2.3 9.1 3.2 7.3 4.1 5.5 6.3 5 8 6.1c-.3-2 1.1-3.6 4-3.6zM12 9.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z'/%3E%3C/svg%3E");
}

.tienda-publica:is(.xs-temp-dia-padre, .xs-temp-dia-nino) {
    --xs-temp-icono-titulo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.6 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 20.9l1.6-7L2 9.2l7.1-.6z'/%3E%3C/svg%3E");
}

.tienda-publica.xs-temp-black-friday {
    --xs-temp-icono-titulo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.5 1.5 4 13.5h6.5L9 22.5l10-12.5h-6.6z'/%3E%3C/svg%3E");
}

/* Franja rojo y blanco (Fiestas Patrias). */
.tienda-publica .xs-temp-pie-franja {
    top: -3px;
    height: 6px;
    background: linear-gradient(90deg, #d91023 0 33.33%, #f8fafc 33.33% 66.66%, #d91023 66.66%);
    opacity: 0.9;
}

/* ----------------------------------------------------------- Partículas */

.tienda-publica .xs-temp-particulas {
    position: fixed;
    inset: 0;
    z-index: 35;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .tienda-publica .xs-temp-particulas {
        display: none;
    }
}

/* ============================================================ Movimiento */
/* Clases y variables que pone public/js/tienda-dinamica.js (luces, viento y
   nieve) o Alpine (personaje). Todo se apaga con prefers-reduced-motion. */

/* Luces que brillan más cerca del mouse (--cerca de 0 a 1). */
.tienda-publica.xs-temp-con-luces_reactivas .xs-temp-guirnalda i {
    transition: scale 0.4s ease-out, filter 0.4s ease-out;
}

.tienda-publica .xs-temp-guirnalda > span.xs-cerca i {
    animation: none;
    opacity: 1;
    scale: calc(1 + var(--cerca, 0) * 0.5);
    filter: brightness(calc(1 + var(--cerca, 0) * 0.9)) drop-shadow(0 0 calc(var(--cerca, 0) * 7px) var(--luz));
    transition: scale 0.15s ease-out, filter 0.15s ease-out;
}

/* Colgantes que se balancean al bajar o subir por la página (--viento). */
.tienda-publica .xs-temp-colgantes > span {
    rotate: var(--viento, 0deg);
    transition: rotate 0.7s cubic-bezier(0.3, 1.7, 0.5, 1);
}

/* Nieve que se va juntando sobre el pie (--nieve de 0,18 a 1). */
.tienda-publica .xs-temp-nieve-acumulada {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% - 6px);
    z-index: 1;
    height: 26px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='26' viewBox='0 0 220 26'%3E%3Cpath d='M0 26V14Q20 5 45 11T95 8 150 12 200 6 220 13V26z' fill='%23e2e8f0'/%3E%3Cpath d='M0 26V19Q25 13 55 17T110 15 165 18 220 17V26z' fill='%23f8fafc'/%3E%3C/svg%3E") left bottom / auto 100% repeat-x;
    filter: drop-shadow(0 -1px 2px rgba(0, 0, 0, 0.25));
    transform: scaleY(var(--nieve, 0.18));
    transform-origin: 50% 100%;
    transition: transform 3.5s ease-out;
    pointer-events: none;
}

/* Personaje: sube y saluda; globo de texto; tocarlo lleva a las ofertas. */
.tienda-publica .xs-temp-personaje.xs-saludando {
    transform: translateY(0);
}

.tienda-publica .xs-temp-personaje-globo {
    position: absolute;
    bottom: 82%;
    left: 72%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.45rem 0.7rem;
    border-radius: 0.9rem 0.9rem 0.9rem 0.2rem;
    background: #f8fafc;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    font-size: 0.78rem;
    line-height: 1.25;
    white-space: nowrap;
    color: #0b0d14;
    pointer-events: none;
}

.tienda-publica .xs-temp-personaje-globo span {
    font-size: 0.72rem;
    font-weight: 700;
    color: color-mix(in srgb, var(--xs-temp-acento) 55%, #0b0d14);
}

.tienda-publica .xs-temp-personaje-enlace {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 1rem;
}

.tienda-publica .xs-temp-personaje-enlace:focus-visible {
    outline: 2px solid var(--xs-temp-acento);
    outline-offset: 2px;
}

.tienda-publica .xs-temp-personaje:has(.xs-temp-personaje-enlace) {
    cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
    /* Accesorio del logo: se mece cada tanto y salta al pasar el mouse. */
    @keyframes xs-temp-acc-mecer {
        0%, 82%, 100% { rotate: 0deg; }
        86% { rotate: 10deg; }
        90% { rotate: -8deg; }
        94% { rotate: 4deg; }
        97% { rotate: -2deg; }
    }

    @keyframes xs-temp-acc-salto {
        0%, 100% { translate: 0 0; }
        35% { translate: 0 -7px; }
        65% { translate: 0 1px; }
    }

    .tienda-publica.xs-temp-con-logo_animado .xs-temp-accesorio {
        animation: xs-temp-acc-mecer 6s ease-in-out infinite;
    }

    .tienda-publica.xs-temp-con-logo_animado a:hover .xs-temp-accesorio,
    .tienda-publica.xs-temp-con-logo_animado .xs-temp-carrito:hover .xs-temp-accesorio {
        animation: xs-temp-acc-salto 0.55s ease-out;
    }

    /* El personaje saluda con la mano (el sol, girando). */
    @keyframes xs-temp-saludar {
        from { rotate: 6deg; }
        to { rotate: -30deg; }
    }

    @keyframes xs-temp-sol-saluda {
        0%, 100% { rotate: 0deg; }
        25% { rotate: -10deg; }
        75% { rotate: 10deg; }
    }

    .tienda-publica .xs-temp-personaje.xs-saludando .xs-temp-brazo {
        animation: xs-temp-saludar 0.4s ease-in-out infinite alternate;
    }

    .tienda-publica .xs-temp-personaje-sol.xs-saludando svg {
        animation: xs-temp-asomar 4s ease-in-out infinite, xs-temp-sol-saluda 0.9s ease-in-out 3;
    }

    /* Botones de temporada: las rayas del bastón de caramelo avanzan, el
       arcoíris se desliza y los demás dan un saltito cada tanto (uno tras
       otro, no todos a la vez). Al pasar el mouse, rebotan. */
    @keyframes xs-temp-rayas {
        to { background-position: 26.87px 0; }
    }

    @keyframes xs-temp-degradado {
        from { background-position: 0% 50%; }
        to { background-position: 100% 50%; }
    }

    @keyframes xs-temp-boton-salto {
        0%, 86%, 100% { scale: 1; }
        90% { scale: 1.05; }
        94% { scale: 0.98; }
        97% { scale: 1.02; }
    }

    @keyframes xs-temp-gelatina {
        0% { scale: 1 1; }
        30% { scale: 1.07 0.93; }
        50% { scale: 0.96 1.04; }
        70% { scale: 1.02 0.98; }
        100% { scale: 1 1; }
    }

    .tienda-publica.xs-temp-botones-caramelo .xhin-boton-primario {
        animation: xs-temp-rayas 1.8s linear infinite;
    }

    .tienda-publica.xs-temp-botones-arcoiris .xhin-boton-primario {
        background-size: 200% 100%;
        animation: xs-temp-degradado 3s ease-in-out infinite alternate;
    }

    .tienda-publica[class*='xs-temp-botones-']:not(.xs-temp-botones-caramelo):not(.xs-temp-botones-arcoiris) .xhin-boton-primario {
        animation: xs-temp-boton-salto 4s ease-in-out infinite;
        animation-delay: calc(var(--xhin-i, 0) * 0.4s);
    }

    .tienda-publica[class*='xs-temp-botones-'] .xhin-boton-primario:hover {
        animation: xs-temp-gelatina 0.5s ease-out;
    }
}
