/* ══════════ Temáticas del año (code/temporada.php) ══════════
   --ss-1 / --ss-2: colores de la temporada · --ss-bg: degradado · --ss-top: alto de la barra de navegación (lo mide temporada.js) */
.ss { position: fixed; inset: 0; pointer-events: none; z-index: 45; overflow: hidden; }
html.ss-on ::selection { background: var(--ss-1); color: #fff; }

/* ─── Partículas ─── */
.ss-layer span { position: absolute; left: var(--x); font-size: calc(20px * var(--s)); line-height: 1; opacity: .6; will-change: transform;
  animation-duration: var(--t); animation-delay: calc(var(--d) * -1); animation-iteration-count: infinite; animation-timing-function: linear;
  filter: drop-shadow(0 2px 3px rgba(1,23,80,.18)); }
.ss-fx-fall .ss-layer span, .ss-fx-slow .ss-layer span { top: -6%; animation-name: ssFall; }
.ss-fx-slow .ss-layer span { opacity: .45; }
/* papelillo de color (Carnaval, Año Nuevo) */
.ss-layer .ss-conf { width: calc(7px * var(--s)); height: calc(13px * var(--s)); border-radius: 2px; background: var(--c); opacity: .85; rotate: var(--r); filter: none; }
.ss-fx-rise .ss-layer span { top: 104%; animation-name: ssRise; opacity: .5; }
.ss-fx-fly .ss-layer span { left: -8%; top: var(--y); animation-name: ssFly; animation-timing-function: ease-in-out; }
@keyframes ssFall { 0% { transform: translate3d(0,0,0) rotate(0); } 50% { transform: translate3d(28px,55vh,0) rotate(160deg); } 100% { transform: translate3d(-12px,112vh,0) rotate(320deg); } }
@keyframes ssRise { 0% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-24px,-55vh,0); } 100% { transform: translate3d(14px,-115vh,0); } }
@keyframes ssFly { 0% { transform: translate3d(0,0,0) scaleX(1); } 25% { transform: translate3d(30vw,-40px,0); } 50% { transform: translate3d(58vw,25px,0); }
  75% { transform: translate3d(84vw,-30px,0); } 100% { transform: translate3d(118vw,10px,0); } }

/* ─── Halloween: telarañas en las esquinas y araña colgando ─── */
.ss-web { position: absolute; top: var(--ss-top, 64px); width: 118px; height: 118px; color: rgba(1,23,80,.28); }
.ss-web-l { left: 0; }
.ss-web-r { right: 0; transform: scaleX(-1); }
.ss-spider { position: absolute; top: var(--ss-top, 64px); right: 74px; font-size: 22px; display: flex; flex-direction: column; align-items: center; animation: ssSpider 4.5s ease-in-out infinite; transform-origin: top center; }
.ss-thread { width: 1px; height: 60px; background: rgba(1,23,80,.35); }
@keyframes ssSpider { 0%,100% { transform: translateY(-14px); } 50% { transform: translateY(18px); } }

/* ─── Navidad / Año Nuevo / Carnaval: guirnalda de luces bajo el menú ─── */
.ss-lights { position: absolute; top: var(--ss-top, 64px); left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 6px; height: 22px;
  background: radial-gradient(120% 22px at 50% -8px, transparent 70%, rgba(1,23,80,.25) 71%, transparent 75%) 0 0 / 52px 22px repeat-x; }
