/* ===========================================================
   Cuadros Xpress · Nieve y escarcha (winter.css)
   Creado por CAEROLI SOLUCIONES TECNOLÓGICAS, S.A.S.
   Los estilos de lo que dibuja js/winter.js: el hielo de las esquinas y de los bordes, los carámbanos, los destellos y el lienzo de la nieve.
   Todo va encima de la página pero NUNCA recibe clics (pointer-events: none). Con «reducir movimiento» no se anima nada.
   =========================================================== */
.wt-root { position: fixed; inset: 0; z-index: 88; pointer-events: none; overflow: hidden; }
.wt-root.boxed { position: absolute; z-index: 1; border-radius: inherit; } /* dentro de un recuadro (vista previa del panel) */
.wt-snow { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Escarcha: vidrio helado en los bordes + cristales en las esquinas + carámbanos arriba + destellos */
.wt-frost { position: absolute; inset: 0; box-shadow: inset 0 0 90px 8px rgba(184, 211, 247, .55), inset 0 0 26px 2px rgba(255, 255, 255, .85); animation: wtFade 2.4s ease-out both; }
.wt-corner { --o: .7; position: absolute; width: clamp(110px, 17vw, 230px); aspect-ratio: 1; background: url(../assets/frost.svg) 0 0 / contain no-repeat; opacity: var(--o);
  filter: drop-shadow(0 0 2px rgba(104, 146, 219, .85)) drop-shadow(0 0 7px rgba(150, 190, 245, .55)); transform-origin: 0 0; animation: wtGrow 3.2s cubic-bezier(.2, .7, .2, 1) both; }
.wt-corner.c1, .wt-corner.c2 { --o: .5; width: clamp(80px, 10vw, 140px); } /* arriba más chicos: no tapan el logo ni el carrito */
.wt-corner.c1 { left: 0; top: 0; }
.wt-corner.c2 { right: 0; top: 0; transform: scaleX(-1); transform-origin: 100% 0; animation-name: wtGrowX; }
.wt-corner.c3 { left: 0; bottom: 0; transform: scaleY(-1); transform-origin: 0 100%; animation-name: wtGrowY; }
.wt-corner.c4 { right: 0; bottom: 0; transform: scale(-1, -1); transform-origin: 100% 100%; animation-name: wtGrowXY; }
.wt-icicles { position: absolute; left: 0; right: 0; top: 0; height: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='40' viewBox='0 0 90 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.96'/%3E%3Cstop offset='1' stop-color='%23a9cbf3' stop-opacity='.8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 0H90V5L82 5L77 30L72 5L62 5L57 16L52 5L44 5L39 38L34 5L22 5L14 26L8 5L0 5Z' fill='url(%23g)'/%3E%3Cpath d='M77 8L76.5 24M39 8L38.5 32M14 8L13.6 20M57 7L56.7 12' stroke='%23fff' stroke-width='1.2' stroke-linecap='round' opacity='.9'/%3E%3C/svg%3E") 0 0 / 90px 40px repeat-x;
  filter: drop-shadow(0 2px 3px rgba(104, 146, 219, .45)); transform-origin: 50% 0; animation: wtDrop 1.8s cubic-bezier(.2, .8, .2, 1) both; }
.wt-glint { position: absolute; width: var(--s, 8px); height: var(--s, 8px); background: #fff; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 3px rgba(100, 150, 232, .95)); animation: wtTwinkle var(--d, 3.4s) ease-in-out var(--w, 0s) infinite; }

@keyframes wtFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wtGrow { from { opacity: 0; transform: scale(.55); } 40% { opacity: var(--o); } to { opacity: var(--o); transform: scale(1); } }
@keyframes wtGrowX { from { opacity: 0; transform: scale(-.55, .55); } 40% { opacity: var(--o); } to { opacity: var(--o); transform: scale(-1, 1); } }
@keyframes wtGrowY { from { opacity: 0; transform: scale(.55, -.55); } 40% { opacity: var(--o); } to { opacity: var(--o); transform: scale(1, -1); } }
@keyframes wtGrowXY { from { opacity: 0; transform: scale(-.55, -.55); } 40% { opacity: var(--o); } to { opacity: var(--o); transform: scale(-1, -1); } }
@keyframes wtDrop { from { opacity: 0; transform: scaleY(.1); } to { opacity: 1; transform: scaleY(1); } }
@keyframes wtTwinkle { 0%, 100% { opacity: .15; transform: scale(.55) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(25deg); } }

@media (max-width: 700px) { .wt-corner.c1, .wt-corner.c2 { width: 64px; --o: .4; } .wt-icicles { height: 32px; background-size: 72px 32px; } .wt-frost { box-shadow: inset 0 0 60px 4px rgba(184, 211, 247, .5), inset 0 0 20px 1px rgba(255, 255, 255, .85); } }
@media (prefers-reduced-motion: reduce) {
  .wt-frost, .wt-corner, .wt-icicles { animation: none; }
  .wt-corner.c1 { transform: none; } .wt-glint { animation: none; opacity: .75; }
}
