/* Tienda piloto (29-10): clara y liviana. Blanco cálido, tarjetas blancas con borde fino,
   un acento pastel por servidor (violeta Custom, verde agua 3.0). Nada oscuro de fondo. */
/* Archivo (SIL OFL), variable 500-700, servida desde acá: sin pedido a Google al entrar. */
@font-face { font-family: Archivo; font-style: normal; font-weight: 500 700; font-display: swap; src: url("../media/archivo-latin.woff2?v=42") format("woff2"); }
:root {
  --bg: #faf9f6; --card: #fff; --ink: #1f1d24; --soft: #67636f; --hair: #e8e4dc; --tint: #f4f2ed;
  --acc: #6a58e0; --acc-ink: #4b3cb8; --acc-soft: #efedfd; --acc-line: #d9d4fa;
  --ease: cubic-bezier(.2, .7, .3, 1);
  color-scheme: light;
}
html[data-world="s3"] { --acc: #0f7d74; --acc-ink: #0c6a62; --acc-soft: #e4f4f1; --acc-line: #c4e6e0; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 15px/1.45 Archivo, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
/* Fondo pastel (Manu 03-11): manchas lavanda, durazno, menta y cielo, quietas al bajar. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(55vw 55vh at 6% 4%, #e6dcff 0, #e6dcff00 70%),
  radial-gradient(50vw 50vh at 96% 6%, #ffe0d3 0, #ffe0d300 70%),
  radial-gradient(55vw 55vh at 90% 92%, #d3f2e6 0, #d3f2e600 70%),
  radial-gradient(50vw 55vh at 4% 96%, #d8e8ff 0, #d8e8ff00 70%),
  radial-gradient(40vw 40vh at 50% 50%, #fff3c9aa 0, #fff3c900 70%); }
html.cart-open body { overflow: hidden; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--soft); font-weight: 500; }
::selection { background: var(--acc-soft); }

/* ---- Barra de arriba: marca, servidor (pestañas) y carrito, en una línea ---- */
.top { position: sticky; top: 0; z-index: 20; background: #ffffff8c; backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid #ffffffb3; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
/* Servidor: fuera de la barra, arriba del contenido, en una pastilla. */
.worlds { display: flex; width: fit-content; gap: 4px; margin: 28px 0 0; padding: 4px; border-radius: 999px; background: #ffffffa6; box-shadow: 0 1px 2px #3c287808, 0 8px 24px -12px #3c28782e; }
.worlds button { padding: 8px 18px; border: 0; border-radius: 999px; background: none; color: var(--soft); font-weight: 600; font-size: 15px; transition: background .15s var(--ease), color .15s var(--ease); }
.worlds button:hover { color: var(--ink); }
.worlds button[aria-selected="true"] { background: var(--acc); color: #fff; }
/* v18: el carrito es solo su ícono; si tiene algo, el número arriba a la derecha. */
.cart-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; transition: background .15s var(--ease); }
.cart-btn:hover { background: #1f1d240d; }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--acc); color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.cart-count[hidden] { display: none; }
.cart-count.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }

/* ---- Secciones ---- */
main { padding-top: 4px; }
.sec { padding-top: 64px; }
.sec:first-child { padding-top: 40px; }
.sec-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.sec-head h2 { margin: 0 auto 0 0; font-size: 28px; line-height: 1.15; letter-spacing: -.025em; }
.nav { display: flex; gap: 8px; }
.nav[hidden] { display: none; }
.arrow { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--hair); border-radius: 50%; background: var(--card); }
.arrow svg { width: 16px; height: 16px; }
.arrow[data-nav="-1"] svg { transform: scaleX(-1); }
.arrow:hover:not(:disabled) { background: var(--tint); }
.arrow:disabled { opacity: .35; cursor: default; }

/* Selector chico (duración, edición) */
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--hair); border-radius: 999px; background: var(--card); }
.seg button { padding: 5px 13px; border: 0; border-radius: 999px; background: none; color: var(--soft); font-size: 14px; font-weight: 600; transition: background .12s var(--ease), color .12s var(--ease); }
.seg button[aria-pressed="true"] { background: var(--acc-soft); color: var(--acc-ink); }
.seg-xs button { padding: 4px 10px; font-size: 13px; }

