/* Ambientación estacional. Capa decorativa: nunca debe tapar contenido ni capturar clics ajenos. */

.ambient-banner {
    display: block;
    padding: 0.5rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    text-decoration: none;
}

a.ambient-banner:hover {
    filter: brightness(1.08);
    color: inherit;
}

/* Contenedor de altura cero: la guirnalda cuelga sobre el borde superior del navbar. */
.ambient-top {
    position: relative;
    height: 0;
    z-index: 1036; /* el navbar de la tienda usa 1035; el carrito (offcanvas) 1045 queda por encima */
    pointer-events: none;
}

.ambient-superior {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    background-repeat: repeat-x;
    background-position: top center;
    background-size: auto 100%;
    pointer-events: none;
}

.ambient-deco {
    position: fixed;
    width: var(--ambient-corner-w, 120px);
    height: auto;
    z-index: 1025;
    user-select: none;
    -webkit-user-drag: none;
}

.ambient-deco.is-replayable {
    cursor: pointer;
}

/* Los inferiores quedan fijos en pantalla; los superiores se van con el scroll.
   Los superiores cuelgan de la esquina, por encima del navbar (z 1035), y no capturan clics
   para no tapar el logo, el buscador ni el carrito. */
.ambient-deco--sup_izq,
.ambient-deco--sup_der {
    position: absolute;
    top: 0;
    z-index: 1036;
    pointer-events: none;
}

.ambient-deco--sup_izq { left: 0; }
.ambient-deco--sup_der { right: 0; }
.ambient-deco--inf_izq { left: 0; bottom: 0; }
.ambient-deco--inf_der { right: 0; bottom: 0; }

@media (max-width: 575.98px) {
    .ambient-deco {
        width: calc(var(--ambient-corner-w, 120px) * 0.55);
    }

    .ambient-deco--sup_izq,
    .ambient-deco--sup_der {
        display: none;
    }

    .ambient-superior {
        height: 32px;
    }
}

/* Canvas de animaciones (lo crea ambientacion.js). */
.ambient-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1060;
    pointer-events: none;
}

@media print {
    .ambient { display: none !important; }
}
