/* KindMX v2: tienda Fortnite (bocetos Main, Movil y Tarjetas). */

/* ---------- cabecera (banner) ---------- */
.site-head { position: relative; overflow: hidden; background: var(--night); color: var(--on-night); }
.banner-art { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; background: var(--banner-pattern); }
.banner-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}
@media (max-width: 719px) { .banner-art img { -webkit-mask-image: none; mask-image: none; } }
.banner-fade { position: absolute; inset: 0; background: var(--banner-fade); }
.head-inner { position: relative; display: flex; flex-direction: column; gap: 32px; padding-top: 24px; padding-bottom: 40px; }
.head-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.head-actions { display: flex; align-items: center; gap: 10px; }
.currency-btn { gap: 8px; padding: 0 16px; border-color: var(--glass-line); }
.currency-btn .sym { color: var(--on-night-muted); }
.cart-btn { position: relative; height: 44px; padding: 0 18px; font-size: 15px; }
.head-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.head-title { display: flex; flex-direction: column; gap: 18px; }
.head-title h1 { font: 800 64px/.98 var(--font-display); letter-spacing: -.01em; text-transform: uppercase; }
.countdown {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: var(--r-pill); background: var(--glass-2); color: var(--on-night-soft); font-size: 15px;
}
.countdown b { color: var(--on-night); font-variant-numeric: tabular-nums; }
.only-m-inline { display: none; }
@media (max-width: 719px) { .only-d-inline { display: none; } .only-m-inline { display: inline; } }
.head-links { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.head-links-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.how-link {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--glass-line-2); background: transparent; color: var(--on-night); font: 600 14px var(--font-ui);
}
.how-link:hover { background: var(--glass); }

@media (max-width: 719px) {
  .banner-art { width: 100%; }
  .banner-fade { background: var(--banner-fade-m); }
  .head-inner { gap: 18px; padding-top: 14px; padding-bottom: 22px; }
  .head-top { flex-wrap: nowrap; }
  .head-actions { gap: 8px; }
  .currency-btn { height: 40px; padding: 0 12px; font-size: 14px; font-weight: 700; }
  .currency-btn .sym, .currency-btn .icon { display: none; }
  .cart-btn { width: 44px; height: 40px; padding: 0; }
  .cart-btn .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cart-btn .count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; font-size: 12px; }
  .head-main { gap: 18px; }
  .head-title h1 { font-size: 38px; line-height: 1; }
  .countdown { height: 34px; padding: 0 12px; font-size: 14px; }
  .head-links { display: none; }
}

/* ---------- barra de accesos ---------- */
.access { background: var(--paper); border-bottom: 1px solid var(--line); }
.access-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.access-group { display: flex; gap: 10px; flex-wrap: wrap; }
.access .only-m { display: none; }
@media (max-width: 719px) {
  .access-inner { justify-content: flex-start; gap: 8px; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
  .access-group { flex-wrap: nowrap; gap: 8px; }
  .access .only-d { display: none; }
  .access .only-m { display: inline-flex; }
  .access .pill { height: 40px; padding: 0 14px; font-size: 14px; gap: 6px; }
}

.notice { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 15px; }
.notice .wrap { display: flex; align-items: center; gap: 8px; padding-top: 10px; padding-bottom: 10px; }

/* ---------- cuerpo ---------- */
.shop-main { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; padding-bottom: 64px; }
.search { position: relative; }
.search .icon { position: absolute; left: 22px; top: 18px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 56px; padding: 0 20px 0 54px; border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  background: var(--paper); color: var(--ink); font: 500 16px var(--font-ui);
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.shop-layout { display: flex; gap: 24px; align-items: flex-start; }
.sec-nav {
  position: sticky; top: 16px; flex: 0 0 240px; max-height: calc(100vh - 32px); overflow: auto;
  display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: var(--r-card);
  background: var(--paper); border: 1px solid var(--line);
}
.sec-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 12px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
}
.sec-nav a:hover { background: var(--canvas); color: var(--ink); }
.sec-nav a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-ink); }
.sec-nav .n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sec-chips { display: none; }
.shop-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
#sections { display: flex; flex-direction: column; gap: 40px; }
.sec { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 16px; }

