/* Núcleo — tienda de tecnología: gris perla, negro tinta y degradado azul-violeta-rosa; Sora. */
:root {
  --bg: #f5f5f7; --white: #fff; --ink: #0b0b0f; --muted: #6e6e78; --line: rgba(11,11,15,.08);
  --accent: #2f6bff; --blue: #2f6bff; --violet: #7c4dff; --pink: #ff4d8d;
  --sans: "Sora", system-ui, sans-serif;
  --ease: cubic-bezier(.16,1,.3,1); --gut: clamp(16px, 4vw, 56px);
}
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 400; }
::selection { background: var(--blue); color: #fff; }
.wrap { width: min(1300px, 100%); margin-inline: auto; padding-inline: var(--gut); }
.grad { background: linear-gradient(90deg, var(--blue), var(--violet) 55%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2 { font-weight: 600; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.045em; max-width: 18ch; }
.sub { color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); max-width: 52ch; margin-top: 14px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; margin-bottom: 34px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1; transition: background .3s, color .3s, transform .35s var(--ease), box-shadow .3s; white-space: nowrap; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--blue); }
.btn-soft { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-soft:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* Barra + nav */
.bar { padding: 9px var(--gut); text-align: center; font-size: 13px; background: var(--ink); color: #d6d6de; }
.bar b { color: #fff; }
.nav { position: sticky; top: 0; z-index: 100; background: rgba(245,245,247,.82); backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 66px; width: min(1300px, 100%); margin-inline: auto; padding-inline: var(--gut); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; letter-spacing: -.04em; }
.logo-mk { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(from 210deg, var(--blue), var(--violet), var(--pink), var(--blue)); position: relative; }
.logo-mk::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--bg); }
.menu { display: none; gap: 24px; font-size: 14px; font-weight: 500; }
.menu a { color: var(--muted); transition: color .3s; }
.menu a:hover { color: var(--ink); }
.nav-search { display: none; margin-left: auto; }
.nav-search input { width: 260px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; transition: width .4s var(--ease), border-color .3s; }
.nav-search input:focus { outline: none; width: 320px; border-color: var(--blue); }
.burger { margin-left: auto; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease); }
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-open .menu { display: flex; flex-direction: column; position: fixed; inset: 104px 0 0 0; background: var(--bg); padding: 30px var(--gut); gap: 12px; font-size: 32px; font-weight: 600; letter-spacing: -.04em; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(50px, 7vw, 100px) 0 clamp(50px, 6vw, 80px); text-align: center; }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(500px 360px at var(--mx, 50%) var(--my, 30%), rgba(47,107,255,.16), transparent 70%), radial-gradient(600px 400px at 80% 70%, rgba(255,77,141,.1), transparent 70%); pointer-events: none; }
.hero-in { position: relative; display: grid; justify-items: center; }
.hero-k { font-size: 14px; font-weight: 500; color: var(--blue); }
.hero-k.light { color: #9fb6ff; }
.hero-title { font-weight: 600; font-size: clamp(52px, 8.4vw, 132px); line-height: .98; letter-spacing: -.06em; margin: 18px 0 20px; max-width: 12ch; }
.hero-lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 20px); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.hero-img { margin-top: clamp(30px, 5vw, 60px); width: min(1100px, 100%); border-radius: 32px; overflow: hidden; aspect-ratio: 16/8; box-shadow: 0 60px 120px -60px rgba(11,11,15,.4); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 30px; width: min(1100px, 100%); }
.perks li { padding: 18px; border-radius: 20px; background: #fff; text-align: left; }
.perks b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.04em; }
.perks span { font-size: 13px; color: var(--muted); }

/* Categorías */
.cats { padding: 30px 0 10px; }
.cat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat { display: grid; justify-items: center; gap: 10px; padding: 14px 10px; border-radius: 22px; background: #fff; font-size: 14px; font-weight: 600; transition: transform .4s var(--ease), box-shadow .4s; }
.cat:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(11,11,15,.3); }
.cat img { width: 76px; height: 76px; border-radius: 18px; object-fit: cover; }

/* Tienda */
.shop { padding: clamp(60px, 8vw, 110px) 0; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 10px 16px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); transition: all .3s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card { display: flex; flex-direction: column; border-radius: 26px; background: #fff; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -40px rgba(11,11,15,.35); }
.card-img { position: relative; aspect-ratio: 1; overflow: hidden; background: #ededf0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.tag { position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; }
.cmp-chk { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 99px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); font-size: 12px; font-weight: 600; cursor: pointer; }
.cmp-chk input { accent-color: var(--blue); width: 15px; height: 15px; }
.card-b { padding: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.card-s { font-size: 13px; color: var(--muted); }
.card-p { margin: 10px 0 12px; }
.card-p b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.card-p small { font-size: 12px; color: var(--blue); font-weight: 500; }
.add { margin-top: auto; padding: 12px; border-radius: 999px; background: var(--bg); font-weight: 600; font-size: 14px; transition: background .3s, color .3s; }
.add:hover { background: var(--ink); color: #fff; }

/* Comparador */
.cmp-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 95; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.4); }
.cmp-clear { color: #aaa; font-size: 13px; padding: 6px 8px; }
.cmp { margin: auto; width: min(980px, calc(100vw - 24px)); max-height: calc(100svh - 40px); padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--ink); overflow: auto; box-shadow: 0 50px 100px -30px rgba(0,0,0,.5); }
.cmp::backdrop { background: rgba(11,11,15,.5); backdrop-filter: blur(6px); }
.cmp[open] { animation: cIn .5s var(--ease); }
@keyframes cIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.cmp-x { position: sticky; float: right; top: 12px; margin: 12px 12px 0 0; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); font-size: 24px; }
.cmp-body { padding: clamp(18px, 3vw, 34px); overflow-x: auto; }
.cmp table { width: 100%; border-collapse: collapse; min-width: 520px; }
.cmp th, .cmp td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.cmp thead th { border-bottom: 0; }
.cmp thead img { width: 120px; height: 120px; border-radius: 18px; object-fit: cover; margin-bottom: 10px; }
.cmp thead b { display: block; font-size: 16px; letter-spacing: -.02em; }
.cmp thead span { color: var(--blue); font-weight: 600; }
.cmp tbody th { color: var(--muted); font-weight: 500; width: 140px; }
.cmp td.best { color: var(--blue); font-weight: 600; }

