/* Il Laboratorio dell'Inventore · diseño premium (14-nov)
   Dirección: «banco de taller» — tinta azul noche, latón de la marca, papel gris azulado; las tapas son los objetos.
   Tipografía: Bricolage Grotesque (títulos, carácter) + Figtree (texto). Variables viejas (--sol, --tinta…) se mantienen porque juegos.css las usa. */
@font-face { font-family: 'Bricolage Grotesque'; src: url(img/fonts/bricolage-latin-ext.woff2) format('woff2'); font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; src: url(img/fonts/bricolage-latin.woff2) format('woff2'); font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Figtree; src: url(img/fonts/figtree-latin-ext.woff2) format('woff2'); font-weight: 300 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Figtree; src: url(img/fonts/figtree-latin.woff2) format('woff2'); font-weight: 300 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Fredoka; src: url(img/Fredoka.ttf); font-weight: 300 700; font-display: swap; }

:root {
  --ink: #0E1A33; --ink2: #172646; --ink3: #22345C;
  --sol: #FFC400; --sol2: #FFE07A; --brass: #E9AE00;
  --papel: #F1F3F7; --blanco: #FFFFFF; --linea: rgba(14, 26, 51, .09);
  --tinta: #0E1A33; --suave: #5B6783; --carton: #E3E7EF; --carton2: #D6DCE8;
  --rojo: #E5502F; --azul: #2F6BFF; --verde: #14865A;
  --sombra: 0 1px 2px rgba(14, 26, 51, .06), 0 8px 24px -10px rgba(14, 26, 51, .18);
  --sombra-alta: 0 2px 4px rgba(14, 26, 51, .08), 0 22px 44px -18px rgba(14, 26, 51, .34);
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --texto: Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 18px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--texto); color: var(--ink); background: var(--papel); min-height: 100vh; line-height: 1.4; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; cursor: pointer; border: 0; color: inherit; background: none; padding: 0; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; border-radius: 10px; }
.ic { flex: none; display: block; }

.eyebrow { margin: 0 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--suave); }

/* ---------- botones ---------- */
.btn, .boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--texto); font-weight: 700; font-size: 15px; line-height: 1;
  padding: 14px 20px; border-radius: 999px; text-decoration: none; transition: transform .12s ease, box-shadow .2s ease, background .2s; white-space: nowrap; }
.btn:active, .boton:active { transform: scale(.97); }
.btn-sol, .boton { background: var(--sol); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 18px -8px rgba(233, 174, 0, .9); }
.btn-sol:hover, .boton:hover { background: #FFCF2E; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink3); }
.btn-line { color: #fff; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .35) inset; }
.btn-line:hover { background: rgba(255, 255, 255, .08); }
.btn-sm { font-size: 14px; padding: 11px 16px; }
.btn-full { width: 100%; }
.btn-ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--papel); text-decoration: none; transition: background .2s; }
.btn-ico:hover { background: var(--carton); }
.btn-ico.on-dark { color: #fff; background: rgba(255, 255, 255, .12); }
.btn-ico.on-dark:hover { background: rgba(255, 255, 255, .22); }
.nota { font-size: 13px; color: var(--suave); }

/* ---------- entrada ---------- */
.entrada { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; color: #fff;
  background: radial-gradient(900px 520px at 78% -8%, rgba(255, 196, 0, .22), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(47, 107, 255, .28), transparent 60%), var(--ink); }
.entrada-caja { width: min(100%, 420px); text-align: center; }
.entrada-robot { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--sol), 0 0 0 9px rgba(255, 196, 0, .16), 0 24px 40px -14px rgba(0, 0, 0, .6); margin-bottom: 26px; }
.entrada .eyebrow { color: var(--sol2); }
.entrada h1 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 9vw, 42px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 12px; text-wrap: balance; }
.entrada-sub { margin: 0 auto 28px; color: rgba(255, 255, 255, .72); font-size: 16.5px; max-width: 34ch; }
.campo { width: 100%; font: inherit; font-size: 17px; padding: 16px 20px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; margin-bottom: 14px; }
.campo::placeholder { color: rgba(255, 255, 255, .45); }
.campo:focus { outline: none; border-color: var(--sol); background: rgba(255, 255, 255, .12); }
.entrada .btn { padding: 17px 22px; font-size: 16.5px; }