.ss-lights i { width: 9px; height: 13px; border-radius: 50% 50% 45% 45%; margin-top: 7px; background: var(--ss-1); box-shadow: 0 0 10px var(--ss-1); animation: ssTwinkle 1.6s ease-in-out infinite; }
.ss-lights i:nth-child(3n+2) { background: var(--ss-2); box-shadow: 0 0 10px var(--ss-2); animation-delay: .5s; }
.ss-lights i:nth-child(3n) { background: #facc15; box-shadow: 0 0 10px #facc15; animation-delay: 1s; }
.ss-lights i:nth-child(n+21) { display: none; }
@media (min-width: 768px) { .ss-lights i:nth-child(n+21) { display: block; } }
@keyframes ssTwinkle { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ─── Adornos: logo y Pixel ─── */
.ss-hat { position: absolute; top: -12px; left: -10px; font-size: 20px; transform: rotate(-18deg); pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)); }
.ss-hat-svg { top: -17px; left: -12px; width: 34px; line-height: 0; }
.ss-hat svg, .ss-px-hat svg { width: 100%; height: auto; display: block; }
/* Pixel: sombrero sobre la cabeza + objeto de la temporada a su lado (flota al mismo ritmo que Pixel) */
.ss-pixel { position: absolute; inset: 0; pointer-events: none; z-index: 2; animation: botFloat 3.2s ease-in-out infinite; }
.ss-px-hat { position: absolute; top: -13%; left: 26%; width: 48%; transform: rotate(-8deg); filter: drop-shadow(0 3px 3px rgba(0,0,0,.25)); }
.ss-px-prop { position: absolute; left: -40%; top: 30%; font-size: 30px; line-height: 1; transform-origin: bottom center; animation: ssSwing 2.6s ease-in-out infinite; filter: drop-shadow(0 4px 5px rgba(1,23,80,.3)); }
.ss-px-prop2 { position: absolute; left: -22%; top: 4%; font-size: 17px; line-height: 1; animation: ssFloat 4s ease-in-out infinite; }
@keyframes ssSwing { 0%,100% { transform: rotate(-10deg); } 50% { transform: rotate(12deg); } }
@media (min-width: 640px) { .ss-px-prop { font-size: 34px; left: -38%; } }

/* ─── Carnaval: banderines de colores y serpentinas ─── */
.ss-bunting { position: absolute; top: var(--ss-top, 64px); left: 0; right: 0; height: 34px; display: flex; justify-content: space-between; padding: 0 4px;
  background: radial-gradient(120% 26px at 50% -14px, transparent 72%, rgba(1,23,80,.35) 73%, transparent 77%) 0 0 / 46px 26px repeat-x; }
