/* ==========================================================================
   NEXORYFF — sistema visual
   Negro profundo · grafito · blanco cálido · dorado discreto
   ========================================================================== */

@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url(/static/fonts/manrope-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url(/static/fonts/manrope-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url(/static/fonts/manrope-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url(/static/fonts/manrope-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url(/static/fonts/manrope-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 500; font-display: swap; src: url(/static/fonts/chakra-petch-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 600; font-display: swap; src: url(/static/fonts/chakra-petch-latin-600-normal.woff2) format('woff2'); }

:root {
  --bg: #0A0A0B;
  --bg-2: #0F0F11;
  --surface: #131315;
  --surface-2: #19191C;
  --surface-3: #212125;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #F4F1EA;
  --text-2: #C9C5BC;
  --muted: #8E8A82;
  --gold: #C9A55C;
  --gold-2: #E2C68A;
  --gold-soft: rgba(201, 165, 92, .12);
  --gold-line: rgba(201, 165, 92, .35);
  --ok: #86B79A;
  --warn: #D49A5C;
  --off: #7A766F;
  --danger: #D9776C;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Chakra Petch', 'Manrope', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.12; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3, .h3 { font-size: 1.35rem; }
p { margin: 0; }
::selection { background: var(--gold); color: #111; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: #111; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.gold { color: var(--gold); }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .92em; letter-spacing: .01em; word-break: break-all; }
.ic { width: 18px; height: 18px; flex: none; }
.ic-xl { width: 32px; height: 32px; }

.eyebrow, .eyebrow-sm {
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: var(--gold);
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .75rem; margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--gold); }
.eyebrow-sm { font-size: .68rem; letter-spacing: .16em; }

/* ---------- Botones ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em; white-space: nowrap;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover > .ic:last-child { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #141210; }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold-line); background: var(--gold-soft); }
.btn-line { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-disabled, .btn:disabled { background: var(--surface-2); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.btn-sm { --h: 40px; padding: 0 16px; font-size: .875rem; }
.btn-lg { --h: 56px; font-size: 1rem; }
.btn-block { width: 100%; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: transparent; transition: border-color .2s; }
.icon-btn:hover { border-color: var(--line-2); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(10, 10, 11, .72); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(10, 10, 11, .88); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; font-size: .92rem; font-weight: 500; color: var(--text-2); }
.nav > a:not(.btn) { position: relative; padding: 6px 0; transition: color .2s; }
.nav > a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav > a:not(.btn):hover { color: var(--text); }
.nav > a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: transparent; place-items: center; }
.admin-strip { background: var(--gold-soft); border-bottom: 1px solid var(--gold-line); font-size: .82rem; }
.admin-strip .wrap { display: flex; justify-content: space-between; align-items: center; height: 36px; color: var(--gold-2); }
.admin-strip a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.admin-strip .ic { width: 14px; height: 14px; }
.preview-bar { background: #2a2214; border-bottom: 1px solid var(--gold-line); color: var(--gold-2); font-size: .9rem; padding: 10px 0; }
.preview-bar a { text-decoration: underline; margin-left: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 80% 40%, rgba(201, 165, 92, .07), transparent 70%), linear-gradient(180deg, transparent 70%, var(--bg));
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .gold { color: var(--gold); }
.lead { font-size: 1.1rem; color: var(--text-2); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-stats { display: flex; gap: 40px; margin: 48px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-stats dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.hero-stats dd { margin: 4px 0 0; font-family: var(--display); font-weight: 600; font-size: 1.3rem; }
.hero-visual { position: relative; aspect-ratio: 1; max-width: 560px; justify-self: end; width: 100%; }
.hero-art { width: 100%; height: 100%; }
.ha-zone { transform-origin: 318px 292px; animation: zone 9s var(--ease) infinite alternate; }
.ha-zone-inner { transform-origin: 318px 292px; animation: spin 60s linear infinite; }
.ha-path { animation: dash 30s linear infinite; }
@keyframes zone { from { transform: scale(1); } to { transform: scale(.9); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: -440; } }
.hero-feature {
  position: absolute; left: 6%; right: 14%; bottom: 10%;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: var(--surface);
  box-shadow: var(--shadow); transition: transform .5s var(--ease), border-color .3s;
}
.hero-feature:hover { transform: translateY(-4px); border-color: var(--gold-line); }
.hero-feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-feature-info { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px 16px; }
.hero-feature-info strong { font-size: 1.05rem; }
.hero-feature-price { font-family: var(--display); font-weight: 600; color: var(--gold-2); }
.hero-feature-price small { color: var(--muted); font-weight: 500; }
.hero-emblem { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 96px; opacity: .9; }

.about { display: grid; grid-template-columns: 120px 1fr; gap: 32px; align-items: start; padding: 24px 0 8px; }
.about-line { height: 1px; background: var(--gold); margin-top: 16px; }
.about p { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--text-2); max-width: 820px; line-height: 1.6; }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head > p { max-width: 420px; }

/* ---------- Toolbar / filtros ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--text-2); font-size: .875rem; font-weight: 500; transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip.is-active { background: var(--text); color: #111; border-color: var(--text); }
.toolbar-right { display: flex; gap: 10px; flex-wrap: wrap; }
.search, .select { position: relative; display: flex; align-items: center; }
.search .ic { position: absolute; left: 12px; color: var(--muted); width: 16px; height: 16px; pointer-events: none; }
.search input, .select select {
  height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface);
  font-size: .875rem; transition: border-color .2s;
}
.search input { width: 220px; padding: 0 12px 0 36px; }
.search input::placeholder { color: var(--muted); }
.select select { appearance: none; padding: 0 36px 0 14px; cursor: pointer; }
.select::after { content: ''; position: absolute; right: 14px; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); pointer-events: none; }
.search input:focus, .select select:focus { outline: none; border-color: var(--gold-line); }

/* ---------- Tarjetas ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 16 / 10; background: var(--ph, var(--surface-2)); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.card:hover .card-media img { transform: scale(1.035); }
.card-media::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); pointer-events: none; }
.card-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); background: var(--surface-2); }
.card-noimg .ic { width: 32px; height: 32px; }
.card-count { position: absolute; right: 12px; bottom: 10px; z-index: 1; font-size: .72rem; color: rgba(255, 255, 255, .85); letter-spacing: .04em; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.card-code { font-family: var(--display); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card-title { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
.card-title a:hover { color: var(--gold-2); }
.prices { display: flex; align-items: baseline; gap: 18px; margin: 4px 0 8px; flex-wrap: wrap; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price-val { font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: .01em; }
.price-cur { font-size: .72rem; color: var(--muted); letter-spacing: .1em; font-weight: 600; }
.price-alt .price-val { font-size: 1.05rem; color: var(--text-2); }
.card .btn { margin-top: auto; }
.card.is-sold .card-media img { filter: grayscale(1) brightness(.55); }
.card.is-sold .price-val { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.card.is-sold .card-media::before {
  content: 'VENDIDA'; position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%;
  padding: 6px 16px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 6px;
  font-family: var(--display); font-weight: 600; letter-spacing: .3em; font-size: .85rem; color: #fff;
}

.badge {
  position: absolute; left: 12px; top: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px;
  background: rgba(10, 10, 11, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-2); font-size: .72rem; font-weight: 600; letter-spacing: .04em;
}
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { color: var(--ok); }
.badge-warn { color: var(--warn); }
.badge-off { color: #B5B0A7; }
.badge-lg { position: static; height: 30px; padding: 0 12px; font-size: .78rem; }

.empty { text-align: center; color: var(--muted); padding: 48px 0; }
.empty-state { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 64px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty-state.slim { padding: 36px 24px; }
.empty-state img { opacity: .8; margin-bottom: 6px; }

/* ---------- Cómo comprar ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.steps li { background: var(--bg-2); padding: 28px 24px 30px; }
.step-n { display: block; font-family: var(--display); color: var(--gold); font-weight: 600; letter-spacing: .1em; margin-bottom: 22px; }
.steps h3 { font-size: 1.05rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .92rem; }

/* ---------- Métodos de pago ---------- */
.pay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.pay-card { display: flex; flex-direction: column; gap: 18px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pay-head { display: flex; align-items: center; gap: 14px; }
.pay-head h3 { font-size: 1.05rem; }
.pay-head > div { flex: 1; min-width: 0; }
.pay-mono { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-2); font-family: var(--display); font-weight: 600; letter-spacing: .04em; }
.tag { font-family: var(--display); font-size: .7rem; font-weight: 600; letter-spacing: .14em; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text-2); }
.pay-fields { margin: 0; display: grid; gap: 10px; flex: 1; }
.pay-field { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); }
.pay-field dt { font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.pay-field dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 500; }
.pay-field dd > span { min-width: 0; overflow-wrap: anywhere; }
.copy { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text-2); transition: all .2s; }
.copy:hover { border-color: var(--gold-line); color: var(--gold-2); }
.copy.is-done, [data-copy].is-done { color: var(--ok); border-color: rgba(134, 183, 154, .4); }
.copy .ic { width: 16px; height: 16px; }
.pay-warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(212, 154, 92, .08); border: 1px solid rgba(212, 154, 92, .3); color: #E8BE8E; font-size: .85rem; line-height: 1.5; }
.pay-warn .ic { margin-top: 1px; width: 16px; height: 16px; }
.pay-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; color: var(--text-2); font-size: .92rem; white-space: pre-line; }
.pay-note .ic { color: var(--gold); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center; }
.contact h2 { margin-bottom: 14px; }
.contact-card { display: grid; gap: 12px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.contact-line { display: flex; align-items: center; gap: 10px; color: var(--text-2); padding: 8px 0; }
.contact-line:hover { color: var(--gold-2); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.socials a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; color: var(--text-2); transition: all .2s; }
.socials a:hover { border-color: var(--gold-line); color: var(--gold-2); }
.socials .ic { width: 14px; height: 14px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-note { max-width: 420px; margin-top: 16px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; font-size: .9rem; color: var(--text-2); }
.footer-nav a:hover { color: var(--gold-2); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.footer-base .eyebrow-sm { color: var(--muted); }
.float-support {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 14px; border-radius: 999px;
  background: rgba(19, 19, 21, .92); border: 1px solid var(--gold-line); color: var(--gold-2); font-size: .85rem; font-weight: 600;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow); transition: transform .3s var(--ease), background .3s;
}
.float-support:hover { transform: translateY(-2px); background: var(--surface-2); }

.toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 200; translate: -50% 20px; opacity: 0; pointer-events: none;
  padding: 11px 18px; border-radius: 10px; background: var(--text); color: #111; font-size: .88rem; font-weight: 600;
  box-shadow: var(--shadow); transition: opacity .25s, translate .3s var(--ease);
}
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ---------- Página de cuenta ---------- */
.account { padding: 28px 0 40px; }
.crumbs { display: flex; gap: 10px; font-size: .85rem; color: var(--muted); margin-bottom: 22px; overflow: hidden; white-space: nowrap; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 40px; align-items: start; }

.gallery-main { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--ph, var(--surface)); border: 1px solid var(--line); }
.gallery-main .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .45s var(--ease); }
.gallery-main .slide.is-active { opacity: 1; z-index: 1; }
.gallery-main .slide img { width: 100%; height: 100%; object-fit: contain; background: #070708; cursor: zoom-in; }
.gallery-main.is-sold .slide img { filter: grayscale(.85) brightness(.75); }
.gallery-empty { display: grid; place-items: center; align-content: center; gap: 10px; color: var(--muted); }
.gallery-empty .ic { width: 36px; height: 36px; }
.g-nav, .g-zoom, .lb-btn {
  display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(10, 10, 11, .65); color: var(--text);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, border-color .2s, opacity .2s;
}
.g-nav { position: absolute; top: 50%; z-index: 2; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; opacity: 0; }
.gallery-main:hover .g-nav, .g-nav:focus-visible { opacity: 1; }
.g-nav:hover, .g-zoom:hover, .lb-btn:hover { background: rgba(10, 10, 11, .9); border-color: var(--gold-line); }
.g-prev { left: 14px; } .g-next { right: 14px; }
.g-zoom { position: absolute; z-index: 2; right: 14px; bottom: 14px; display: inline-flex; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.g-zoom .ic { width: 16px; height: 16px; }
.g-counter { position: absolute; z-index: 2; left: 14px; bottom: 14px; font-family: var(--display); font-size: .8rem; letter-spacing: .1em; padding: 6px 12px; border-radius: 999px; background: rgba(10, 10, 11, .65); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.thumb { flex: none; width: 104px; aspect-ratio: 16 / 10; padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); opacity: .55; transition: opacity .25s, border-color .25s; scroll-snap-align: start; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: .85; }
.thumb.is-active { opacity: 1; border-color: var(--gold); }

.buy-panel { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.buy-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.account-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.buy-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.buy-prices > div { display: grid; gap: 2px; padding: 16px; background: var(--bg-2); }
.buy-prices strong { font-family: var(--display); font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
.buy-prices .muted { font-size: .75rem; letter-spacing: .1em; font-weight: 600; }
.buy-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy-secondary .btn { padding: 0 12px; }
.assurances { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.assurances li { display: flex; gap: 12px; font-size: .88rem; color: var(--text-2); }
.assurances .ic { color: var(--gold); margin-top: 2px; }

.account-details { display: grid; gap: 48px; margin-top: 56px; max-width: 820px; }
.detail-block .h3 { margin-bottom: 20px; }
.prose { display: grid; gap: 14px; color: var(--text-2); font-size: 1.02rem; line-height: 1.75; }
.prose p { white-space: pre-line; }
.videos { display: grid; gap: 20px; }
.video { margin: 0; display: grid; gap: 8px; }
.video video { width: 100%; max-height: 72vh; border-radius: var(--radius); background: #000; border: 1px solid var(--line); }
.related { padding-bottom: 20px; }

/* ---------- Visor (lightbox) ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(5, 5, 6, .96); display: grid; animation: fade .25s var(--ease); }
.lightbox[hidden] { display: none; }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: zoom-in; }
.lb-stage.is-zoomed { cursor: grab; }
.lb-stage.is-dragging { cursor: grabbing; }
.lb-stage img { max-width: 94vw; max-height: 86vh; object-fit: contain; user-select: none; -webkit-user-select: none; transition: transform .3s var(--ease); will-change: transform; }
.lb-stage.is-dragging img { transition: none; }
.lb-btn { position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; }
.lb-close { top: calc(16px + env(safe-area-inset-top)); right: 16px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }
.lb-bar { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 18px; font-size: .82rem; color: var(--muted); pointer-events: none; }
.lb-bar [data-lb-count] { font-family: var(--display); letter-spacing: .1em; color: var(--text); }
@keyframes fade { from { opacity: 0; } }

/* ---------- Modal de compra ---------- */
.modal { width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px); }
.modal[open] { animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.modal-inner { display: flex; flex-direction: column; max-height: inherit; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 24px 0; }
.modal-head h2 { font-size: 1.3rem; margin-top: 6px; }
.modal-steps { list-style: none; display: flex; gap: 6px; margin: 20px 24px 0; padding: 0; counter-reset: s; }
.modal-steps li { flex: 1; font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; padding-top: 10px; border-top: 2px solid var(--line-2); transition: color .3s, border-color .3s; }
.modal-steps li.is-active, .modal-steps li.is-done { color: var(--text); border-color: var(--gold); }
.modal-body { display: grid; gap: 16px; padding: 22px 24px 26px; overflow-y: auto; }
.method-list { display: grid; gap: 10px; }
.method { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); text-align: left; transition: border-color .2s, background .2s; }
.method:hover { border-color: var(--gold-line); background: var(--gold-soft); }
.method small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.method-amount { font-family: var(--display); font-weight: 600; white-space: nowrap; }
.method-amount small { display: inline; }
.link-back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--muted); font-size: .85rem; }
.link-back:hover { color: var(--text); }
.link-back .ic { width: 16px; height: 16px; }
.amount-box { display: grid; gap: 2px; padding: 18px; border-radius: 12px; background: var(--gold-soft); border: 1px solid var(--gold-line); }
.amount-box strong { font-family: var(--display); font-size: 1.7rem; font-weight: 600; color: var(--gold-2); }
.method-detail { display: grid; gap: 12px; }
.confirm-box { display: flex; gap: 14px; padding: 18px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); font-size: .92rem; }
.confirm-box .ic { color: var(--gold); }

.notfound { min-height: 60vh; display: grid; align-content: center; justify-items: start; gap: 16px; padding: 80px 0; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 24px; background: rgba(10, 10, 11, .98); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav > a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 18px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 480px; }
  .account-grid { grid-template-columns: 1fr; gap: 24px; }
  .buy-panel { position: static; }
  .g-nav { opacity: 1; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .wrap { width: calc(100% - 32px); }
  .brand img { height: 22px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; justify-content: space-between; }
  .hero-stats dd { font-size: 1.1rem; }
  .hero-actions .btn { flex: 1; }
  .about { grid-template-columns: 1fr; gap: 16px; }
  .about-line { width: 48px; }
  .toolbar, .toolbar-right { flex-direction: column; align-items: stretch; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .chip { flex: none; }
  .search input { width: 100%; }
  .select select { width: 100%; }
  .pay-grid { grid-template-columns: 1fr; }
  .buy-panel { padding: 22px; }
  .buy-prices strong { font-size: 1.3rem; }
  .gallery-main { border-radius: 12px; margin-inline: -4px; }
  .thumb { width: 84px; }
  .g-zoom span { display: none; }
  .g-zoom { padding: 0; width: 38px; justify-content: center; }
  .lb-prev, .lb-next { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); translate: none; }
  .lb-hint { display: none; }
  .float-support span { display: none; }
  .float-support { padding: 0; width: 50px; height: 50px; justify-content: center; }
  .modal { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; border-bottom: 0; }
  .contact-card { padding: 22px; }
}

/* ==========================================================================
   Actualización v2 — nuevos elementos (mismo sistema visual)
   ========================================================================== */
.card-meta { margin-top: -4px; font-size: .8rem; color: var(--muted); letter-spacing: .02em; }

.specs { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 0; }
.specs div { display: flex; align-items: baseline; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); font-size: .85rem; }
.specs dt { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.specs dd { margin: 0; font-weight: 600; }

/* Reproductor de YouTube adaptable */
.yt { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.yt.yt-short { aspect-ratio: 9 / 16; max-width: 380px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption a { color: var(--gold-2); }

/* Contacto: varios WhatsApp */
.btn-wa { justify-content: flex-start; height: auto; min-height: 52px; padding: 10px 18px; flex-wrap: wrap; row-gap: 0; }
.btn-wa span { flex: 1; text-align: left; }
.btn-wa small { font-family: var(--display); font-weight: 500; font-size: .8rem; opacity: .75; letter-spacing: .04em; }

/* Formulario de solicitud de compra */
.buy-form { display: grid; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.buy-summary { margin: 0; display: grid; gap: 1px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); }
.buy-summary div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; background: var(--bg-2); font-size: .9rem; }
.buy-summary dt { color: var(--muted); }
.buy-summary dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.buy-summary code { font-size: .8rem; }
.fld { display: grid; gap: 6px; }
.fld > span:first-child { font-size: .82rem; font-weight: 600; color: var(--text-2); }
.fld input:not([type=file]) { height: 48px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); font-size: 16px; transition: border-color .2s; }
.fld input:not([type=file]):focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.fld input::placeholder { color: var(--muted); }
.fld em { font-style: normal; font-size: .8rem; color: var(--danger); }
.fld em:empty { display: none; }
.fld.has-error input, .fld.has-error .file-drop { border-color: var(--danger); }
.file-drop { position: relative; display: grid; justify-items: center; gap: 4px; padding: 18px 14px; border-radius: 12px; border: 1.5px dashed var(--line-2); background: var(--bg-2); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.file-drop:hover { border-color: var(--gold-line); }
.file-drop.has-file { border-style: solid; border-color: var(--gold-line); background: var(--gold-soft); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop .ic { color: var(--gold); }
.file-drop [data-file-label] { font-weight: 600; font-size: .9rem; overflow-wrap: anywhere; }
.form-error { padding: 10px 14px; border-radius: 10px; background: rgba(217, 119, 108, .1); border: 1px solid rgba(217, 119, 108, .35); color: #EBA59C; font-size: .88rem; }
.link-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.link-wa:hover { color: var(--gold-2); }
.link-wa .ic { width: 16px; height: 16px; }

/* Confirmación / estado de la solicitud */
.done { display: grid; gap: 16px; justify-items: start; }
.done-badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(212, 154, 92, .4); background: rgba(212, 154, 92, .1); color: var(--warn); font-weight: 700; font-size: .85rem; }
.done-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.done-badge.done-ok { color: var(--ok); border-color: rgba(134, 183, 154, .4); background: rgba(134, 183, 154, .1); }
.done-badge.done-ok i, .done-badge.done-off i { animation: none; }
.done-badge.done-off { color: #B5B0A7; border-color: var(--line-2); background: var(--surface-2); }
@keyframes pulse { 50% { opacity: .35; } }
.done-text { color: var(--text-2); line-height: 1.65; }
.done-id { display: grid; gap: 6px; width: 100%; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.done-id code, .buy-summary code { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--gold-2); word-break: break-all; font-size: .95rem; }
.req-status { padding: 56px 0 72px; display: grid; gap: 14px; justify-items: start; max-width: 620px; }
.req-card { width: 100%; display: grid; gap: 18px; justify-items: start; padding: 26px; margin: 10px 0 8px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.req-card .buy-summary, .req-card .btn { width: 100%; }