/* ---------- estructura ---------- */
.envoltura { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
main#cuerpo { max-width: 1060px; margin: 0 auto; padding: 8px 16px 0; }

/* cabecera: el banco de taller */
.banco { background: radial-gradient(800px 360px at 92% -20%, rgba(255, 196, 0, .2), transparent 62%), linear-gradient(180deg, var(--ink) 0%, var(--ink2) 100%); color: #fff;
  border-radius: 0 0 28px 28px; padding: env(safe-area-inset-top) 16px 26px; position: relative; }
.banco::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--sol), rgba(255, 196, 0, 0) 60%); }
.banco-in { max-width: 1060px; margin: 0 auto; }
.banco-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 22px; }
.marca { display: flex; align-items: center; gap: 10px; min-width: 0; }
.marca img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--sol); }
.marca span { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.salir { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .7); padding: 8px 14px; border-radius: 999px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22) inset; }
.salir:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.banco-cuerpo { display: grid; gap: 22px; }
.banco .eyebrow { color: var(--sol2); }
.banco h1 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 9.5vw, 52px); line-height: 1; letter-spacing: -.025em; margin: 0 0 12px; }
.banco-sub { margin: 0; color: rgba(255, 255, 255, .72); font-size: 15.5px; max-width: 52ch; }
.rango { background: rgba(255, 255, 255, .07); border-radius: 16px; padding: 14px 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset; }
.rango-cab { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: rgba(255, 255, 255, .65); margin-bottom: 10px; }
.rango-cab b { font-family: var(--display); font-size: 18px; color: #fff; font-weight: 600; }
.barra { display: block; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.barra i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brass), var(--sol2)); transition: width .6s; }
.rango small { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .8); }
@media (min-width: 760px) { .banco-cuerpo { grid-template-columns: 1fr 300px; align-items: end; gap: 40px; } .banco { padding-bottom: 34px; } }

/* ---------- dock de pestañas ---------- */
.pestanas { position: fixed; z-index: 8; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); width: min(calc(100% - 24px), 440px);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 6px; border-radius: 999px;
  background: rgba(14, 26, 51, .92); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 18px 40px -10px rgba(14, 26, 51, .65), 0 0 0 1px rgba(255, 255, 255, .08) inset; }
.pestanas button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; border-radius: 999px; color: rgba(255, 255, 255, .62); font-size: 11.5px; font-weight: 600; transition: background .2s, color .2s; }
.pestanas button.activa { background: var(--sol); color: var(--ink); }
.pestanas button:not(.activa):hover { color: #fff; }

/* ---------- secciones ---------- */
.seccion { margin-top: 38px; }
.seccion-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.seccion-cab h3, .titulo { font-family: var(--display); font-weight: 700; font-size: clamp(25px, 6.4vw, 34px); line-height: 1.05; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.avance { display: grid; justify-items: end; gap: 7px; flex: none; }
.avance small { font-size: 12.5px; font-weight: 600; color: var(--suave); white-space: nowrap; }
.ticks { display: flex; gap: 3px; }
.ticks i { width: 7px; height: 16px; border-radius: 3px; background: var(--carton2); }
.ticks i.on { background: var(--sol); box-shadow: 0 0 0 1px rgba(14, 26, 51, .12) inset; }

/* grilla de tarjetas */
.grilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 960px) { .grilla { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tj { position: relative; display: flex; flex-direction: column; background: var(--blanco); border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: var(--sombra); box-shadow: 0 0 0 1px var(--linea), var(--sombra); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.tj:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--linea), var(--sombra-alta); }
.tj-tapa { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--carton); }
.tj-tapa img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.tj:hover .tj-tapa img { transform: scale(1.035); }
.tapa-vacia { display: grid; place-items: center; width: 100%; height: 100%; font-size: 64px; background: color-mix(in srgb, var(--c) 35%, #fff); }
.tj-cuerpo { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 15px; flex: 1; }
.tj-cuerpo h4 { margin: 0; font-family: var(--display); font-weight: 650; font-size: 16.5px; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
.tj-cuerpo p { margin: 0; font-size: 13px; line-height: 1.3; color: var(--suave); }
.tj-acc { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; }
.tj-acc .btn { flex: 1; }
.sello { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px 5px 7px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--verde); font-size: 11.5px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(14, 26, 51, .18); }

/* tarjeta bloqueada: tapa atenuada + candado + precio tachado → precio */
.tj-bloq .tj-tapa img { filter: saturate(.55) brightness(.78) contrast(.95); }
.tj-bloq:hover .tj-tapa img { filter: saturate(.8) brightness(.9); }
.velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 26, 51, .08), rgba(14, 26, 51, .5)); pointer-events: none; }
.candado { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--sol);
  box-shadow: 0 0 0 6px rgba(255, 196, 0, .25), 0 10px 22px rgba(14, 26, 51, .45); transition: transform .25s; }