.ss-bunting i { width: 20px; height: 26px; margin-top: 4px; clip-path: polygon(0 0, 100% 0, 50% 100%); background: #ec4899; transform-origin: top center; animation: ssFlag 2.8s ease-in-out infinite; }
.ss-bunting i:nth-child(5n+2) { background: #facc15; animation-delay: .3s; }
.ss-bunting i:nth-child(5n+3) { background: #06b6d4; animation-delay: .6s; }
.ss-bunting i:nth-child(5n+4) { background: #a855f7; animation-delay: .9s; }
.ss-bunting i:nth-child(5n) { background: #22c55e; animation-delay: 1.2s; }
.ss-bunting i:nth-child(n+19) { display: none; }
@media (min-width: 768px) { .ss-bunting i:nth-child(n+19) { display: block; } }
@keyframes ssFlag { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.ss-streamer { position: absolute; top: calc(var(--ss-top, 64px) + 18px); width: 22px; height: 150px; transform-origin: top center; animation: ssStreamer 3.4s ease-in-out infinite; opacity: .9; }
.ss-streamer-l { left: 14px; }
.ss-streamer-l2 { left: 40px; height: 110px; animation-delay: -1.2s; }
.ss-streamer-r { right: 14px; animation-delay: -.6s; }
.ss-streamer-r2 { right: 40px; height: 110px; animation-delay: -2s; }
@keyframes ssStreamer { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

/* ─── Año Nuevo: fuegos artificiales dorados y brillo bajo el menú ─── */
.ss-fw { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.ss-fw i { position: absolute; left: -2px; bottom: 0; width: 4px; height: 44px; border-radius: 4px; transform-origin: 50% 100%;
  background: linear-gradient(to top, transparent, #d97706 55%, #fbbf24); opacity: 0; filter: drop-shadow(0 0 4px rgba(217,119,6,.7));
  animation: ssBurst 5.4s ease-out infinite; animation-delay: var(--d); }
.ss-fw i:nth-child(3n) { background: linear-gradient(to top, transparent, #b45309 55%, #f59e0b); }
.ss-fw i:nth-child(4n) { background: linear-gradient(to top, transparent, #1f2937 55%, #9ca3af); filter: none; }
.ss-fw::after { content: "✦"; position: absolute; left: -9px; top: -12px; font-size: 18px; color: #f59e0b; opacity: 0; animation: ssSpark 5.4s ease-out infinite; animation-delay: var(--d); }
@keyframes ssBurst { 0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scaleY(.1); } 6% { opacity: 1; }
  24% { opacity: 1; transform: rotate(var(--a)) translateY(-50px) scaleY(1); } 40%, 100% { opacity: 0; transform: rotate(var(--a)) translateY(-78px) scaleY(.2); } }
@keyframes ssSpark { 0%, 2% { opacity: 0; transform: scale(.4); } 8% { opacity: 1; transform: scale(1.4); } 30%, 100% { opacity: 0; transform: scale(.6); } }
.ss-gold { position: absolute; top: var(--ss-top, 64px); left: 0; right: 0; height: 3px; opacity: .9;
  background: linear-gradient(90deg, transparent, #eab308, #fde68a, #eab308, transparent); background-size: 200% 100%; animation: ssShine 3s linear infinite; }
@keyframes ssShine { from { background-position: 200% 0; } to { background-position: 0 0; } }

/* ─── Semana Santa: cruz con rayos de luz, palmas y rosario ─── */
.ss-holy { position: absolute; top: calc(var(--ss-top, 64px) + 18px); right: 4%; width: 60px; height: 90px; }
.ss-rays { position: absolute; left: 50%; top: 40%; width: 230px; height: 230px; margin: -115px 0 0 -115px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(234,179,8,.22) 0 7deg, transparent 7deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 70%); mask: radial-gradient(circle, #000 25%, transparent 70%); animation: ssSpin 40s linear infinite; }
.ss-cross { position: relative; width: 46px; display: block; margin: 0 auto; filter: drop-shadow(0 0 10px rgba(234,179,8,.6)); }
@keyframes ssSpin { to { transform: rotate(360deg); } }
.ss-palm { position: absolute; top: calc(var(--ss-top, 64px) - 4px); font-size: 46px; opacity: .75; }
.ss-palm-l { left: -2px; transform: rotate(-25deg); }
.ss-palm-r { left: 30px; transform: rotate(15deg) scaleX(-1); }
.ss-rosary { position: absolute; top: calc(var(--ss-top, 64px) - 6px); left: 86px; width: 58px; opacity: .8; transform-origin: top center; animation: ssStreamer 5s ease-in-out infinite; }

/* ─── Vacaciones: sol ─── */
.ss-sun { position: absolute; top: calc(var(--ss-top, 64px) + 16px); right: 4%; width: 70px; height: 70px; }
.ss-sun::before { content: ""; position: absolute; inset: -22px; border-radius: 50%; background: repeating-conic-gradient(rgba(250,204,21,.55) 0 8deg, transparent 8deg 24deg);
  -webkit-mask: radial-gradient(circle, transparent 38%, #000 40%, transparent 72%); mask: radial-gradient(circle, transparent 38%, #000 40%, transparent 72%); animation: ssSpin 24s linear infinite; }
.ss-sun span { position: absolute; inset: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fef08a, #facc15 55%, #f59e0b); box-shadow: 0 0 30px rgba(250,204,21,.7); }

/* ─── Botón flotante de la promoción ─── */
.ss-pill { position: fixed; left: 14px; bottom: max(1.25rem, env(safe-area-inset-bottom)); z-index: 89; display: flex; align-items: center; gap: 8px;
  padding: 7px 8px 7px 10px; border-radius: 999px; background: var(--ss-bg); color: #fff; font-size: 13px; border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 12px 30px -8px var(--ss-1); cursor: pointer; animation: ssPillIn .6s cubic-bezier(.34,1.56,.64,1) both 1s; }
.ss-pill:hover { transform: translateY(-2px); }
.ss-pill-emoji { font-size: 20px; animation: ssWiggle 2.4s ease-in-out infinite; }
.ss-pill-go { background: #fff; color: #011750; font-weight: 800; font-size: 11.5px; padding: 5px 10px; border-radius: 999px; }
@media (max-width: 420px) { .ss-pill-go { display: none; } .ss-pill { font-size: 12px; } }
@keyframes ssPillIn { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ssWiggle { 0%,100% { transform: rotate(0); } 15% { transform: rotate(-14deg); } 30% { transform: rotate(12deg); } 45% { transform: rotate(0); } }

/* ─── Popup ─── */
.ss-overlay { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(3,10,36,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.ss-overlay.open { opacity: 1; visibility: visible; }
.ss-box { position: relative; width: 100%; max-width: 430px; max-height: 92vh; overflow-y: auto; border-radius: 28px; background: #fff;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.55); transform: translateY(24px) scale(.94); transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.ss-overlay.open .ss-box { transform: none; }
.ss-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 12px; border: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.18); color: #fff; cursor: pointer; }
.ss-close:hover { background: rgba(255,255,255,.3); }
.ss-head { position: relative; overflow: hidden; padding: 30px 26px 26px; text-align: center; color: #fff; background: var(--ss-bg); }
.ss-head-fx span { position: absolute; font-size: 22px; opacity: .35; animation: ssFloat 5s ease-in-out infinite; animation-delay: calc(var(--i) * -1s); }
.ss-head-fx span:nth-child(1) { top: 14%; left: 8%; } .ss-head-fx span:nth-child(2) { top: 58%; left: 4%; } .ss-head-fx span:nth-child(3) { top: 22%; right: 16%; }
.ss-head-fx span:nth-child(4) { bottom: 10%; right: 7%; } .ss-head-fx span:nth-child(5) { bottom: 26%; left: 24%; }
@keyframes ssFloat { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(10deg); } }
.ss-emoji { position: relative; display: inline-block; font-size: 64px; line-height: 1; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); animation: ssWiggle 2.6s ease-in-out infinite; }
.ss-eyebrow { position: relative; margin: 12px 0 0; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.ss-title { position: relative; margin: 6px 0 0; font-size: 27px; font-weight: 900; line-height: 1.1; letter-spacing: -.02em; color: #fff; }
.ss-off { position: relative; margin: 10px 0 0; font-size: 58px; font-weight: 900; line-height: 1; letter-spacing: -.04em;
  background: linear-gradient(180deg,#fff 30%,#fde68a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ss-off span { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; -webkit-text-fill-color: rgba(255,255,255,.8); margin-bottom: 2px; }
.ss-off small { font-size: 30px; }
.ss-body { padding: 22px 24px 24px; text-align: center; }
.ss-text { margin: 0; color: #52525b; font-size: 14.5px; line-height: 1.55; }
.ss-code { margin: 16px auto 0; display: flex; align-items: center; gap: 10px; justify-content: center; width: 100%; padding: 11px 14px; border-radius: 14px; cursor: pointer;
  border: 2px dashed var(--ss-1); background: #fff; color: #011750; font: inherit; }
.ss-code span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #71717a; }
.ss-code b { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 17px; letter-spacing: .08em; }
.ss-code em { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--ss-1); }
.ss-count { margin-top: 14px; display: flex; align-items: baseline; justify-content: center; gap: 3px; color: #011750; }
.ss-count[hidden] { display: none; }
.ss-count span { font-size: 12px; color: #71717a; margin-right: 6px; }
.ss-count b { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ss-count small { font-size: 11px; color: #71717a; margin-right: 6px; }
.ss-cta { display: block; margin-top: 18px; padding: 14px 18px; border-radius: 16px; color: #fff; font-weight: 800; font-size: 15px; text-decoration: none;
  background: linear-gradient(90deg, var(--ss-1), var(--ss-2)); box-shadow: 0 14px 28px -10px var(--ss-1); transition: transform .2s; }
.ss-cta:hover { transform: translateY(-2px); }
.ss-later { margin-top: 10px; border: 0; background: none; color: #71717a; font-size: 13px; font-weight: 600; cursor: pointer; }
.ss-later:hover { color: #011750; }

@media (max-width: 640px) {
  .ss-hide-sm { display: none; }
  .ss-web { width: 78px; height: 78px; }
  .ss-spider { right: 46px; }
  .ss-streamer { height: 100px; }
  .ss-streamer-l2, .ss-streamer-r2 { display: none; }
  .ss-holy, .ss-sun { transform: scale(.75); transform-origin: top right; }
  .ss-rays { width: 160px; height: 160px; margin: -80px 0 0 -80px; }
  .ss-palm { font-size: 34px; }
  .ss-rosary { width: 42px; left: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .ss-layer, .ss-spider { display: none; }
  .ss-lights i, .ss-pill, .ss-pill-emoji, .ss-emoji, .ss-head-fx span, .ss-pixel, .ss-px-prop, .ss-px-prop2,
  .ss-bunting i, .ss-streamer, .ss-gold, .ss-rays, .ss-sun::before, .ss-rosary { animation: none; }
  .ss-fw { display: none; }
}