/* ---- Tarjetas de plan: 3 a la vista; la que asoma se desvanece y se toca para traerla ---- */
.plans { display: flex; align-items: stretch; gap: 14px; margin: 0 -6px; padding: 6px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 6px; scrollbar-width: none; --fr: #000; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), var(--fr)); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), var(--fr)); }
.plans::-webkit-scrollbar { display: none; }
.plans.more-r { --fr: transparent; }
@media (max-width: 1179px) { .plans { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), var(--fr)); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), var(--fr)); } }
.plans.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.plan { flex: 0 0 calc((100% - 3 * 14px) / 3.18); scroll-snap-align: start; display: flex; flex-direction: column; padding: 22px 22px 18px; border: 1px solid var(--hair); border-radius: 18px; background: var(--card); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
/* Si entran todas (hasta 4: las suscripciones), ocupan el ancho entero sin flechas. */
.plans:not(:has(> .plan:nth-child(5))) .plan { flex: 1 1 0; }
.plan.peek { cursor: pointer; }
.plan.peek:hover { border-color: var(--acc-line); }
.plan.peek * { pointer-events: none; }
.plan.is-focus { border-color: var(--acc-line); box-shadow: 0 0 0 3px var(--acc-soft); }
.plan header { display: flex; align-items: center; gap: 10px; }
.plan header img { width: 40px; height: 40px; object-fit: contain; }
.emblem { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 10px; background: var(--acc-soft); color: var(--acc-ink); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.plan h3 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.price { margin: 14px 0 0; color: var(--soft); font-size: 13.5px; }
.price b { margin-right: 4px; color: var(--ink); font-size: 30px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.list { margin: 0; padding: 0; list-style: none; }
.buy + .list, .buy + .sub { margin-top: 12px; }
/* Comandos: de 5 para arriba, "+N más" abre la fila entera. */
.plans:not(.open) .xtra { display: none; }
/* La última lista ocupa lo que sobra y el "+N más" baja al pie: queda a la misma altura en toda la fila. */
.plan > .list:last-child { flex: 1; display: flex; flex-direction: column; }
.more-li { margin-top: auto; padding-top: 6px; }
.more-li[hidden] { display: none; }
.more { padding: 4px 8px; margin: 0 -8px; border: 0; border-radius: 7px; background: none; color: var(--acc-ink); font-size: 14px; font-weight: 600; }
.more:hover { background: var(--acc-soft); }
/* Números y comandos van seguidos: solo el título "Todo lo de X, y además:" en el medio. */
.sub { margin: 6px 0 2px; font-size: 14px; font-weight: 700; }

/* "Agregar" en los planes: pastel del servidor; ya en el carrito, blanco con tilde. */
.buy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; margin-top: 16px; padding: 0 16px; border: 1px solid transparent; border-radius: 12px; background: var(--acc-soft); color: var(--acc-ink); font-weight: 600; transition: background .12s var(--ease), border-color .12s var(--ease), transform .08s var(--ease); }
.buy:hover { background: color-mix(in srgb, var(--acc-soft) 70%, var(--acc-line)); }
.buy:active { transform: scale(.96); }
.buy.is-in, .buy.is-flash { border-color: var(--acc-line); background: var(--card); }
.buy .ck { width: 16px; height: 16px; }
.buy:disabled { background: var(--tint); color: var(--soft); cursor: default; }

/* Filas de beneficio: sin subrayado; al pasar se tiñen y aparece el globo. */
.row { position: relative; display: flex; gap: 9px; align-items: flex-start; width: calc(100% + 16px); margin: 0 -8px; padding: 4px 8px; border: 0; border-radius: 7px; background: none; font-size: 14.5px; line-height: 1.4; text-align: left; }
.row .ck { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 2px; color: var(--acc); opacity: .55; }
button.row { cursor: default; }
button.row:hover, button.row.is-open { background: var(--tint); }
.row.lost { color: var(--soft); }
.minus { flex: 0 0 15px; text-align: center; }
.tip { --dx: 0px; --y: 4px; position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 5; width: max-content; max-width: min(250px, 72vw); padding: 9px 12px; border: 1px solid var(--hair); border-radius: 10px; background: var(--card); color: var(--ink); font-size: 13.5px; line-height: 1.4; text-align: left; box-shadow: 0 10px 28px -10px #4a40302e, 0 2px 6px #4a40300f; opacity: 0; visibility: hidden; transform: translate(calc(-50% + var(--dx)), var(--y)); transition: opacity .12s var(--ease), transform .12s var(--ease), visibility 0s .12s; pointer-events: none; }
.below > .tip { --y: -4px; top: calc(100% + 8px); bottom: auto; }
.has-tip:hover > .tip, .has-tip:focus-visible > .tip, .has-tip.is-open > .tip { --y: 0px; opacity: 1; visibility: visible; transition-delay: 0s; }

/* ---- Fichas (lo que no se compara): 3 por fila, la imagen es la vitrina; nombre, precio,
   "Ver qué trae" y "Agregar" de contorno, que se llena al pasar (14 botones llenos pesaban más que
   los productos). ---- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile, .bundle { display: flex; flex-direction: column; padding: 14px 14px 16px; border: 1px solid var(--hair); border-radius: 18px; background: var(--card); }
.tile-img { position: relative; display: grid; place-items: center; width: 100%; height: 132px; padding: 0; border: 0; border-radius: 12px; background: var(--tint); }
.tile-img img { width: 96px; height: 96px; object-fit: contain; image-rendering: pixelated; }
/* v42: "Ver qué trae" es la imagen; la etiqueta va encima, abajo a la izquierda. */
.look-tag { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: #ffffffe6; color: var(--acc-ink); font-size: 12.5px; font-weight: 600; box-shadow: 0 1px 2px #3c28781a; }
button.tile-img { cursor: zoom-in; transition: box-shadow .12s var(--ease); }
button.tile-img:hover { box-shadow: inset 0 0 0 1px var(--acc-line); }
button.tile-img:hover .look-tag { background: var(--acc-soft); }
.tile h3, .bundle h3 { margin: 14px 4px 0; font-size: 18px; letter-spacing: -.01em; text-wrap: balance; }
.tile h3 .muted { margin-left: 4px; font-size: 16px; }
.tile-price { margin: 2px 4px 0; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile .buy, .bundle .buy { width: 100%; margin-top: auto; border-color: var(--acc-line); background: var(--card); }
.tile .buy:hover, .bundle .buy:hover { background: var(--acc-soft); }
.tile > :nth-last-child(2) { margin-bottom: 14px; }
/* Pack: lo que trae en filas cortas, la cantidad en negrita. */
.bundle header { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.bundle header img { grid-row: span 2; width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; }
.bundle header h3 { margin: 0; }
.bundle .list { margin: 12px 0 14px; }
.bl { display: grid; grid-template-columns: 1.6em minmax(0, 1fr); padding: 2px 0; font-size: 14.5px; }
.bl b { font-variant-numeric: tabular-nums; }
.bundle header .price { margin: 0; }
.bundle .price b { font-size: 20px; }

/* v41: la duración va una vez por sección, al lado del título, y cambia todas las tarjetas. */
.dur button { min-height: 34px; padding: 5px 14px; white-space: nowrap; }
@media (max-width: 640px) {
  .dur button { min-height: 32px; padding: 4px 10px; font-size: 13.5px; }
}
@media (max-width: 380px) {
  .dur button { padding: 4px 7px; font-size: 12.5px; }
}

/* ---- Ventana "qué trae": la captura del juego, el precio y Agregar ---- */
.look-dlg { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--hair); border-radius: 20px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -30px #4a403066; }
.look-dlg::backdrop { background: #2a262040; }
.look-dlg[open] { animation: lookIn .18s var(--ease); }
@keyframes lookIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.look-in { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; }
.look-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.look-head h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.look-label { margin: 0 0 2px; color: var(--soft); font-size: 14px; }
.look-img { display: grid; place-items: center; min-height: 200px; padding: 12px; border-radius: 14px; background: var(--tint); }
.look-img img { max-width: 100%; max-height: 56dvh; object-fit: contain; image-rendering: pixelated; }
.look-foot { display: flex; align-items: center; gap: 14px; }
.look-foot b { font-size: 22px; font-variant-numeric: tabular-nums; }
.look-foot .buy { flex: 1; margin: 0; }

/* ---- Volts: lista en una caja, como los paquetes de Robux (Manu 03-11): cifra grande, lo que sería
   sin el extra tachado, "N más" y el precio como botón para agregar. ---- */
.packs { margin: 0; padding: 10px 20px; list-style: none; border: 1px solid var(--hair); border-radius: 18px; background: var(--card); }
.pack { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.pack > img { flex: none; width: 30px; height: 30px; object-fit: contain; }
/* v39: cifra y tachado con ancho fijo, así el tachado y el "% más" caen en columna en todas las filas
   (donde hay lugar: ni en 320 de ancho ni en el celular acostado). */
@media (min-width: 900px) { .amt { min-width: 3.35em; } }
@media (min-width: 360px) and (max-width: 640px) { .amt { min-width: 3.35em; } }
.amt { font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.badge { margin-left: 12px; padding: 4px 10px; border-radius: 999px; background: var(--tint); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pbtn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 200px; min-height: 40px; margin-left: auto; border: 0; border-radius: 10px; background: var(--acc-soft); color: var(--acc-ink); font-weight: 700; font-variant-numeric: tabular-nums; transition: background .12s var(--ease), transform .08s var(--ease); }
.pbtn:hover { background: color-mix(in srgb, var(--acc-soft) 70%, var(--acc-line)); }
.pbtn:active { transform: scale(.97); }
.pbtn .ck { width: 16px; height: 16px; }

/* ---- Pie ---- */
.foot { margin-top: 64px; padding: 28px 0 40px; border-top: 1px solid #ffffffb3; color: var(--soft); font-size: 13.5px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot p { margin: 0; max-width: 72ch; }

/* ---- Aviso al agregar: abajo a la derecha, no tapa nada de arriba ---- */
.toast { position: fixed; bottom: 24px; right: max(16px, calc((100vw - 1120px) / 2)); z-index: 30; display: flex; align-items: center; gap: 10px; max-width: min(420px, calc(100vw - 32px)); padding: 10px 10px 10px 14px; border: 1px solid var(--hair); border-radius: 14px; background: var(--card); box-shadow: 0 14px 34px -14px #4a403040, 0 2px 6px #4a40300f; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s var(--ease), transform .16s var(--ease), visibility 0s .16s; }
.toast.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.toast .ck { flex: 0 0 18px; width: 18px; height: 18px; color: var(--acc); }
.toast span { font-size: 14px; }
.toast button { flex: none; margin-left: auto; padding: 7px 12px; border: 0; border-radius: 10px; background: var(--acc-soft); color: var(--acc-ink); font-weight: 600; font-size: 14px; }
.toast button[hidden] { display: none; }

/* ---- Carrito ---- */
.overlay { position: fixed; inset: 0; z-index: 40; background: #2a26201f; opacity: 0; visibility: hidden; transition: opacity .18s var(--ease), visibility 0s .18s; }
.overlay.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.cart { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; display: flex; flex-direction: column; width: min(420px, 100vw); background: var(--card); border-left: 1px solid var(--hair); transform: translateX(100%); visibility: hidden; transition: transform .22s var(--ease), visibility 0s .22s; }
.cart.open { transform: none; visibility: visible; box-shadow: -20px 0 50px -30px #4a403055; transition-delay: 0s; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 22px; }
.cart-head h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--hair); border-radius: 50%; background: var(--card); }
.icon-btn svg, .ci-rm svg { width: 16px; height: 16px; }
.cart-items { flex: 1; overflow-y: auto; padding: 0 22px; }
.cart-items[inert] { opacity: .6; }
.cart-empty { margin: 24px 0; color: var(--soft); }
.ci { display: grid; grid-template-columns: 44px 1fr auto auto; grid-template-areas: "img info price rm"; gap: 2px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.ci-img { grid-area: img; width: 44px; height: 44px; object-fit: contain; border-radius: 10px; }
.ci-emblem { display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-ink); font-size: 10px; font-weight: 700; }
.ci-info { grid-area: info; min-width: 0; }
.ci-name { font-weight: 600; }
.ci-sub { color: var(--soft); font-size: 13px; }
.ci-price { grid-area: price; font-weight: 700; font-variant-numeric: tabular-nums; }
.ci-rm { grid-area: rm; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--soft); }
.ci-rm:hover { background: var(--tint); color: var(--ink); }
.cart-pay { padding: 16px 22px 20px; border-top: 1px solid var(--hair); background: var(--bg); }
.field-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.field label { font-weight: 600; font-size: 14px; }
.input { display: flex; align-items: center; height: 46px; padding: 0 12px; border: 1px solid #d9d4ca; border-radius: 12px; background: var(--card); }
.input:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.input input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 16px; }
.prefix { color: var(--soft); font-size: 16px; }
.prefix[hidden] { display: none; }
.hint { margin: 6px 0 0; color: var(--soft); font-size: 13px; }
.hint:empty { display: none; }
/* Pagar sin elegir Java o Bedrock: el selector se marca en rojo. */
.seg.need { border-color: #e5484d; box-shadow: 0 0 0 3px #fde3e3; }
.confirm { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 14px; }
.confirm:empty { display: none; }
.confirm img { border-radius: 6px; }
.pay { width: 100%; min-height: 50px; margin-top: 14px; border: 0; border-radius: 14px; background: var(--acc); color: #fff; font-weight: 700; font-size: 16px; transition: filter .12s var(--ease); }
.pay:hover { filter: brightness(1.06); }
.pay:disabled { opacity: .7; cursor: progress; }
.err { margin: 8px 0 0; color: #b42318; font-size: 14px; }
.err:empty { display: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; } }

@media (max-width: 900px) {
  .plan { flex-basis: calc((100% - 14px) / 2.15); }
  .plans:not(:has(> .plan:nth-child(5))) .plan { flex: 0 0 calc((100% - 14px) / 2.15); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .top-in { gap: 16px; height: 54px; }
  .worlds { display: flex; width: 100%; margin-top: 18px; }
  .worlds button { flex: 1; padding: 9px 10px; }
  .sec { padding-top: 44px; }
  .sec-head h2 { font-size: 24px; }
  .nav { display: none; }
  .plans { margin: 0 -16px; padding: 4px 16px 8px; scroll-padding-inline: 16px; gap: 10px; -webkit-mask-image: none; mask-image: none; }
  .plan, .plans:not(:has(> .plan:nth-child(5))) .plan { flex: 0 0 calc(100% - 40px); }
  .tiles, .tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile, .bundle { padding: 10px 10px 12px; border-radius: 16px; }
  .tile-img { height: 92px; }
  .tile-img img { width: 64px; height: 64px; margin-bottom: 14px; }
  .look-tag { left: 6px; bottom: 6px; padding: 2px 7px; font-size: 12px; }
  .tile h3, .bundle h3 { margin-top: 10px; font-size: 16px; }
  .tile h3 .muted { display: block; margin: 0; font-size: 14px; }
  .tile-price { font-size: 16px; }
  .bl { font-size: 13.5px; }
  .bundle header { grid-template-columns: 32px minmax(0, 1fr); column-gap: 8px; }
  .bundle header img { width: 32px; height: 32px; }
  .bundle .price b { font-size: 17px; }
  .bundle .list { margin: 8px 0 10px; }
  .look-foot b { font-size: 20px; }
  .packs { padding: 6px 14px; }
  .pack { gap: 8px; min-height: 56px; }
  .pack > img { width: 24px; height: 24px; }
  .amt { font-size: 22px; }
  .badge { margin-left: 4px; padding: 3px 8px; font-size: 12.5px; }
  .pbtn { width: 96px; min-height: 38px; font-size: 14px; }
  .toast { bottom: 16px; left: 16px; right: 16px; max-width: none; }
}

/* ================= v16 (16-11): lo que piden las tiendas grandes =================
   1. Para quién se compra, a la vista desde el principio. 2. El total siempre visible y pagar a un
   toque. 3. La escalera de rangos: los seis con su precio aunque la fila muestre tres. 4. El extra
   de Volts en porcentaje. Mismo mundo: pastillas blancas, acento del servidor, nada nuevo de color. */
.top-acts { display: flex; align-items: center; gap: 8px; min-width: 0; }
.who { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 220px; height: 40px; padding: 0 12px 0 8px; border: 0; border-radius: 999px; background: none; color: var(--soft); font-weight: 600; transition: background .15s var(--ease); }
.who:hover { background: #1f1d240d; }
.who.is-set { color: var(--ink); }
.who-face { flex: none; display: grid; place-items: center; width: 24px; height: 24px; }
.who-face svg { width: 20px; height: 20px; }
.who-face img { border-radius: 6px; image-rendering: pixelated; }
#whoName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay[hidden] { display: none; }


.sec:first-child { padding-top: 28px; }
.badge.best { background: var(--acc-soft); color: var(--acc-ink); }

.paybar { display: none; }
@media (max-width: 640px) {
  .sec:first-child { padding-top: 20px; }
  /* Con algo en el carrito, el total y "Terminar compra" quedan abajo, al alcance del pulgar. */
  .paybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); background: #fffffff2; box-shadow: 0 -12px 30px -20px #3c287859; transform: translateY(110%); visibility: hidden; transition: transform .28s var(--ease), visibility 0s .28s; }
  .has-items .paybar { transform: none; visibility: visible; transition-delay: 0s; }
  .paybar p { display: grid; margin: 0; line-height: 1.2; }
  .paybar b { font-size: 18px; font-variant-numeric: tabular-nums; }
  .paybar span { color: var(--soft); font-size: 13px; }
  .paybar button { flex: none; min-height: 44px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--acc); color: #fff; font-weight: 700; }
  .paybar button:active { transform: scale(.97); }
  .has-items .foot { padding-bottom: 104px; }
  .has-items .toast { bottom: 84px; }
}

/* ================= v18 (16-11) =================
   Menú de secciones que acompaña al bajar y dice siempre para qué servidor se compra (se compraba el
   VIP del otro). En pantallas anchas va a la derecha, quieto; en las demás, una barra bajo la de arriba.
   Marca la sección que se está viendo. Sin flechas: no despliega nada, baja hasta la sección. */
.jump { position: sticky; top: 68px; z-index: 15; display: flex; align-items: center; gap: 6px; margin-top: 14px; padding: 5px; border-radius: 14px; background: #ffffffd9; backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 2px #3c287808, 0 8px 24px -12px #3c28782e; }
.jump-list { flex: 1; display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.jump-list::-webkit-scrollbar { display: none; }
.jump-list button { flex: none; min-height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--soft); font-size: 14.5px; font-weight: 600; white-space: nowrap; transition: background .12s var(--ease), color .12s var(--ease); }
.jump-list button:hover { color: var(--ink); }
.jump-list button[aria-current] { background: var(--tint); color: var(--ink); }
html { scroll-padding-top: 128px; }

/* Barra de arriba: IP y Discord como dato, sin peso de botón. */
.top-ip, .top-link { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--soft); font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color .15s var(--ease); }
.top-ip b { font-weight: 600; }
.top-ip:hover, .top-link:hover { color: var(--ink); }
.top-link { margin-right: 6px; }

/* Cantidad en kits, llaves y protecciones: las opciones de la tienda, con su precio al elegir. */
.tile-price .muted, .look-foot b .muted { margin-left: 2px; font-size: 14px; font-weight: 500; }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 4px 0; color: var(--soft); font-size: 13.5px; }
.qty select { min-width: 72px; min-height: 34px; padding: 4px 8px; border: 1px solid var(--hair); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.qty select:hover { border-color: var(--acc-line); }

@media (min-width: 1180px) {
  .wrap { width: min(1320px, 100% - 48px); }
  /* v40 (Manu 16-11): el menú de secciones va a la izquierda. */
  .shell { display: grid; grid-template-columns: 196px minmax(0, 1fr); column-gap: 40px; align-items: start; }
  /* v42 (Manu 17-11, la tienda de Fortnite de ejemplo): las pestañas de servidor van al mismo borde que los
     títulos y las tarjetas, y el menú arranca a la altura de la primera fila de tarjetas (--jump-y lo mide
     tienda.js), no arriba de todo al lado de las pestañas. */
  .shell > .worlds { grid-column: 2; }
  .shell > main { grid-column: 2; }
  .jump { grid-column: 1; grid-row: 2; top: 88px; display: block; margin-top: var(--jump-y, 110px); padding: 12px; border-radius: 18px; }
  .jump-list { display: grid; gap: 2px; overflow: visible; }
  .jump-list button { min-height: 38px; text-align: left; font-size: 15px; }
  .jump-list button[aria-current] { background: var(--acc-soft); color: var(--acc-ink); }
  .toast { right: max(16px, calc((100vw - 1320px) / 2)); }
  html { scroll-padding-top: 76px; }
}
@media (max-width: 640px) {
  .top-in { gap: 8px; }
  .top-acts { gap: 2px; }
  .top-ip, .top-link { padding: 0 6px; font-size: 13px; }
  .top-ip span { display: none; }
  .top-link { margin-right: 0; }
  /* El nombre queda en la cara: la barra tiene que entrar en 360 de ancho. */
  .who { padding: 0 8px; }
  #whoName { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .jump { top: 60px; margin-top: 10px; }
  .jump-list button { padding: 0 10px; }
  html { scroll-padding-top: 116px; }
  .qty { margin: 6px 0 0; }
}

/* Páginas de vuelta del pago (checkout/success y cancel): un mensaje centrado, mismo mundo. */
.result { max-width: 560px; padding: 72px 0 96px; text-align: center; }
.result h1 { margin: 18px 0 10px; font-size: 30px; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.result p { margin: 0 0 14px; text-wrap: pretty; }
.result-mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--acc-soft); color: var(--acc-ink); }
.result-mark.is-cancel { background: var(--tint); color: var(--soft); }
.result-mark svg { width: 30px; height: 30px; }
.result-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 22px 0 26px; }
.result-acts .buy { margin: 0; padding: 0 22px; background: var(--acc); color: #fff; text-decoration: none; }
.result-acts .buy:hover { background: var(--acc); filter: brightness(1.06); }
.vote-bedrock { padding: 12px 16px; border-radius: 12px; background: var(--tint); }
.vote-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.vote-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 18px; border: 1px solid var(--hair); border-radius: 14px; background: var(--card); color: inherit; font-weight: 600; text-decoration: none; }
.vote-list a:hover { border-color: var(--acc); }
.vote-list b { color: var(--acc-ink); }
.result .top-ip { border: 1px solid var(--hair); border-radius: 12px; padding: 0 14px; min-height: 42px; background: var(--card); }

/* Celulares con muesca o esquinas redondeadas (viewport-fit=cover): nada queda debajo de la muesca
   al girar el teléfono, ni el pago debajo de la barra de gestos. */
@supports (padding: max(0px, env(safe-area-inset-left))) {
  .wrap { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .cart { padding-right: env(safe-area-inset-right); }
  .cart-pay { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .paybar { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
}

/* Pantallas bajas: menos aire arriba, así la sección que sigue llega a asomar. */
@media (max-height: 800px) {
  .worlds { margin-top: 14px; }
  .jump { margin-top: 8px; }
  .sec:first-child { padding-top: 14px; }
  .sec-head { margin-bottom: 10px; }
  .plan { padding: 16px 20px 14px; }
  .plan .price { margin-top: 10px; }
  .plan .buy { margin-top: 12px; }
}
@media (max-height: 800px) and (min-width: 1180px) {
  .jump { margin-top: var(--jump-y, 60px); }
}

/* Con dedo: todo lo que se toca mide al menos 24 px de lado (WCAG 2.2, 2.5.8) y lo principal bastante más. */
.brand { min-height: 40px; }
.seg-xs button { min-height: 32px; }
@media (max-width: 359px) {
  .tile, .bundle { padding: 10px 6px 12px; }
  .qty select { min-width: 0; max-width: 60%; }
  .pbtn { width: 84px; padding: 0 4px; font-size: 13.5px; gap: 4px; }
  .pbtn .ck { width: 14px; height: 14px; }
  .packs { padding: 6px 10px; }
  .pack { gap: 6px; }
  .pack > img { width: 20px; height: 20px; }
  .amt { font-size: 19px; }
  .badge { margin-left: 0; padding: 2px 6px; font-size: 12px; }
}

/* Celular acostado y bajo: el carrito aprieta el aire para que la lista muestre un producto entero. */
@media (max-height: 420px) {
  .cart-head { padding: 8px 12px 6px 22px; }
  .cart-pay { padding: 10px 22px 12px; }
  .ci { padding: 10px 0; }
}

/* Celular acostado: la ventana "qué trae" pone la imagen a un lado y el precio con su botón al otro,
   así el botón nunca queda debajo del borde de la pantalla. */
@media (max-height: 520px) and (orientation: landscape) {
  .look-dlg { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 16px); }
  .look-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "img head" "img foot"; gap: 10px 16px; padding: 12px 16px; }
  .look-head { grid-area: head; }
  .look-img { grid-area: img; min-height: 0; padding: 8px; }
  .look-img img { max-height: calc(100dvh - 60px); }
  .look-foot { grid-area: foot; align-self: end; flex-wrap: wrap; gap: 8px 14px; }
  .look-foot .buy { flex: 1 1 140px; }
}
