/* Ventas de temporada exclusivas (p. ej. pijamas de Navidad) */
.season-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(238,116,41,.18); color: #ffb680; border: 1px solid rgba(238,116,41,.5); font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.season-hero { background: radial-gradient(900px 400px at 85% 0%, rgba(34,211,238,.25), transparent 60%), linear-gradient(135deg, #0b1220, #13294b 60%, #1f6aa5); background-size: cover; background-position: center; color: #fff; padding: 56px 0 44px; text-align: center; }
.season-hero h1 { font-family: var(--bc-display); font-size: clamp(2rem, 5vw, 3.4rem); margin: 12px 0 8px; color: #fff; }
.season-sub { max-width: 640px; margin: 0 auto 16px; color: #d9e6f5; font-size: 1.1rem; }
.season-dates { margin: 12px 0 0; color: #bcd4ee; font-size: .92rem; }
.season-ended { display: inline-block; margin-top: 12px; padding: 12px 18px; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; }
.season-note { padding: 10px 14px; border-radius: 10px; background: var(--bc-surface-light); border: 1px dashed var(--bc-primary); margin: 0 0 18px; }
.season-timer { display: inline-flex; align-items: baseline; gap: 6px; padding: 10px 18px; border-radius: 12px; background: rgba(11,18,32,.65); border: 1px solid rgba(34,211,238,.5); box-shadow: 0 0 22px rgba(34,211,238,.25); color: #fff; font-family: ui-monospace, Menlo, Consolas, monospace; }
.season-timer .st-label { margin-right: 8px; color: #7fe3f5; text-transform: uppercase; font-size: .72rem; letter-spacing: .12em; font-family: var(--bc-font); font-weight: 700; }
.season-timer b { font-size: 1.5rem; }
.season-timer i { font-style: normal; font-size: .75rem; color: #bcd4ee; margin-right: 6px; }
.season-timer-sm b { font-size: 1.15rem; }
.season-desc { max-width: 820px; margin: 0 0 22px; color: var(--bc-text); font-size: 1.02rem; line-height: 1.7; }
.season-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.season-card { display: block; background: var(--bc-surface); border: 1px solid var(--bc-border); border-radius: 14px; overflow: hidden; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.season-card:hover { transform: translateY(-5px); border-color: var(--fx-cyan, #22d3ee); box-shadow: 0 12px 34px -10px rgba(34,211,238,.5); }
.season-card.is-ended { filter: grayscale(.7); opacity: .85; }
.season-card-img { aspect-ratio: 4 / 5; background: var(--bc-surface-light); overflow: hidden; }
.season-card-img img { width: 100%; height: 100%; object-fit: cover; }
.season-card-body { padding: 14px 16px 16px; }
.season-card-body h2 { font-size: 1.05rem; margin: 0 0 6px; color: var(--bc-text); }
.season-price { margin: 0 0 8px; color: var(--bc-primary); }
.season-price s { color: var(--bc-text-muted); font-size: .85rem; }
.season-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(238,116,41,.14); color: var(--bc-accent); font-size: .74rem; font-weight: 700; }

.season-strip { background: linear-gradient(90deg, #0b1220, #13294b 60%, #1f6aa5); background-size: cover; background-position: center; color: #fff; }
.season-strip-inner { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; padding: 22px 20px; }
.season-strip h2 { margin: 8px 0 4px; font-family: var(--bc-display); font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; }
.season-strip p { margin: 0; color: #d9e6f5; }
.season-strip-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav-links a.nav-season { color: var(--bc-accent); font-weight: 800; }

.sp-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.sp-main { display: flex; justify-content: center; align-items: center; max-height: 82vh; border-radius: 16px; overflow: hidden; background: var(--bc-surface-light); border: 1px solid var(--bc-border); }
.sp-main img { width: auto; max-width: 100%; height: auto; max-height: 82vh; object-fit: contain; }
.sp-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sp-thumb { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; width: 70px; height: 70px; cursor: pointer; background: none; }
.sp-thumb.is-on { border-color: var(--bc-primary); }
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-info h1 { font-family: var(--bc-display); font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 10px 0 6px; }
.sp-price { font-size: 1.7rem; color: var(--bc-primary); margin: 0 0 12px; }
.sp-price s { font-size: 1rem; color: var(--bc-text-muted); }
.sp-desc { margin: 12px 0 18px; color: var(--bc-text); line-height: 1.65; }
.sp-field { border: 0; padding: 0; margin: 0 0 18px; }
.sp-field legend, .sp-field > label { font-weight: 800; margin-bottom: 8px; display: block; padding: 0; }
.sp-sel { color: var(--bc-primary); font-weight: 600; margin-left: 4px; }
.sp-swatches { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px 8px; }
.sp-swatch { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; cursor: pointer; }
.sp-swatch input, .sp-size input { position: absolute; opacity: 0; pointer-events: none; }
.sp-swatch-box { display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; border: 3px solid var(--bc-border); overflow: hidden; background: var(--bc-surface-light); font-size: 1.6rem; color: var(--bc-text-muted); transition: border-color .15s, box-shadow .15s; }
.sp-swatch-box img { width: 100%; height: 100%; object-fit: cover; }
.sp-swatch:hover .sp-swatch-box { border-color: var(--fx-cyan, #22d3ee); }
.sp-swatch input:checked + .sp-swatch-box { border-color: var(--bc-primary); box-shadow: 0 0 0 3px rgba(49,125,183,.35); }
.sp-swatch input:focus-visible + .sp-swatch-box { outline: 2px solid var(--bc-accent); outline-offset: 2px; }
.sp-swatch-name { font-size: .8rem; text-align: center; line-height: 1.2; max-width: 100%; overflow-wrap: anywhere; }
.sp-swatch-name small { display: block; color: var(--bc-text-muted); }
.sp-swatch.is-out { opacity: .45; cursor: not-allowed; }
.sp-out, .sp-low { font-size: .68rem; font-weight: 800; }
.sp-out { color: #f87171; } .sp-low { color: var(--bc-accent); }
.sp-sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-size { position: relative; cursor: pointer; }
.sp-size span { display: grid; place-items: center; min-width: 48px; height: 44px; padding: 0 12px; border-radius: 10px; border: 2px solid var(--bc-border); font-weight: 700; transition: border-color .15s, background .15s; }
.sp-size:hover span { border-color: var(--fx-cyan, #22d3ee); }
.sp-size input:checked + span { border-color: var(--bc-primary); background: var(--bc-primary); color: #fff; }
.sp-size input:focus-visible + span { outline: 2px solid var(--bc-accent); outline-offset: 2px; }
.sp-size.is-out { opacity: .4; cursor: not-allowed; }
.sp-size.is-out span { text-decoration: line-through; }
.sp-field input[type=text] { width: 100%; padding: 12px 14px; border: 2px solid var(--bc-border); border-radius: 10px; background: var(--bc-surface); color: var(--bc-text); font: inherit; font-size: 1.05rem; }
.sp-hint { margin-top: 5px; color: var(--bc-text-muted); font-size: .8rem; }
.sp-req { color: #f87171; font-size: .72rem; } .sp-opt { color: var(--bc-text-muted); font-size: .72rem; font-weight: 500; }
.sp-preview { margin-top: 10px; padding: 12px 16px; border-radius: 12px; background: linear-gradient(135deg, #7a1d1d, #b3262e); color: #fff; }
.sp-preview > div { font-family: 'Brush Script MT', 'Segoe Script', cursive; font-size: 1.9rem; line-height: 1.2; margin-top: 2px; word-break: break-word; }
.sp-buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.sp-add { flex: 1; min-width: 200px; justify-content: center; font-size: 1.05rem; padding: 13px 18px; }
.sp-add[disabled] { opacity: .55; cursor: not-allowed; }
.sp-total { margin: 12px 0 4px; color: var(--bc-text-muted); } .sp-total strong { color: var(--bc-text); font-size: 1.15rem; }
.sp-note { color: var(--bc-text-muted); font-size: .82rem; }
.cart-opts { color: var(--bc-accent); }
@media (max-width: 820px) { .sp-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; } .season-hero { padding: 38px 0 30px; } .season-strip-inner { padding: 18px 16px; } }
@media (prefers-reduced-motion: reduce) { .season-card, .season-card:hover { transition: none; transform: none; } }

.sp-group-title { margin: 10px 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--bc-text-muted); }
.sp-group-title:first-of-type { margin-top: 0; }

/* Efecto de Navidad: nieve que cae suavemente sobre la cabecera de la venta y la franja de la portada */
.season-hero, .season-strip { position: relative; overflow: hidden; }
.season-hero > *, .season-strip > * { position: relative; z-index: 1; }
.season-hero::before, .season-strip::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255,255,255,.6) 0 1.5px, transparent 2.5px),
    radial-gradient(circle, rgba(255,255,255,.8) 0 3px, transparent 4px);
  background-size: 220px 220px, 140px 140px, 310px 310px;
  background-position: 0 0, 40px 60px, 110px 20px;
  animation: season-snow 16s linear infinite;
}
@keyframes season-snow { to { background-position: 0 220px, 40px 200px, 110px 330px; } }
@media (prefers-reduced-motion: reduce) { .season-hero::before, .season-strip::before { animation: none; } }

@media (max-width: 520px) { .sp-swatches { gap: 8px 5px; } .sp-swatch-box { border-width: 2px; border-radius: 9px; font-size: 1.1rem; } .sp-swatch-name { font-size: .68rem; } .sp-swatch-name small { display: none; } }

@media (max-width: 400px) { .season-timer { flex-wrap: wrap; max-width: 100%; padding: 8px 12px; gap: 4px; box-sizing: border-box; } .season-timer .st-label { flex-basis: 100%; margin-right: 0; } .season-timer b { font-size: 1.2rem; } .season-timer-sm b { font-size: 1.05rem; } .season-timer i { margin-right: 4px; } }

/* Celular: la foto queda fija arriba (más pequeña) para ver a la vez foto, texturas, tallas y el botón de agregar */
@media (max-width: 820px) {
  .sp-layout { display: block; }
  .sp-gallery { position: sticky; top: var(--sp-top, 88px); z-index: 20; background: #fff; padding: 6px 8px 8px; margin-left: -8px; margin-right: -8px; margin-bottom: 14px; border-bottom: 1px solid var(--bc-border); }
  .sp-main { max-height: 32vh; }
  .sp-main img { max-height: 32vh; }
  .sp-thumbs { flex-wrap: nowrap; overflow-x: auto; margin-top: 6px; gap: 6px; -webkit-overflow-scrolling: touch; }
  .sp-thumb { flex: 0 0 auto; width: 44px; height: 44px; }
  .sp-buy { position: sticky; bottom: 0; z-index: 25; background: #fff; flex-wrap: nowrap; gap: 8px; padding: 10px 8px; margin: 8px -8px 0; border-top: 1px solid var(--bc-border); box-shadow: 0 -6px 14px rgba(11,18,32,.08); }
  .sp-buy .qty-stepper { flex: 0 0 auto; } .sp-buy .qty-stepper input { width: 40px; }
  .sp-buy .sp-add { flex: 1 1 auto; min-width: 0; white-space: normal; line-height: 1.15; padding: 10px 12px; font-size: .95rem; }
  body:has(.season-product) .wa-float { bottom: 92px; right: 14px; width: 48px; height: 48px; font-size: 1.45rem; }
}

/* Pantallas anchas pero bajas (celular horizontal): foto fija a la vista y botón de agregar siempre visible */
@media (min-width: 821px) and (max-height: 560px) {
  .sp-gallery { position: sticky; top: calc(var(--sp-top, 88px) + 8px); }
  .sp-main, .sp-main img { max-height: calc(100vh - var(--sp-top, 88px) - 24px); }
  .sp-thumbs { display: none; }
  .sp-buy { position: sticky; bottom: 0; z-index: 25; background: #fff; padding: 8px; margin: 8px -8px 0; border-top: 1px solid var(--bc-border); box-shadow: 0 -6px 14px rgba(11,18,32,.08); }
}

/* Página de producto: sin anuncio ni barra superior, y sin espacios sobre la foto, para ganar pantalla */
body:has(.season-product) .promo-bar,
body:has(.season-product) .topbar { display: none !important; }
.season-product { padding-top: 14px; padding-bottom: 28px; }
@media (max-width: 820px) {
  .season-product { padding-top: 4px; }
  .season-product .landing-crumbs { display: none; }
}

/* Contador junto a "Edición limitada" */
.sp-topline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.sp-topline .season-timer { margin: 0; }
@media (max-width: 820px) {
  .sp-topline { flex-wrap: nowrap; gap: 8px; }
  .sp-topline .season-chip { flex: 0 0 auto; padding: 4px 9px; font-size: .68rem; }
  .sp-topline .season-timer { flex: 1 1 auto; min-width: 0; justify-content: center; flex-wrap: nowrap; padding: 4px 8px; gap: 3px; border-radius: 10px; box-shadow: none; }
  .sp-topline .season-timer .st-label { display: none; }
  .sp-topline .season-timer b { font-size: .95rem; }
  .sp-topline .season-timer i { font-size: .62rem; margin-right: 3px; }
  /* menos espacio entre líneas */
  .sp-info h1 { font-size: 1.35rem; margin: 6px 0 2px; line-height: 1.15; }
  .sp-price { font-size: 1.35rem; margin: 0 0 6px; }
  .sp-desc { margin: 4px 0 10px; line-height: 1.4; font-size: .93rem; }
  .sp-field { margin: 0 0 10px; }
  .sp-field legend, .sp-field > label { margin-bottom: 4px; }
  .sp-swatches { gap: 6px 5px; }
  .sp-sizes { gap: 6px; }
  .sp-size span { height: 38px; min-width: 42px; }
  .sp-group-title { margin: 6px 0 3px; }
  .sp-hint { margin-top: 2px; }
  .sp-total { margin: 6px 0 2px; }
  .sp-note { margin: 4px 0 0; line-height: 1.3; }
}

@media (max-width: 360px) { .sp-buy .sp-add { font-size: .85rem; padding: 10px 8px; gap: 4px; } .sp-buy .sp-add i { display: none; } .sp-buy .qty-stepper input { width: 34px; } .sp-topline .season-chip i { display: none; } }