/* Gamer */
.gamer { position: relative; overflow: hidden; color: #fff; padding: clamp(100px, 13vw, 180px) 0; background: #05060a; }
.gamer-bg { position: absolute; inset: 0; }
.gamer-bg img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; opacity: .55; }
.gamer::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(5,6,10,.92), rgba(5,6,10,.3)); }
.gamer-in { position: relative; z-index: 2; display: grid; gap: 18px; justify-items: start; }
.gamer-in > p:not(.hero-k) { color: rgba(255,255,255,.75); max-width: 48ch; }

/* Parte de pago */
.trade { padding: clamp(80px, 10vw, 140px) 0; }
.trade-grid { display: grid; gap: 40px; align-items: start; }
.trade-img { margin-top: 30px; border-radius: 28px; overflow: hidden; aspect-ratio: 16/10; }
.trade-img img { width: 100%; height: 100%; object-fit: cover; }
.tf { display: grid; gap: 18px; padding: clamp(22px, 3.5vw, 40px); border-radius: 30px; background: #fff; }
.tf fieldset { border: 0; padding: 0; }
.tf legend { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 16px; background: var(--bg); }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 11px 6px; border-radius: 12px; text-align: center; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .3s; }
.seg input:checked + span { background: #fff; box-shadow: 0 6px 16px -8px rgba(11,11,15,.3); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--blue); }
.tf-out { display: grid; gap: 4px; padding: 22px; border-radius: 20px; background: linear-gradient(120deg, var(--blue), var(--violet)); color: #fff; }
.tf-out span { font-size: 13px; opacity: .85; }
.tf-out b { font-size: clamp(40px, 5vw, 60px); font-weight: 600; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.tf-out small { opacity: .85; }

/* Servicio técnico */
.svc { padding: clamp(80px, 10vw, 140px) 0; background: #fff; }
.svc-grid { display: grid; gap: 40px; align-items: center; }
.svc-img { border-radius: 30px; overflow: hidden; aspect-ratio: 4/3.4; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-list { margin: 26px 0; }
.svc-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.svc-list span { font-weight: 500; }
.svc-list b { font-weight: 600; }
.svc-list em { grid-column: 1; font-style: normal; font-size: 13px; color: var(--muted); }

/* Tiendas */
.stores { padding: clamp(80px, 10vw, 140px) 0; }
.st-grid { display: grid; gap: 40px; align-items: center; }
.st-cards { display: grid; gap: 10px; margin: 28px 0; }
.st { padding: 20px; border-radius: 22px; background: #fff; display: grid; gap: 6px; }
.st h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.st p:not(.st-open) { color: var(--muted); font-size: 14px; }
.st-open { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--bg); font-size: 12px; font-weight: 600; }
.st-open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #b5b5bd; }
.st-open.is-open::before { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.st-img { border-radius: 30px; overflow: hidden; aspect-ratio: 4/3.6; }
.st-img img { width: 100%; height: 100%; object-fit: cover; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 18px 30px 18px 0; position: relative; font-weight: 600; letter-spacing: -.01em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 300; transition: transform .4s var(--ease); }
.acc details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.acc details p { padding: 0 0 18px; color: var(--muted); font-size: 15px; }

/* Footer */
.foot { background: #fff; border-top: 1px solid var(--line); padding-top: 56px; }
.foot-in { display: grid; gap: 26px; padding-bottom: 36px; font-size: 14px; color: var(--muted); }
.foot-in p { margin-top: 8px; }
.foot h4 { color: var(--ink); font-size: 14px; font-weight: 600; }
.foot a { cursor: pointer; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* Responsive */
@media (min-width: 720px) {
  .perks { grid-template-columns: repeat(4, 1fr); }
  .cat-row { grid-template-columns: repeat(6, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 960px) {
  .menu { display: flex; }
  .nav-search { display: block; }
  .burger { display: none; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .trade-grid { grid-template-columns: 1fr 1fr; gap: 70px; }
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 70px; }
  .st-grid { grid-template-columns: 1fr 1fr; gap: 70px; }
  .foot-in { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (max-width: 539px) { .card-b { padding: 12px; } .card-p b { font-size: 18px; } .cmp-chk span { display: none; } }
