/* ======================= MODO JUEGO: franja de progreso y bordes ======================= */
:root { --fb: 0px; --gb: 0px; }
body.has-flash { --fb: 40px; }
body.has-game { --gb: 84px; }
.flashbar { height: 40px; box-sizing: border-box; }
.filters { top: calc(var(--fb) + var(--gb) + 8px) !important; }
.gamebar { position: sticky; top: var(--fb); z-index: 58; height: 84px; box-sizing: border-box; padding: 8px 14px 9px; background: color-mix(in srgb, var(--gc, #ffe600) 88%, #fff); color: var(--ink); border-bottom: 3px solid var(--ink); display: grid; grid-template-rows: auto auto auto; gap: 5px; animation: slidedown .45s var(--ease); }
.gamebar[hidden] { display: none; }
.gamebar.flash { color: #fff; }
.gamebar.flash .gb-line { text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.gamebar.flash .gb-sub { color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.gamebar.done { background: #4ade80; color: var(--ink); }
.gamebar.done .gb-line, .gamebar.done .gb-sub { color: var(--ink); text-shadow: none; }
@keyframes slidedown { from { transform: translateY(-100%); } to { transform: none; } }
.gb-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gb-line { font-weight: 700; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb-x { width: 28px; height: 28px; flex: none; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); font-weight: 700; line-height: 1; color: var(--ink); }
.gb-track { height: 16px; background: rgba(255, 255, 255, .85); border: 2.5px solid var(--ink); border-radius: 999px; overflow: hidden; position: relative; }
.gb-track[hidden] { display: none; }
.gb-track i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, var(--ink) 0 8px, #3a3a3a 8px 16px); border-radius: 999px; transition: width .8s cubic-bezier(.2, .9, .3, 1.15); position: relative; }
.gamebar.done .gb-track i { background: repeating-linear-gradient(-45deg, #16a34a 0 8px, #22c55e 8px 16px); }
.gb-track i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); animation: shimmer 1.6s linear infinite; }
.gb-sub { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; min-height: 22px; }
.gb-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb-act { display: flex; gap: 6px; align-items: center; flex: none; }
.hbtn { background: var(--yellow); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px; padding: 3px 11px; font-weight: 700; font-size: 13px; box-shadow: 0 2px 0 var(--ink); white-space: nowrap; }
.hbtn:active { transform: translateY(2px); box-shadow: none; }
body.has-game::before { content: ""; position: fixed; inset: 0; z-index: 55; pointer-events: none; box-shadow: inset 0 0 0 5px var(--gc, #ffe600), inset 0 0 60px 4px color-mix(in srgb, var(--gc, #ffe600) 40%, transparent); animation: edgepulse 2.6s ease-in-out infinite; }
@keyframes edgepulse { 50% { opacity: .45; } }

/* efectos flotantes */
.flyer { position: fixed; z-index: 2147483000; box-sizing: border-box; width: 50px; height: 62px; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 2px 3px 0 rgba(0, 0, 0, .35); pointer-events: none; will-change: transform, opacity; transform-origin: center; }
.stage.dupflash::before { content: ''; position: absolute; inset: 0; z-index: 2; background: #fff; pointer-events: none; animation: dupflash .5s ease-out; }
@keyframes dupflash { from { opacity: .55; } to { opacity: 0; } }
.conf { position: fixed; z-index: 2147483000; width: 9px; height: 13px; border-radius: 2px; pointer-events: none; }
.conf.emo { width: auto; height: auto; background: none; font-size: 20px; }
.floattext { position: fixed; z-index: 2147483000; font-size: 24px; font-weight: 700; text-shadow: 0 2px 0 var(--ink), 0 0 6px var(--ink); pointer-events: none; }
.edgeflash { position: fixed; inset: 0; z-index: 2147482000; pointer-events: none; }

/* banners claros: título + 3 prendas */
.pbanner h3 { font-size: 30px; line-height: 1; }
.pb-thumbs { display: flex; align-items: center; gap: 7px; margin: 2px 0; }
.th3 { width: 50px; height: 62px; border: 3px solid var(--ink); border-radius: 12px; background: var(--tint, #ffd6ea); overflow: hidden; box-shadow: 2px 2px 0 var(--ink); flex: none; }
.th3:nth-child(1) { transform: rotate(-5deg); } .th3:nth-child(2) { transform: rotate(2deg) translateY(-3px); } .th3:nth-child(3) { transform: rotate(6deg); }
.th3 img { width: 100%; height: 100%; object-fit: contain; }
.th3.more { display: grid; place-items: center; background: var(--ink); color: var(--yellow); font-weight: 700; font-size: 15px; transform: none !important; }

/* avisos accionables */
.hintc { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hintc span { flex: 1; }
.nudge { flex: 1 0 100%; order: -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff8cc; border: 3px solid var(--ink); border-radius: 14px; padding: 7px 10px; font-weight: 600; font-size: 14px; animation: pop .4s var(--ease); }
.nudge[hidden] { display: none; }
.nudge.ok { background: #bbf7d0; }
.nudge button { background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 0 var(--ink); }
.cta { flex-wrap: wrap; }

/* carrito: reacciones */
.crow { transition: background .25s, opacity .4s, transform .5s var(--ease); position: relative; }
.crow.up { animation: rowup .75s ease-out; }
.crow.down { animation: rowdown .75s ease-out; }
@keyframes rowup { 0% { background: #86efac; box-shadow: 0 0 0 4px #22c55e; } 100% { background: #fff; box-shadow: 0 0 0 0 transparent; } }
@keyframes rowdown { 0% { background: #fca5a5; box-shadow: 0 0 0 4px #e11d48; } 100% { background: #fff; box-shadow: 0 0 0 0 transparent; } }
.crow.dying { background: #fca5a5; opacity: 0; transform: translateX(-30px) scale(.94) rotate(-2deg); }
.crow.gift { background: #f0fdf4; border-style: dashed; }
.crow.locked { background: #fef2f2; opacity: .8; }
.gfree { position: absolute; left: -6px; bottom: 4px; background: #22c55e; color: #fff; font-size: 9.5px; font-weight: 700; border: 2px solid var(--ink); border-radius: 6px; padding: 0 4px; transform: rotate(-8deg); }
.cth { position: relative; }
.free { color: #15803d; } .cinfo small.ok { color: #15803d; opacity: 1; }
.lossrib { background: #fee2e2; border: 3px solid #e11d48; border-radius: 14px; padding: 8px 12px; font-weight: 600; font-size: 14px; animation: pop .4s var(--ease); }
.lossrib button { text-decoration: underline; font-weight: 700; margin-left: 6px; }
.cbox.lost { animation: lossshake .55s; }
.cbox.lost::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 6px #e11d48, inset 0 0 90px 10px rgba(225, 29, 72, .55); animation: blinkc 1s ease-out forwards; z-index: 5; }
@keyframes lossshake { 15% { transform: translateX(-9px); } 30% { transform: translateX(8px); } 45% { transform: translateX(-6px); } 60% { transform: translateX(5px); } 80% { transform: translateX(-2px); } }
.chead.lossbg { animation: lossbg 1s ease-out; }
@keyframes lossbg { 0%, 40% { background: #e11d48; color: #fff; } 100% { background: var(--yellow); } }
.fab.lossfab, .cartbtn.lossfab { animation: lossshake .55s; background: #e11d48 !important; }
.fab.cartfab.bump, .cartbtn.bump { animation: pop .45s var(--ease); }

/* diálogos pequeños: confirmar pérdida y regalo */
dialog.mini { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; padding: 16px; border: 0; background: transparent; display: none; place-items: center; overflow: auto; }
dialog.mini[open] { display: grid; }
dialog.mini::backdrop { background: rgba(60, 6, 20, .6); }
.mbox { width: min(400px, 100%); background: var(--paper); border: 3px solid var(--ink); border-radius: 26px; box-shadow: 6px 6px 0 var(--ink); padding: 18px 18px 14px; display: grid; gap: 10px; text-align: center; transform: scale(.85); opacity: 0; transition: transform .3s var(--ease), opacity .2s; }
dialog.mini.open .mbox { transform: none; opacity: 1; }
.mbox.loss { border-color: #e11d48; box-shadow: 6px 6px 0 #e11d48; }
.mbox h3 { font-size: 24px; }
.loss-ic { font-size: 44px; animation: bolt .9s ease-in-out infinite; }
.loss-th { display: flex; justify-content: center; gap: 8px; }
.loss-th .cth { width: 64px; height: 80px; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--tint, #ffd6ea); overflow: hidden; animation: lossshake 1.4s infinite; }
.loss-th .cth img { width: 100%; height: 100%; object-fit: contain; }
.loss-list { list-style: none; padding: 0; display: grid; gap: 6px; text-align: left; }
.loss-list li { background: #fee2e2; border: 2.5px solid #e11d48; border-radius: 12px; padding: 7px 11px; font-weight: 600; font-size: 14.5px; }
.loss-list .cdchip.big { background: #e11d48; color: #fff; }
.btn.keep { background: #22c55e; color: #fff; font-size: 19px; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); width: 100%; }
.drop { color: #b91c1c; font-weight: 600; text-decoration: underline; font-size: 14px; padding: 6px; }
.gsub { font-weight: 600; opacity: .8; }
.gopts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.gopt { display: grid; gap: 6px; justify-items: center; padding: 8px; border: 3px solid var(--ink); border-radius: 16px; background: #f0fdf4; font-size: 14px; transition: transform .15s var(--ease); }
.gopt:active { transform: scale(.94); }
.gopt .cth { width: 80px; height: 100px; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--tint, #ffd6ea); overflow: hidden; }
.gopt .cth img { width: 100%; height: 100%; object-fit: contain; }
.nbtns { display: flex; gap: 6px; flex: none; }
.nudge button.alt { background: #fff; }

/* ======================= RONDA 3 ======================= */
/* --- fondo: rojo + rosado (Todo), rosado (Niñas), azul (Niños), violeta (Adulto) --- */
@property --c4 { syntax: '<color>'; inherits: true; initial-value: #ff6fae; }
:root { --c1: #e8284f; --c4: #ff6fae; --c2: rgba(255, 175, 220, .55); --c3: rgba(165, 8, 48, .42); }
body[data-theme="ninas"] { --c1: #ff5fa8; --c4: #ff9ccc; --c2: rgba(255, 195, 228, .55); --c3: rgba(255, 40, 125, .3); }
body[data-theme="ninos"] { --c1: #1ea7ee; --c4: #5ccaff; --c2: rgba(150, 228, 255, .5); --c3: rgba(8, 95, 205, .32); }
body[data-theme="adultos"] { --c1: #7c3aed; --c4: #b794ff; --c2: rgba(205, 180, 255, .5); --c3: rgba(60, 18, 150, .42); }
body, .stage {
  background:
    radial-gradient(rgba(255, 255, 255, .3) 2.3px, transparent 2.9px) 0 0 / 17px 17px,
    radial-gradient(90% 50% at 100% 0%, var(--c2), transparent 66%),
    radial-gradient(90% 50% at 0% 100%, var(--c3), transparent 66%),
    linear-gradient(135deg, var(--c1) 0%, var(--c4) 100%);
}
.btn-lilac { background: #c9a8f0; }
.hero-cta { flex-wrap: wrap !important; }
.hero-cta .btn { flex: 1 1 42%; min-width: 130px; max-width: 220px; }
.seg button { font-size: 15.5px; padding: 9px 4px; }
@media (max-width: 420px) { .seg button .e { display: none; } .seg { gap: 5px; } .seg button { font-size: 15px; } }

/* barra y banner flash: carmesí más oscuro para destacar sobre el fondo rojo */
.flashbar { background: repeating-linear-gradient(-45deg, #a10d2b 0 16px, #8a0a24 16px 32px) !important; }
.pbanner.flash { background: repeating-linear-gradient(-45deg, #b50f30 0 18px, #9d0c28 18px 36px) !important; }

/* --- bordes con presión: se cierran hacia adentro y laten --- */
body.has-game::before, #sheet.game::before, #cart.game::before {
  content: ""; position: fixed; inset: 0; z-index: 55; pointer-events: none;
  box-shadow: inset 0 0 0 6px var(--gc, #ffe600), inset 0 0 140px 26px color-mix(in srgb, var(--gc, #ffe600) 55%, transparent), inset 0 0 46px 8px color-mix(in srgb, var(--gc, #ffe600) 70%, transparent);
  animation: squeeze 1.2s cubic-bezier(.2, .9, .3, 1) both, heartbeat var(--beat, 1.7s) ease-in-out 1.2s infinite;
}
#sheet.game::before, #cart.game::before { z-index: 30; }
@keyframes squeeze { 0% { transform: scale(1.4); opacity: 0; } 35% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes heartbeat { 0%, 100% { opacity: 1; transform: scale(1); } 12% { transform: scale(1.014); } 24% { opacity: .5; transform: scale(1); } 36% { opacity: 1; transform: scale(1.01); } 62% { opacity: .75; } }
body.thump::after { content: ""; position: fixed; inset: 0; z-index: 56; pointer-events: none; box-shadow: inset 0 0 0 12px var(--gc, #ffe600), inset 0 0 190px 50px var(--gc, #ffe600); animation: thump .65s ease-out forwards; }
@keyframes thump { 0% { opacity: .9; } 100% { opacity: 0; } }

/* --- franja de oferta: altura libre (puede llevar descripción) y también dentro de la ficha y el carrito --- */
.gamebar { height: auto !important; min-height: 84px; grid-template-rows: none !important; }
.gb-desc { font-weight: 600; font-size: 13px; line-height: 1.2; opacity: .95; }
.gb-desc[hidden] { display: none; }
.gamebar.mirror { position: static; animation: none; flex: none; z-index: 3; }
.gamebar.mirror[hidden] { display: none; }
.fb-n { max-width: 55vw; }
@media (min-width: 900px) {
  .box { grid-template-rows: auto 1fr auto !important; }
  .gamebar.mirror { grid-row: 1; grid-column: 1 / -1; }
  .stage { grid-row: 2 / 4 !important; }
  .info { grid-row: 2; grid-column: 2; }
  .cta { grid-row: 3; grid-column: 2; }
}

/* --- pantalla completa de la prenda --- */
.round.full { top: 12px; right: 66px; background: #fff; }
.stage.fakefull { position: fixed; inset: 0; width: 100%; height: 100%; min-height: 0; z-index: 90; border: 0; border-radius: 0; }
.stage:fullscreen { width: 100%; height: 100%; min-height: 0; border: 0; }
.stage .fsw { display: none; }
.stage.isfull .fsw { display: flex; align-items: center; gap: 10px; position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: rgba(255, 255, 255, .92); border: 3px solid var(--ink); border-radius: 999px; padding: 8px 14px; z-index: 4; max-width: 94%; overflow-x: auto; }
.fsw .sw { width: 36px; height: 36px; flex: none; }
.fsn { font-weight: 700; white-space: nowrap; }
.stage.isfull .hint { display: none; }

/* --- botón del carrito: fijo a la izquierda, como el de WhatsApp a la derecha --- */
.fab.cartfab { left: 14px !important; right: auto !important; bottom: calc(14px + var(--safe-b)) !important; }
.draftbar { left: 90px; }

/* --- precio anterior: tachado, gris y pequeño, ARRIBA del precio nuevo --- */
.oldp { width: 100%; display: block; font-size: 12.5px; font-weight: 600; color: #9ca3af; text-decoration: line-through; line-height: 1.1; margin-bottom: 1px; }
.pb-old { display: block; font-size: 17px; font-weight: 600; color: #9ca3af; text-decoration: line-through; line-height: 1; }
.grid.compact .oldp, .grid.rows .oldp { font-size: 10.5px; }
.price { align-items: baseline; }

/* --- quitar prenda: sin emojis, con datos reales --- */
.loss-badge { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; background: #e11d48; color: #fff; border: 3px solid var(--ink); display: grid; place-items: center; font-size: 32px; font-weight: 700; line-height: 1; animation: lossshake 1.2s infinite; }
.loss-sub { font-weight: 600; opacity: .85; font-size: 14.5px; line-height: 1.3; }
.loss-lbl { text-align: left; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #be123c; }
.mbox.loss h3 { color: #be123c; }
.lossrib { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lossdn { color: #be123c; }
.sum.tot.lossnum b { animation: numred 2.2s ease-out; }
@keyframes numred { 0%, 70% { color: #e11d48; transform: scale(1.12); } 100% { color: inherit; transform: none; } }
.fab.cartfab { position: fixed !important; width: 64px; height: 64px; }

/* ======================= RONDA 4: fondo "Todos" = azul + rosado combinados ======================= */
/* Degradado lateral: en cualquier pantalla (y a cualquier altura de la página) se ven los dos colores a la vez. */
:root { --c1: #1ea7ee; --c4: #ff5fa8; --c2: rgba(255, 105, 185, .42); --c3: rgba(30, 167, 238, .45); }
body[data-theme="ninas"] { --c1: #ff5fa8; --c4: #ff9ccc; --c2: rgba(255, 195, 228, .5); --c3: rgba(255, 40, 125, .3); }
body[data-theme="ninos"] { --c1: #1ea7ee; --c4: #5ccaff; --c2: rgba(150, 228, 255, .5); --c3: rgba(8, 95, 205, .32); }
body[data-theme="adultos"] { --c1: #7c3aed; --c4: #b794ff; --c2: rgba(205, 180, 255, .5); --c3: rgba(60, 18, 150, .42); }
body, .stage {
  background:
    radial-gradient(rgba(255, 255, 255, .3) 2.3px, transparent 2.9px) 0 0 / 17px 17px,
    radial-gradient(70% 45% at 100% 0%, var(--c2), transparent 66%),
    radial-gradient(70% 45% at 0% 100%, var(--c3), transparent 66%),
    linear-gradient(100deg, var(--c1) 0%, var(--c4) 100%);
}
@supports (background: linear-gradient(in oklab, red, blue)) {
  body, .stage {
    background:
      radial-gradient(rgba(255, 255, 255, .3) 2.3px, transparent 2.9px) 0 0 / 17px 17px,
      radial-gradient(70% 45% at 100% 0%, var(--c2), transparent 66%),
      radial-gradient(70% 45% at 0% 100%, var(--c3), transparent 66%),
      linear-gradient(100deg in oklab, var(--c1) 0%, var(--c4) 100%);
  }
}

/* cantidad editable */
.qty input { width: 58px; text-align: center; border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 18px; padding: 0; -moz-appearance: textfield; }
.qty.big input { width: 70px; font-size: 22px; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ======================= TIENDA FLASH EMERGENTE ======================= */
.fab { z-index: 70 !important; }
body.has-game::before { z-index: 66; }
body.has-game { --gb: 0px !important; }
.fshop { position: fixed; inset: 0; z-index: 65; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 12, 40, .62); opacity: 0; transition: opacity .25s; }
.fshop[hidden] { display: none; }
.fshop.open { opacity: 1; }
.fs-panel { width: 100%; max-width: 1040px; height: 94dvh; background: var(--paper); border: 3px solid var(--ink); border-bottom: 0; border-radius: 28px 28px 0 0; display: flex; flex-direction: column; overflow: hidden; transform: translateY(104%); transition: transform .42s var(--ease); }
.fshop.open .fs-panel { transform: none; }
.fs-top { flex: none; display: flex; justify-content: center; padding: 9px 12px; background: var(--yellow); border-bottom: 3px solid var(--ink); }
.fshop.isflash .fs-top { background: repeating-linear-gradient(-45deg, #b50f30 0 18px, #9d0c28 18px 36px); }
.fs-tag { font-weight: 700; letter-spacing: .1em; background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 999px; padding: 3px 16px; font-size: 14px; }
.fs-panel .gamebar { position: static; animation: none; flex: none; min-height: 0; }
.fs-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px 130px; }
.fs-sec { font-weight: 700; font-size: 17px; margin: 12px 4px 9px; }
.fs-empty { padding: 20px; text-align: center; font-weight: 600; }
.fs-grid { padding: 0 !important; perspective: none; }
.fs-gifts { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 8px; }
.fs-gift { flex: none; display: grid; gap: 4px; justify-items: center; width: 92px; font-size: 12.5px; text-align: center; }
.fs-gift .th3 { transform: none !important; }
@media (min-width: 900px) {
  .fshop { align-items: center; }
  .fs-panel { height: min(86dvh, 780px); border: 3px solid var(--ink); border-radius: 30px; transform: translateY(30px) scale(.95); box-shadow: 10px 12px 0 rgba(0, 0, 0, .35); }
  .fshop.open .fs-panel { transform: none; }
}

/* banner de la página cuando la oferta ya está activada */
.pbanner .pdone { display: none; }
.pbanner.done { color: #fff; background: repeating-linear-gradient(-45deg, #16a34a 0 18px, #22c55e 18px 36px) !important; }
.pbanner.done::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 4px #bbf7d0; pointer-events: none; animation: none; }
.pbanner.done .pdone { display: inline-block; background: #fff; color: #15803d; border: 2.5px solid var(--ink); border-radius: 8px; padding: 2px 9px; font-weight: 700; font-size: 13px; animation: wob .7s ease-in-out infinite; }
.pbanner.done h3 { text-shadow: 0 2px 0 var(--ink); }
.pbanner.done .rush { display: none; }

/* vista previa del mensaje de WhatsApp */
.msgprev { border: 3px dashed var(--ink); border-radius: 14px; padding: 8px 12px; background: #fff; }
.msgprev summary { font-weight: 700; cursor: pointer; font-size: 14.5px; }
.msgprev pre { margin: 10px 0 2px; font: 12.5px/1.35 ui-monospace, "Cascadia Mono", Consolas, monospace; white-space: pre; overflow-x: auto; background: #f7f7f2; border-radius: 10px; padding: 10px; }

/* ======================= BUSCADOR GUIADO + TUTORIAL ======================= */
#shop[data-step="who"] .filters, #shop[data-step="who"] .toolbar, #shop[data-step="who"] .grid, #shop[data-step="who"] .endmore,
#shop[data-step="what"] .filters, #shop[data-step="what"] .toolbar, #shop[data-step="what"] .grid, #shop[data-step="what"] .endmore { display: none !important; }
#shop[data-step="shop"] .finder { display: none; }
.finder { background: var(--paper); border: 3px solid var(--ink); border-radius: 28px; box-shadow: var(--pop); padding: 18px 14px 16px; margin: 6px 0 24px; text-align: center; animation: pop .4s var(--ease); }
.fd-head { display: grid; gap: 4px; margin-bottom: 14px; position: relative; }
.fd-step { justify-self: center; background: var(--ink); color: var(--yellow); border-radius: 999px; padding: 3px 14px; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.fd-head h2 { font-size: clamp(24px, 6.4vw, 34px); line-height: 1.05; }
.fd-head p { font-weight: 600; opacity: .75; }
.fd-back { position: absolute; left: 0; top: 0; font-weight: 700; font-size: 15px; background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; padding: 4px 12px; }
.fd-big { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 12px; }
.fd-b { display: grid; gap: 2px; justify-items: center; align-content: center; padding: 16px 8px; min-height: 124px; border: 3px solid var(--ink); border-radius: 22px; background: #fff; box-shadow: 0 6px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.fd-b:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.fd-b span { font-size: 42px; line-height: 1; } .fd-b b { font-size: 20px; } .fd-b small { font-weight: 600; opacity: .7; font-size: 13px; }
.fd-b.pink { background: var(--pink); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); } .fd-b.sky { background: var(--sky); } .fd-b.lilac { background: #c9a8f0; } .fd-b.yellow { background: var(--yellow); } .fd-b.model { background: #fff7d6; }
.fd-b:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.fd-all { margin-top: 14px; font-weight: 700; font-size: 16px; text-decoration: underline; padding: 8px; }

.pickbar { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pk { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; text-align: left; align-items: center; column-gap: 6px; padding: 6px 12px; border: 3px solid var(--ink); border-radius: 16px; background: #fff; }
.pk small { grid-column: 1; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .6; }
.pk b { grid-column: 1; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk i { grid-row: 1 / 3; grid-column: 2; font-style: normal; font-size: 18px; transition: transform .2s; }
.pk.on { background: var(--yellow); } .pk.on i { transform: rotate(180deg); }
.pkpanel { padding: 4px 0 2px; animation: pop .25s var(--ease); }
.pkpanel[hidden] { display: none; }
.fd-big.small { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.fd-big.small .fd-b { min-height: 86px; padding: 10px 4px; box-shadow: 0 4px 0 var(--ink); } .fd-big.small .fd-b span { font-size: 28px; } .fd-big.small .fd-b b { font-size: 15px; } .fd-big.small .fd-b small { font-size: 11px; }

.endmore { text-align: center; padding: 6px 0 120px; display: grid; gap: 10px; justify-items: center; }
.endmore[hidden] { display: none; }
.endmore p { color: #fff; font-weight: 700; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.more-grey { background: #d4d4d8; color: #3f3f46; border: 3px solid var(--ink); border-radius: 999px; padding: 13px 34px; font-weight: 700; font-size: 18px; box-shadow: 0 5px 0 var(--ink); }
.more-grey:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }

.hero-top { justify-content: space-between !important; gap: 8px; }
.pill-help { background: #fff; font-size: 15px; padding: 9px 14px; box-shadow: 0 4px 0 var(--ink); }
.steps3 { list-style: none; padding: 0; margin: 18px auto 0; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; max-width: 560px; }
.steps3 li { display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .92); border: 2.5px solid var(--ink); border-radius: 999px; padding: 5px 12px 5px 6px; font-weight: 600; font-size: 14px; }
.steps3 b { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font-size: 13px; }
.stn { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-style: normal; font-size: 13px; margin-right: 8px; }
.tip { background: #e8f9ee; border: 2.5px dashed var(--ink); border-radius: 14px; padding: 8px 12px; font-size: 14px; }

.tour-dots { display: flex; justify-content: center; gap: 7px; }
.tour-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d4d4d8; border: 2px solid var(--ink); } .tour-dots i.on { background: var(--pink); width: 26px; border-radius: 999px; }
.tour-e { font-size: 64px; line-height: 1; animation: bolt 1.6s ease-in-out infinite; }
.tour-d { font-size: 17px; font-weight: 500; line-height: 1.35; }

.gamebar.mirror.pkbar { min-height: 0; padding-bottom: 8px; }

/* ======================= RECUADRO 3D QUE SE ENCOGE (celular) ======================= */
.scroller { display: contents; }
@media (max-width: 899px) {
  .scroller { display: block; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; position: relative; --full: max(224px, 36.8dvh); }
  .scroller .stage { position: sticky; top: 0; z-index: 6; flex: none; min-height: 0; height: var(--h, var(--full)); margin-bottom: calc(var(--full) - var(--h, var(--full))); border-bottom: 3px solid var(--ink); }
  .scroller .stage.fakefull { position: fixed !important; inset: 0; height: 100% !important; margin: 0 !important; z-index: 90; }
  .scroller .stage:fullscreen { height: 100% !important; margin: 0 !important; }
  .scroller .info { overflow: visible; padding-bottom: 30px; }
  /* El lienzo 3D conserva su tamaño completo y el recuadro solo lo recorta: así al hacer scroll no se reasigna la GPU en cada fotograma. */
  /* ...y se escala con --sc (= alto actual / alto inicial) para que la prenda se vea entera, solo más chica, en vez de quedar recortada. */
  .scroller .stage:not(.isfull):not(.fakefull) #v3d { inset: 0 0 auto 0; height: var(--full); transform: translateY(calc((var(--h, var(--full)) - var(--full)) / 2)) scale(var(--sc, 1)); will-change: transform; }
  .stage.shrunk .hint { display: none; }
  .stage.shrunk .round { width: 40px; height: 40px; font-size: 19px; }
  .stage.shrunk .round.x, .stage.shrunk .round.reset { top: 8px; }
  .stage.shrunk .round.prev, .stage.shrunk .round.next { margin-top: -20px; }
}
.stname { display: none; }

/* ======================= CARRITO AGRUPADO POR MODELO + AVISOS DE DOCENA ======================= */
.cwrap, .cgroup { display: grid; gap: 6px; }
.cwrap > .crow { margin: 0; }
.cgroup { border: 3px solid var(--ink); border-radius: 18px; background: #fff; overflow: hidden; gap: 0; }
.cghead { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 8px; }
/* zonas de toque separadas: foto y nombre abren el modelo; "Ver detalle" y el precio despliegan; cada una solo ocupa lo suyo */
button.cth { display: block; padding: 0; cursor: pointer; }
button.cth:active { transform: scale(.96); }
.cinfo .nm { justify-self: start; max-width: 100%; text-align: left; padding: 0; }
.cinfo .nm b { display: block; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .15s; }
.cinfo .nm:active b { text-decoration-color: var(--ink); }
.cghead .tg { justify-self: start; display: flex; align-items: center; gap: 6px; padding: 5px 0; font-size: 13px; color: #0369a1; font-weight: 700; }
.cghead .tg i { font-style: normal; display: inline-block; transition: transform .25s var(--ease); }
.cghead, .crow:not(.gift) { cursor: pointer; }   /* todo el recuadro de la prenda lleva a su ficha */
.cghead .tg, .qty, .cx { cursor: pointer; }
.cgroup.open .tg i { transform: rotate(180deg); }
.cgroup .t-open, .cgroup.open .t-closed { display: none; } .cgroup.open .t-open { display: inline; }
.cinfo small .cdot { margin-right: -2px; }
.cqty { position: absolute; right: -6px; bottom: -4px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 700; border: 2px solid var(--ink); border-radius: 999px; padding: 0 6px; line-height: 1.35; }
.cgroup .cth { overflow: visible; } .cgroup .cth img { border-radius: 9px; }
.cgdetail { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .32s var(--ease), visibility 0s .32s; }
.cgroup.open .cgdetail { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .32s var(--ease), visibility 0s; }
.cgin { min-height: 0; overflow: hidden; display: grid; gap: 8px; padding: 0 8px; }
.cgroup.open .cgin { padding: 4px 8px 10px; border-top: 2.5px dashed var(--ink); margin-top: 4px; }
.cgin .crow { grid-template-columns: 46px 1fr auto; border-width: 2.5px; border-radius: 14px; padding: 6px; background: #fffdf3; }
.cgin .cth { width: 46px; height: 58px; border-radius: 9px; }
.cinfo b.vt { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.cmore { justify-self: stretch; width: 100%; margin-top: 2px; background: var(--yellow); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px; padding: 7px 12px; font-weight: 700; font-size: 14px; box-shadow: 0 3px 0 var(--ink); }
.cmore:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

.bnote { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 2.5px solid var(--ink); border-radius: 12px; padding: 6px 10px; font-weight: 600; font-size: 13.5px; line-height: 1.25; animation: pop .35s var(--ease); }
.bnote[hidden] { display: none; }
.bnote.ok, .bnote.exact { background: #bbf7d0; }
.bnote.near { background: #fff8cc; border-style: dashed; }
.bnote.mix { background: #e0f2fe; }
.cgroup > .bnote { margin: 0 8px 8px; }
.info .bnote { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .cgdetail, .cgroup .tg i { transition: none; } .bnote { animation: none; } }

/* ======================= RENDIMIENTO: lo que no se ve no se anima ======================= */
/* Cada animación infinita cuesta recálculo de estilo + capas en CADA fotograma. Fuera de pantalla se pausan (.is-off, vía IntersectionObserver);
   las que quedan tapadas por un diálogo se pausan desde JS (syncDlg). La franja y los bordes del modo oferta (body::before) no se tocan. */
.is-off, .is-off *, .is-off::before, .is-off::after, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }

/* Colores del fondo por tema SIN heredar: al cambiar Niñas/Niños/Adulto solo se recalcula el <body> y el recuadro 3D, no todo el árbol (~400 elementos). */
@property --c1 { syntax: '<color>'; inherits: false; initial-value: #1ea7ee; }
@property --c2 { syntax: '<color>'; inherits: false; initial-value: rgba(255, 105, 185, .42); }
@property --c3 { syntax: '<color>'; inherits: false; initial-value: rgba(30, 167, 238, .45); }
@property --c4 { syntax: '<color>'; inherits: false; initial-value: #ff5fa8; }
body, .stage { --c1: #1ea7ee; --c4: #ff5fa8; --c2: rgba(255, 105, 185, .42); --c3: rgba(30, 167, 238, .45); }
body[data-theme="ninas"], body[data-theme="ninas"] .stage { --c1: #ff5fa8; --c4: #ff9ccc; --c2: rgba(255, 195, 228, .5); --c3: rgba(255, 40, 125, .3); }
body[data-theme="ninos"], body[data-theme="ninos"] .stage { --c1: #1ea7ee; --c4: #5ccaff; --c2: rgba(150, 228, 255, .5); --c3: rgba(8, 95, 205, .32); }
body[data-theme="adultos"], body[data-theme="adultos"] .stage { --c1: #7c3aed; --c4: #b794ff; --c2: rgba(205, 180, 255, .5); --c3: rgba(60, 18, 150, .42); }