@media (max-width: 719px) {
  .shop-main { gap: 14px; padding-top: 16px; }
  .search .icon { left: 18px; top: 14px; }
  .search input { height: 48px; padding-left: 48px; font-size: 15px; }
  .shop-layout { display: block; }
  .sec-nav { display: none; }
  .sec-chips {
    position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter-m)); padding: 8px var(--gutter-m); background: var(--canvas);
  }
  .sec-chips .chip { height: 40px; }
  .shop-content, #sections { gap: 24px; }
  .shop-content { margin-top: 6px; }
  .sec { gap: 12px; scroll-margin-top: 60px; }
}

/* ---------- grilla y tarjetas ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row; gap: 12px; }
@media (max-width: 1099px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 719px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.tile {
  position: relative; height: 290px; border-radius: var(--r-tile); overflow: hidden; background: var(--r-common);
  transition: box-shadow var(--ease);
}
.tile.wide { grid-column: span 2; }
.tile.r-uncommon { background: var(--r-uncommon); }
.tile.r-rare { background: var(--r-rare); }
.tile.r-epic { background: var(--r-epic); }
.tile.r-legendary, .tile.r-mythic { background: var(--r-legendary); }
.tile.r-icon, .tile.r-gaminglegends { background: var(--r-icon); }
.tile.r-manual { background: var(--r-manual); }
.tile.has-bg { background: var(--tile-bg); }   /* colores de la oferta (API) o del panel */
.tile.in-cart { box-shadow: var(--ring-cart); }
.tile-img { position: absolute; inset: 0 0 0 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.tile-art { position: absolute; left: 0; right: 0; top: 0; bottom: 64px; display: grid; place-items: center; color: var(--on-night); }
.tile-art .icon { width: 120px; height: 120px; stroke-width: 1.5; }
.tile-fallback { display: none; opacity: .85; }
.tile:not(:has(.tile-img)) .tile-fallback { display: grid; }   /* sin imagen o si no cargó */
.tile-shade { position: absolute; inset: 0; background: var(--tile-shade); pointer-events: none; }
.tile-open { position: absolute; inset: 0; z-index: 1; border: 0; padding: 0; background: transparent; border-radius: inherit; }
.tile-open:focus-visible { outline-offset: -4px; outline: 3px solid var(--on-night); }
.tile-add {
  position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: var(--r-pill); background: var(--tile-btn); color: var(--ink);
  transition: background-color var(--ease), color var(--ease), transform 150ms ease-out;
}
.tile-add:hover { transform: scale(1.06); }
.tile-add[aria-pressed="true"] { background: var(--accent); color: var(--on-night); }
.tile-add .icon { stroke-width: 2.25; }
.tile-add[aria-pressed="true"] .icon { stroke-width: 2.5; }
.tile-tag { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 10px; border-radius: var(--r-pill); background: var(--tile-chip); color: var(--on-night); font: 700 12px var(--font-ui); pointer-events: none; }
.tile-info { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.tile-name {
  font: 700 22px/1.05 var(--font-tight); color: var(--on-night);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile-vb { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font: 600 16px var(--font-tight); color: var(--on-night); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile-vb s { color: var(--tile-strike); font-weight: 500; }
.tile-note { font: 500 15px var(--font-ui); color: var(--on-night-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 719px) {
  .tile { height: 240px; border-radius: var(--r-tile-m); }
  .tile.wide { height: 210px; }
  .tile-shade { background: var(--tile-shade-m); }
  .tile-art { bottom: 58px; }
  .tile-art .icon { width: 90px; height: 90px; }
  .tile-add { top: 8px; right: 8px; width: 34px; height: 34px; }
  .tile-add .icon { width: 18px; height: 18px; }
  .tile-info { left: 10px; right: 10px; bottom: 10px; gap: 6px; }
  .tile-name { font-size: 18px; }
  .tile-row { gap: 6px; }
  .tile-vb { gap: 4px; font-size: 14px; }
  .tile-vb .icon { width: 16px; height: 16px; }
  .tile-vb s { display: none; }
  .tile .save-tag { font-size: 12px; padding: 2px 8px; border-radius: 5px; }
  .tile .price-pill { gap: 3px; padding: 3px 9px; }
  .tile .price-pill b { font-size: 16px; }
  .tile .price-pill span { font-size: 11px; }
}
@media (max-width: 379px) {
  .tile .price-pill span { display: none; }
}

/* ---------- PaVos, Club y DLC ---------- */
.tile.r-gold { background: var(--r-gold); }
#v-bucks { padding-top: 24px; border-top: 1px solid var(--line); }
.vb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vb-url { font-size: 14px; color: var(--muted); }
.vb-chips { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 719px) {
  #v-bucks { padding-top: 18px; }
  .vb-url { display: none; }
  .vb-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter-m)); padding: 0 var(--gutter-m); }
  .vb-chips .chip { height: 40px; }
  .tile.manual .tile-note { display: none; }
}

/* ---------- detalle del artículo ---------- */
.detail { width: min(640px, calc(100% - 32px)); }
.detail-hero { position: relative; height: 300px; flex: none; }
.detail-hero .tile { position: absolute; inset: 0; height: auto; border-radius: 0; }
.detail-hero .btn-round { position: absolute; top: 14px; right: 14px; z-index: 3; border: 0; background: var(--tile-btn); }
.detail-body { display: flex; flex-direction: column; gap: 16px; padding: 22px 28px 0; overflow: auto; }
.detail-body h2 { font: 700 28px/1.05 var(--font-tight); }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font-size: 15px; }
.detail-meta .vb-amount { color: var(--body); }
.detail-meta s { color: var(--muted); }
.detail-contents { display: flex; flex-direction: column; gap: 8px; }
.detail-contents h3 { font: 700 15px var(--font-ui); color: var(--body); }
.detail-contents ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.detail-contents li { padding: 6px 12px; border-radius: var(--r-pill); background: var(--canvas); font-size: 14px; font-weight: 600; }
.detail-foot { justify-content: space-between; align-items: center; }
@media (max-width: 559px) {
  .detail-hero { height: 240px; }
  .detail-body { padding: 18px 20px 0; }
  .detail-body h2 { font-size: 24px; }
}

/* ---------- Cómo comprar ---------- */
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; }
.steps li { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.steps li:last-child { border-bottom: 0; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-strong); font: 800 16px var(--font-display); }
.steps h3 { font: 700 20px var(--font-tight); margin-bottom: 4px; }
.steps p { font-size: 16px; line-height: 1.5; color: var(--body); }

/* ---------- ventanas con iframe ---------- */
.embed { width: min(900px, calc(100% - 32px)); }
.embed iframe { display: block; width: 100%; height: 80vh; max-height: calc(100dvh - 120px); border: 0; background: var(--paper); }

/* ---------- Ver mi pedido ---------- */
.my-orders { width: min(560px, calc(100% - 32px)); }
.my-orders .dialog-body { display: flex; flex-direction: column; gap: 16px; padding-top: 20px; padding-bottom: 8px; }
.order-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.order-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r-box);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600;
}
.order-links a:hover { border-color: var(--accent-line); background: var(--paper-soft); }
.order-form { display: flex; gap: 8px; }
.order-form .input { flex: 1; }
@media (max-width: 479px) { .order-form { flex-direction: column; } .order-form .input { flex: none; } }

/* ---------- pie ---------- */
.site-foot { background: var(--night); color: var(--on-night-muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; }