.candado .ic { width: 25px; height: 25px; }
.tj-bloq:hover .candado { transform: translate(-50%, -50%) scale(1.08); }
.descuento { position: absolute; top: 10px; right: 10px; padding: 5px 9px; border-radius: 8px; background: var(--rojo); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .01em; box-shadow: 0 4px 10px rgba(229, 80, 47, .45); }
.tj-precio { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 8px; }
.tj-precio s { font-size: 13px; color: var(--suave); text-decoration-thickness: 1.5px; }
.tj-precio b { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.tj-bloq .btn { margin-top: 10px; width: 100%; }

/* sección con un solo producto (Giochi PRO): tarjeta horizontal destacada */
.grilla.uno { grid-template-columns: minmax(0, 1fr); }
.grilla.uno .tj { flex-direction: row; }
.grilla.uno .tj-tapa { width: 44%; flex: none; aspect-ratio: auto; min-height: 100%; }
.grilla.uno .tj-cuerpo { padding: 18px 16px; justify-content: center; }
.grilla.uno .tj-cuerpo h4 { font-size: 20px; }
@media (min-width: 640px) { .grilla.uno .tj { max-width: 640px; } .grilla.uno .tj-tapa { width: 260px; } .grilla.uno .tj-cuerpo { padding: 24px; } }

/* libro principal (Mega Pack) */
.hero-libro { display: grid; grid-template-columns: 42% 1fr; gap: 0; border-radius: 24px; overflow: hidden; margin-bottom: 14px; color: #fff;
  background: radial-gradient(500px 300px at 100% 0, rgba(255, 196, 0, .22), transparent 65%), var(--ink2); box-shadow: var(--sombra-alta); }
.hero-tapa { display: block; aspect-ratio: 4 / 5; height: 100%; width: 100%; overflow: hidden; }
.hero-tapa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-txt { padding: 18px 16px 18px 18px; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.hero-txt .eyebrow { color: var(--sol); }
.hero-txt h4 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(21px, 5.2vw, 32px); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
.hero-txt p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 14px; }
.hero-txt .tj-acc { flex-wrap: wrap; padding-top: 14px; }
.hero-txt .tj-acc .btn { flex: 0 1 auto; padding: 12px 13px; font-size: 14px; }
.hero-txt .tj-acc { gap: 6px; margin-top: 12px; padding-top: 0; }
.hero-txt .btn-line { box-shadow: none; padding-left: 0; padding-right: 0; color: var(--sol2); }
.hero-txt .btn-line:hover { background: none; color: #fff; }
.hero-nota { margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, .55); }
@media (min-width: 640px) { .hero-libro { grid-template-columns: 280px 1fr; } .hero-txt .btn-line { padding-left: 4px; padding-right: 4px; } .hero-txt { padding: 28px 34px; } .hero-txt p { font-size: 16px; } .hero-txt .tj-acc .btn { padding: 15px 22px; font-size: 15px; } }

/* bloque del pack: «Sbloccali tutti» */
.pack { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 18px; border-radius: 24px; overflow: hidden; color: #fff; position: relative;
  background: radial-gradient(520px 320px at 0 100%, rgba(255, 196, 0, .2), transparent 65%), linear-gradient(135deg, var(--ink) 0%, var(--ink3) 100%); box-shadow: var(--sombra-alta); }
.pack::before { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1.5px rgba(255, 196, 0, .55) inset; pointer-events: none; }
.pack-tapa { aspect-ratio: 1 / 1; overflow: hidden; min-width: 0; }
.pack-tapa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pack-txt { padding: 4px 20px 22px; display: flex; flex-direction: column; gap: 6px; justify-content: center; min-width: 0; }
.pack-txt .eyebrow { color: var(--sol); }
.pack-txt h4 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(25px, 6.5vw, 40px); line-height: 1; letter-spacing: -.025em; }
.pack-nombre { margin: 0; font-weight: 700; font-size: 14.5px; }
.pack-faltan { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .66); }
.pack-precio { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; }
.pack-precio .pct { padding: 5px 10px; border-radius: 8px; background: var(--rojo); font-weight: 800; font-size: 14px; }
.pack-precio s { color: rgba(255, 255, 255, .55); font-size: 15px; text-decoration-thickness: 1.5px; }
.pack-precio b { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 8vw, 44px); line-height: 1; letter-spacing: -.02em; color: var(--sol); }
.pack-ahorro { margin: 0 0 8px; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.pack .btn { white-space: normal; text-align: center; padding: 15px 16px; }
@media (min-width: 720px) { .pack { grid-template-columns: 380px 1fr; } .pack-tapa { aspect-ratio: auto; height: 100%; min-height: 380px; } .pack-txt { padding: 30px 40px; max-width: 520px; } .pack .btn { padding: 17px 24px; font-size: 16px; } }

/* ---------- video ---------- */
.filtros { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.filtros::-webkit-scrollbar { display: none; }
.chip { flex: none; background: var(--blanco); color: var(--ink); border-radius: 999px; padding: 9px 15px; font-size: 13.5px; font-weight: 600; box-shadow: 0 0 0 1px var(--linea); }
.chip.activa { background: var(--ink); color: #fff; box-shadow: none; }
.buscar { width: 100%; font: inherit; font-size: 16px; padding: 14px 20px; border-radius: 999px; border: 0; background: var(--blanco); box-shadow: 0 0 0 1px var(--linea); margin-bottom: 12px; color: var(--ink); }
.buscar:focus { outline: none; box-shadow: 0 0 0 2px var(--ink); }
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
@media (min-width: 640px) { .videos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; } }
@media (min-width: 960px) { .videos { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.video { text-align: left; display: flex; flex-direction: column; gap: 3px; }
.miniatura { position: relative; display: block; aspect-ratio: 9 / 13; border-radius: 16px; overflow: hidden; background: var(--ink); box-shadow: var(--sombra); margin-bottom: 7px; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.video:hover .miniatura { transform: translateY(-3px); box-shadow: var(--sombra-alta); }
.miniatura img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video.bloq .miniatura img { filter: saturate(.5) brightness(.7); }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 8px 20px rgba(14, 26, 51, .4); }
.play .ic { margin-left: 2px; }
.video.bloq .play { background: var(--sol); }
.video.bloq .play .ic { margin-left: 0; }
.hecho { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; background: var(--verde); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 9px 4px 6px; border-radius: 999px; }
.video strong { font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.15; letter-spacing: -.005em; }
.video small { font-size: 12px; color: var(--suave); line-height: 1.3; }

/* ---------- medallas ---------- */
.medallas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .medallas { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.medalla { background: var(--blanco); border-radius: var(--r); padding: 22px 12px 18px; text-align: center; box-shadow: 0 0 0 1px var(--linea), var(--sombra); }
.medalla .disco { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 36px;
  background: radial-gradient(circle at 32% 26%, #FFF3BF, var(--sol) 55%, var(--brass)); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sol), 0 12px 22px -8px rgba(233, 174, 0, .8); }
.medalla.apagada .disco { background: var(--carton); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--carton2); filter: grayscale(1); opacity: .5; }
.medalla strong { display: block; font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.15; }
.medalla small { color: var(--suave); font-size: 12.5px; }

/* ---------- reproductor / festejo ---------- */
.modal { position: fixed; inset: 0; background: rgba(8, 14, 28, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); z-index: 20; display: grid; place-items: center; padding: 16px; }
.reproductor { width: min(420px, 100%); background: var(--ink2); border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .1) inset; color: #fff; }
.reproductor video { width: 100%; max-height: 72vh; display: block; background: #000; }
.reproductor .barra-inf { display: flex; gap: 12px; align-items: center; padding: 14px 16px; }
.reproductor .barra-inf strong { flex: 1; font-family: var(--display); font-size: 16px; font-weight: 600; line-height: 1.15; }
.reproductor .btn.hecho { position: static; background: var(--verde); color: #fff; box-shadow: none; padding: 11px 16px; font-size: 14px; }
.cerrar { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 18px; }
.cerrar:hover { background: rgba(255, 255, 255, .24); }
.fiesta { position: fixed; inset: 0; z-index: 40; pointer-events: none; display: grid; place-items: center; }
.fiesta .cartel { display: grid; justify-items: center; gap: 8px; background: var(--ink); color: #fff; border-radius: 26px; padding: 26px 34px; font-family: var(--display); font-size: 24px; font-weight: 700; text-align: center;
  box-shadow: 0 0 0 2px var(--sol), 0 30px 60px rgba(0, 0, 0, .5); animation: salta .5s cubic-bezier(.2, 1.4, .4, 1); }
.fiesta .cartel span { color: var(--sol); }
@keyframes salta { from { transform: scale(.6); opacity: 0; } }
.confeti { position: fixed; top: -20px; width: 9px; height: 15px; border-radius: 2px; animation: cae 1.6s linear forwards; }
@keyframes cae { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- visor de PDF ---------- */
.visor { position: fixed; inset: 0; z-index: 50; background: #1B2233; display: flex; flex-direction: column; color: #fff; }
.visor-barra { display: flex; align-items: center; gap: 6px; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; background: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); flex: none; flex-wrap: wrap; }
.visor-tit { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; margin: 0 4px; }
.visor-tit strong { font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visor-pag { font-size: 12px; color: var(--sol2); font-variant-numeric: tabular-nums; }
.vb { height: 42px; min-width: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 999px; color: #fff; background: rgba(255, 255, 255, .1); text-decoration: none; font-weight: 700; font-size: 14px; padding: 0 12px; transition: background .2s; }
.vb:hover { background: rgba(255, 255, 255, .2); }
.vb-pri { background: var(--sol); color: var(--ink); }
.vb-pri:hover { background: #FFCF2E; }
.vb-x { padding: 0; }
.vb-txt span { display: none; }
.visor-zoom { display: flex; align-items: center; gap: 3px; order: 5; }
.vz { height: 42px; min-width: 56px; border-radius: 999px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; background: transparent; color: rgba(255, 255, 255, .85); }
@media (max-width: 559px) { .visor-barra { padding-bottom: 6px; } .visor-zoom { order: 5; flex: 1 1 100%; justify-content: center; } .visor-tit { order: 1; } .vb-x { order: 0; } .vb-txt { order: 2; } .visor-barra { row-gap: 4px; } }
@media (min-width: 560px) { .vb-txt span { display: inline; } .vb-txt { padding: 0 16px; } .visor-zoom { order: 2; } .visor-tit { order: 1; } .vb-txt { order: 3; } }
.visor-hojas { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; overscroll-behavior: contain; background: radial-gradient(700px 400px at 50% 0, #26304A, transparent 70%), #1B2233; }
.visor-pliego { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 14px 12px calc(40px + env(safe-area-inset-bottom)); width: max-content; min-width: 100%; }
.visor-hoja { display: block; flex: none; background: #fff; border-radius: 4px; box-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px -10px rgba(0, 0, 0, .55); }
.visor-cargando { display: flex; align-items: center; gap: 12px; margin: 30vh 0 0; font-size: 16px; color: rgba(255, 255, 255, .8); }
.visor-error { flex-direction: column; text-align: center; max-width: 30ch; line-height: 1.5; }
.visor-error a { color: var(--sol); font-weight: 700; }
.visor-spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .2); border-top-color: var(--sol); animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* títulos sueltos de juegos.js (h3.titulo) */
h3.titulo { margin: 38px 0 16px; }
.entrada-aviso{margin:12px 0 0;color:#b91c1c;font-weight:600;font-size:14px;text-align:center}

/* 14-nov (auditor): % en lugar de montos, contraste del aviso, esqueleto de carga, play que no tape el chip */
.tj-precio { align-items: center; }
.tj-precio b { color: var(--rojo); font-size: 20px; }
.tj-precio small { font-size: 12px; color: var(--suave); font-weight: 600; }
.pack-precio .pct { font-family: var(--display); font-size: clamp(28px, 7vw, 40px); padding: 6px 14px; border-radius: 12px; line-height: 1; }
.entrada-aviso { color: #fff; background: rgba(229, 57, 53, .92); padding: 10px 14px; border-radius: 12px; }
@keyframes brillo { from { background-position: -200% 0; } to { background-position: 200% 0; } }
.tj-tapa, .miniatura, .pack-tapa { background: linear-gradient(100deg, #1b2a4d 30%, #2a3d68 50%, #1b2a4d 70%) 0 0 / 200% 100%; animation: brillo 1.4s linear infinite; }
.tj-tapa img, .miniatura img, .pack-tapa img { position: relative; }
.play { left: auto; top: auto; right: 10px; bottom: 10px; transform: none; width: 40px; height: 40px; }
.tj-bloq .tj-tapa img { filter: saturate(.8) brightness(.86); }
.medalla .disco { position: relative; overflow: visible; }
.medalla .disco img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.medalla .disco .cinta { position: absolute; right: -6px; bottom: -4px; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 14px; background: var(--sol); color: var(--tinta); font: 800 13px/28px var(--display); box-shadow: 0 0 0 3px #fff; }
.grilla.uno .tj-tapa { animation: none; background: #1f2f55; }
.grilla.uno .tj-tapa img { object-fit: contain; }
.tj-precio small { line-height: 1.2; max-width: 9em; }
.medalla .disco img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 10%; border-radius: 50%; }
.medalla .disco .cinta { z-index: 1; }
/* 14-nov (Rafa: "se ve mal"): el mockup del Mega Pack se ve ENTERO — en celular arriba a todo el ancho, texto abajo */
.hero-libro { grid-template-columns: 1fr; }
.hero-tapa { aspect-ratio: 4 / 5; height: auto; }
.hero-tapa img { object-fit: contain; }
@media (min-width: 640px) { .hero-libro { grid-template-columns: 340px 1fr; align-items: center; } .hero-tapa { height: auto; } }
/* 14-nov (Rafa "mostrámela"): sección de un solo título = misma tarjeta vertical, tapa entera; candado chico en la esquina, sin tapar el producto */
.grilla.uno .tj { flex-direction: column; }
.grilla.uno .tj-tapa { width: 100%; aspect-ratio: 4 / 5; min-height: 0; background: #ece7e1; }
.grilla.uno .tj-tapa img { object-fit: cover; }
@media (min-width: 640px) { .grilla.uno .tj { flex-direction: row; } .grilla.uno .tj-tapa { width: 300px; } }
.candado { left: auto; top: 12px; right: 12px; transform: none; width: 40px; height: 40px; }
.candado .ic { width: 19px; height: 19px; }
.tj-bloq:hover .candado { transform: scale(1.08); }
.tj-bloq .descuento { left: 12px; right: auto; }
.velo { background: linear-gradient(180deg, rgba(14, 26, 51, 0) 55%, rgba(14, 26, 51, .28)); }
.tj-bloq .tj-tapa img { filter: saturate(.92) brightness(.95); }
