:root {
  --bg: #060A13;
  --bg2: #0A1120;
  --card: #0E1628;
  --card2: #111C33;
  --line: #1B2742;
  --acc: #3CC8FF;
  --acc2: #0A84FF;
  --acc-soft: rgba(60, 200, 255, .12);
  --glow: 0 0 22px rgba(60, 200, 255, .45);
  --text: #EAF4FF;
  --mute: #8A9BB8;
  --wa: #25D366;
  --r: 20px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.5 'Exo 2', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
img, svg { display: block; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

h1, h2, h3, .brand-txt, .tag, .chip, .price, .btn, .plat { font-family: 'Chakra Petch', sans-serif; }
.hl, h2 span { color: var(--acc); text-shadow: var(--glow); }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(6, 10, 19, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-ico { width: 44px; height: 44px; filter: drop-shadow(0 0 10px rgba(60, 200, 255, .55)); }
.brand-txt { font-weight: 700; font-size: 23px; letter-spacing: 1.5px; }
.brand-txt small { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: #071225; background: var(--acc); padding: 3px 9px; border-radius: 999px; margin-left: 4px; vertical-align: 4px; }
.nav { display: flex; gap: 28px; margin-left: auto; font-weight: 600; color: var(--mute); white-space: nowrap; }
.nav a:hover { color: var(--acc); }
.top-in > .btn { margin-left: auto; }
.nav + .btn { margin-left: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; border-radius: 999px;
  font-weight: 700; font-size: 16px; letter-spacing: .5px;
  padding: 14px 24px; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn svg { width: 22px; height: 22px; }
.btn:active { transform: scale(.97); }
.btn-wa { background: linear-gradient(135deg, #5ED3FF, var(--acc2)); color: #fff; box-shadow: 0 0 18px rgba(60, 200, 255, .35); }
.btn-wa:hover { box-shadow: 0 0 28px rgba(60, 200, 255, .6); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--acc); border: 1.5px solid var(--acc); }
.btn-ghost:hover { background: var(--acc-soft); box-shadow: var(--glow); }

/* ---------- Hero con fotos rotando ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: 600px; display: flex; align-items: center; padding: 70px 0 90px; }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.slide {
  position: absolute; inset: 0; background: center / cover no-repeat;
  opacity: 0; transform: scale(1.04); transition: opacity 1.4s ease, transform 7s ease-out;
}
.slide.on { opacity: 1; transform: scale(1.12); }
/* Fondos de prueba mientras no haya fotos */
.slide.demo-1 { background-image: radial-gradient(circle at 20% 30%, #1E6BFF 0, transparent 45%), radial-gradient(circle at 80% 70%, #00C2FF 0, transparent 40%), linear-gradient(135deg, #07152E, #0B2A5B); }
.slide.demo-2 { background-image: radial-gradient(circle at 75% 25%, #7B5CFF 0, transparent 42%), radial-gradient(circle at 25% 80%, #1EA7FF 0, transparent 40%), linear-gradient(135deg, #0C0F2E, #1A1450); }
.slide.demo-3 { background-image: radial-gradient(circle at 50% 20%, #00E0FF 0, transparent 40%), radial-gradient(circle at 15% 75%, #0A4DFF 0, transparent 45%), linear-gradient(135deg, #031A26, #06304A); }
.slide.demo-4 { background-image: radial-gradient(circle at 85% 60%, #FF4D8D 0, transparent 35%), radial-gradient(circle at 20% 30%, #2F7BFF 0, transparent 45%), linear-gradient(135deg, #0D0B22, #16204A); }
.slide.demo::after {
  content: "FOTO DE PORTADA"; position: absolute; right: 24px; bottom: 70px;
  font: 700 12px 'Chakra Petch', sans-serif; letter-spacing: 3px; color: rgba(255, 255, 255, .35);
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 10, 19, .45) 0%, rgba(6, 10, 19, .5) 55%, var(--bg) 100%),
    radial-gradient(ellipse at center, rgba(6, 10, 19, .15), rgba(6, 10, 19, .65) 75%);
}
.hero-in { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-dots { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; cursor: pointer; background: rgba(255, 255, 255, .3); transition: width .3s, background .3s; }
.hero-dots button.on { width: 30px; background: var(--acc); box-shadow: var(--glow); }

.tag {
  display: inline-block; color: var(--acc); background: rgba(6, 10, 19, .5); border: 1.5px solid rgba(60, 200, 255, .6);
  font-weight: 700; font-size: 13px; letter-spacing: 3px; padding: 8px 20px; border-radius: 999px;
  box-shadow: 0 0 16px rgba(60, 200, 255, .25); backdrop-filter: blur(6px);
}
h1 { font-weight: 700; font-size: clamp(42px, 7.5vw, 84px); line-height: 1; margin: 24px 0 18px; letter-spacing: .5px; text-transform: uppercase; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
h1 small { display: block; font-size: .42em; font-weight: 600; color: var(--text); opacity: .85; margin-top: 16px; letter-spacing: 6px; }
.lead { max-width: 560px; color: #C4D2E8; font-size: 19px; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.search {
  display: flex; align-items: center; gap: 12px; width: min(620px, 100%); margin-top: 34px;
  background: rgba(14, 22, 40, .85); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 24px;
  backdrop-filter: blur(8px); transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--acc); box-shadow: var(--glow); }
.search svg { width: 22px; height: 22px; fill: none; stroke: var(--acc); stroke-width: 2.4; stroke-linecap: round; flex: none; }
.search input { flex: 1; background: none; border: 0; outline: 0; padding: 17px 0; font-size: 18px; font-weight: 600; }
.search input::placeholder { color: #6E7F9E; }
.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.trust li { background: rgba(14, 22, 40, .75); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: 15px; backdrop-filter: blur(6px); }
.trust b { margin-right: 4px; }

/* ---------- Secciones ---------- */
.block { padding: 56px 0 8px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 22px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.sec-head p { color: var(--mute); }

/* ---------- Filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-bottom: 22px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; cursor: pointer; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 8px 20px; font-size: 15px; font-weight: 600; color: var(--mute); letter-spacing: .5px;
}
.chip:hover { color: var(--text); border-color: #2A3A5E; }
.chip.on { background: var(--acc); border-color: var(--acc); color: #071225; box-shadow: var(--glow); }
select { background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 18px; font-weight: 600; cursor: pointer; }

/* ---------- Tarjetas ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(60, 200, 255, .55); box-shadow: var(--shadow), 0 0 24px rgba(60, 200, 255, .18); }
.cover {
  position: relative; overflow: hidden; height: 124px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, #0F2246, #0B1630);
}
.cover::after { content: ""; position: absolute; right: -30px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: var(--acc); opacity: .22; filter: blur(4px); }
.card:nth-child(3n+2) .cover { background: linear-gradient(135deg, #14214A, #0D1433); }
.card:nth-child(3n+3) .cover { background: linear-gradient(135deg, #0A2A44, #08182C); }
.plats { display: flex; gap: 6px; position: relative; z-index: 1; }
.plat { font-weight: 700; font-size: 11px; letter-spacing: 1px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.plat.pre { background: var(--acc); color: #071225; }
.cover h3 { font-weight: 600; font-size: 18px; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; position: relative; z-index: 1; }
.body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt {
  cursor: pointer; background: var(--bg2); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 4px 11px; font-size: 13px; font-weight: 600; color: var(--mute); line-height: 1.3;
}
.opt:hover { color: var(--text); }
.opt.on { border-color: var(--acc); background: var(--acc-soft); color: var(--acc); }
.price-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; gap: 10px; }
.price { font-size: 28px; font-weight: 700; color: var(--text); }
.price small { font-size: 13px; color: var(--mute); font-weight: 600; margin-left: 3px; }
.card .btn { width: 100%; padding: 12px; font-size: 15px; }

/* Preventas en carrusel */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 280px); gap: 18px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x mandatory; }
.rail .card { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

.empty { text-align: center; color: var(--mute); padding: 40px 0; }
.empty a { color: var(--acc); text-decoration: underline; }
.more { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- Cómo comprar ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.steps li, .vs-card, .faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.steps li { padding: 24px; }
.steps b {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: var(--acc-soft); border: 1.5px solid var(--acc); color: var(--acc);
  font: 700 24px 'Chakra Petch', sans-serif; box-shadow: 0 0 16px rgba(60, 200, 255, .25);
}
.steps h3 { font-size: 20px; font-weight: 600; margin: 14px 0 4px; }
.steps p { color: var(--mute); }

/* ---------- Primaria vs secundaria ---------- */
.vs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.vs-card { padding: 30px; }
.vs-card.hi { border-color: var(--acc); background: linear-gradient(160deg, #10284D, var(--card)); box-shadow: 0 0 30px rgba(60, 200, 255, .15); }
.vs-card h3 { font-size: 28px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.vs-card.hi h3 { color: var(--acc); text-shadow: var(--glow); }
.vs-card .sub { color: var(--mute); margin: 2px 0 18px; }
.vs-card ul { list-style: none; display: grid; gap: 12px; font-size: 18px; font-weight: 600; }
.vs-card li { display: flex; gap: 10px; align-items: flex-start; }
.vs-card li::before {
  content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; background: var(--acc); color: #071225; margin-top: 1px;
}
.vs-card li.no::before { content: "–"; background: var(--line); color: var(--mute); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { padding: 0 24px; }
.faq details[open] { border-color: rgba(60, 200, 255, .4); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 600 18px 'Chakra Petch', sans-serif; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); border: 1px solid var(--acc); display: grid; place-items: center; transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--mute); padding-bottom: 18px; }

/* ---------- CTA y footer ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center; padding: 76px 24px; margin-block: 56px 0;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  background: radial-gradient(ellipse at 50% 0%, rgba(60, 200, 255, .25), transparent 60%), linear-gradient(160deg, #0F2246, #0A1226);
  border: 1px solid rgba(60, 200, 255, .3); border-radius: 32px;
}
.cta-ico { width: 96px; height: 96px; filter: drop-shadow(0 0 18px rgba(60, 200, 255, .6)); }
.cta h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.foot { padding: 40px 0 100px; color: var(--mute); font-size: 15px; }
.foot-in { display: grid; gap: 10px; justify-items: center; text-align: center; }
.foot a { color: var(--acc); font-weight: 700; }
.legal { font-size: 13px; opacity: .7; }

.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .35); transition: transform .15s;
}
.fab:hover { transform: scale(1.07); }
.fab svg { width: 32px; height: 32px; }

@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top-in { justify-content: space-between; }
  .btn-sm span { display: none; }
  .hero { min-height: 540px; padding: 50px 0 80px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cover { height: 112px; padding: 12px; }
  .cover h3 { font-size: 16px; }
  .body { padding: 12px; }
  .price { font-size: 22px; }
  .opt { font-size: 12px; padding: 3px 9px; }
  .filters select { width: 100%; }
  .cta { border-radius: 26px; }
}
@media (max-width: 400px) {
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.on { transition: opacity .6s; transform: none; }
}

/* ---------- Foto del juego en la tarjeta ---------- */
.card.has-img .cover { height: 168px; justify-content: space-between; background: #0B1630; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card.has-img .cover::after { right: 0; top: auto; bottom: 0; width: 100%; height: 75%; border-radius: 0; filter: none; opacity: 1;
  background: linear-gradient(180deg, transparent, rgba(6, 10, 19, .92)); }
.card.has-img:hover .cover::after { transform: none; opacity: 1; }
.card.has-img:hover .cover-img { transform: scale(1.07); }
.card.has-img .cover h3 { text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.card.has-img .plat { background: rgba(6, 10, 19, .75); backdrop-filter: blur(4px); }
.card.has-img .plat.pre { background: var(--acc); }

/* ---------- Preguntas frecuentes con apertura suave ---------- */
.faq-body { overflow: hidden; }
.faq details.closing summary::after { rotate: 0deg; }

/* ---------- Mientras carga el catálogo ---------- */
.skel { height: 300px; border-radius: var(--r); background: linear-gradient(100deg, var(--card) 30%, var(--card2) 50%, var(--card) 70%); background-size: 300% 100%; animation: skel 1.4s ease-in-out infinite; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: 0 0; } }
body.cargando #contador { visibility: hidden; }
@media (max-width: 760px) { .card.has-img .cover { height: 140px; } .skel { height: 260px; } }
