/* NYMUX Store — tema oscuro, morado y detalles luminosos. Sin fuentes ni recursos externos. */
:root {
  --bg: #07050d;
  --bg-2: #0d0a18;
  --surface: #120e22;
  --surface-2: #181231;
  --border: #2a2148;
  --text: #ece8f8;
  --muted: #9a92b8;
  --primary: #8b5cf6;
  --primary-2: #a78bfa;
  --glow: #c084fc;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 14px;
  --accent: var(--primary);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(1200px 600px at 50% -10%, rgba(139, 92, 246, .18), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--primary-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--glow); }
code { background: var(--surface-2); padding: .1em .4em; border-radius: 6px; font-size: .92em; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2rem); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.section { padding: 3rem 0; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.5rem; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.lead { font-size: 1.125rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; color: var(--glow); font-weight: 700; margin-bottom: .75rem; }

/* Banner de pruebas */
.banner-sandbox { background: #3b2a00; color: var(--warn); text-align: center; font-size: .85rem; padding: .4rem 1rem; border-bottom: 1px solid #5c4300; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 5, 13, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { display: flex; align-items: baseline; gap: .45rem; text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: .08em; }
.brand-mark { color: var(--glow); text-shadow: 0 0 14px var(--primary); }
.brand-name { font-size: 1.25rem; }
.brand-sub { font-size: .7rem; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a { color: var(--muted); text-decoration: none; padding: .5rem .85rem; border-radius: 10px; transition: color .2s, background .2s; }
.main-nav a:hover { color: var(--text); background: var(--surface); }
.cart-link { color: var(--text) !important; background: var(--surface); border: 1px solid var(--border); }
.cart-count { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; margin-left: .4rem; padding: 0 .3rem; border-radius: 999px; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; }
.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--text); content: ""; }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -6px; left: 0; }
.nav-toggle-bar::after { top: 6px; left: 0; }

/* Mensajes */
.messages { margin-top: 1rem; display: grid; gap: .5rem; }
.message { padding: .8rem 1rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.message-success { border-color: #14654a; background: #0b2a21; color: #b6f3de; }
.message-info { border-color: #3b3377; }
.message-warning { border-color: #6b5200; background: #261d00; color: #fde68a; }
.message-error { border-color: #7a2b2b; background: #2a0f0f; color: #fecaca; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1.2rem; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s; }
.btn-primary { background: linear-gradient(135deg, var(--primary), #6d28d9); color: #fff; box-shadow: 0 0 0 rgba(139, 92, 246, 0); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(139, 92, 246, .45); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { color: var(--text); background: var(--surface); border-color: var(--primary); }
.btn-link { background: none; border: 0; color: var(--bad); padding: .4rem; cursor: pointer; font: inherit; text-decoration: underline; }
.btn-disabled { background: var(--surface); color: var(--muted); border-color: var(--border); cursor: not-allowed; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { position: relative; padding: clamp(4rem, 12vw, 8rem) 0 4rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background:
  radial-gradient(600px 300px at 20% 30%, rgba(139, 92, 246, .22), transparent 70%),
  radial-gradient(500px 300px at 80% 60%, rgba(192, 132, 252, .14), transparent 70%); animation: drift 12s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(0, -12px, 0) scale(1.03); } }
.hero-inner { position: relative; max-width: 780px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.glow-text { color: var(--glow); text-shadow: 0 0 28px rgba(192, 132, 252, .55); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.server-ip { margin-top: 1.5rem; color: var(--muted); }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.step-num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(139, 92, 246, .2); color: var(--glow); font-weight: 800; margin-bottom: .6rem; }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Colores por nivel de rango */
.tier-1 { --accent: #8b9bd9; }
.tier-2 { --accent: #7c6df0; }
.tier-3 { --accent: #a855f7; }
.tier-4 { --accent: #e0509a; }
.tier-5 { --accent: #f97362; }
.tier-6 { --accent: #fbbf24; }

/* Tarjetas de rango */
.rank-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.rank-card { position: relative; display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.rank-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.rank-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 40px color-mix(in srgb, var(--accent) 28%, transparent); }
.rank-card-glow { position: absolute; top: -60px; right: -60px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%); pointer-events: none; }
.rank-card-head { position: relative; }
.rank-icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; font-size: 1.5rem; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); text-shadow: 0 0 14px var(--accent); }
.rank-icon-lg { width: 4rem; height: 4rem; font-size: 2rem; }
.rank-name { font-size: 1.4rem; margin: .6rem 0 .1rem; }
.rank-tagline { color: var(--muted); font-size: .9rem; margin: 0; }
.rank-price { margin: 0; }
.price-amount { font-size: 2rem; font-weight: 800; color: #fff; }
.price-currency { color: var(--muted); font-weight: 600; }
.rank-benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; flex: 1; }
.rank-benefits li { position: relative; padding-left: 1.5rem; font-size: .95rem; }
.rank-benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.rank-benefits-lg li { font-size: 1.05rem; }
.rank-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: .5rem; }
.rank-actions form { display: contents; }
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; margin: 0; width: fit-content; }
.badge-warn { background: #2a2100; color: var(--warn); border: 1px solid #5c4300; }

/* Detalle */
.breadcrumb { color: var(--muted); margin-bottom: 1.5rem; font-size: .9rem; }
.detail-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .detail-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.detail-desc { color: var(--muted); font-size: 1.05rem; }
.detail-buy { position: sticky; top: 90px; display: grid; gap: .75rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 18%, transparent); }
.trust-list { list-style: none; padding: 0; margin: .5rem 0 0; color: var(--muted); font-size: .9rem; display: grid; gap: .3rem; }
.trust-list li::before { content: "◆ "; color: var(--accent); }

/* Carrito */
.cart-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .75rem; }
.cart-item { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1rem; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.cart-item-name { margin: 0; font-weight: 700; }
.cart-item-info p { margin: 0; }
.cart-item-price { margin: 0; font-weight: 700; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.3rem; padding: 1rem; border-top: 1px solid var(--border); }
.cart-actions { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.empty-state { text-align: center; padding: 3rem 1rem; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }

/* Checkout */
.checkout-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .checkout-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.form { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field input[type="text"], .field input[type="email"] { width: 100%; padding: .8rem 1rem; font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139, 92, 246, .3); }
.field-help { color: var(--muted); font-size: .85rem; margin: .3rem 0 0; }
.field-error { color: var(--bad); font-size: .9rem; margin: .3rem 0 0; }
.check-label { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400 !important; font-size: .95rem; }
.check-label input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--primary); flex-shrink: 0; }
.notice { padding: .8rem 1rem; background: var(--surface); border-left: 3px solid var(--primary); border-radius: 8px; margin: 0; }
.summary { padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); position: sticky; top: 90px; }
.summary-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.summary-list li, .summary-total { display: flex; justify-content: space-between; gap: 1rem; }
.summary-total { font-size: 1.25rem; padding-top: .8rem; border-top: 1px solid var(--border); margin-bottom: .8rem; }

/* Estado del pedido */
.status-card { padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); margin-bottom: 1.5rem; text-align: center; }
.status-ok { border-color: #14654a; box-shadow: 0 0 40px rgba(52, 211, 153, .12); }
.status-warn { border-color: #6b5200; }
.status-bad { border-color: #7a2b2b; }
.order-box { padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1.5rem; }
.order-dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 0 0 1rem; }
.order-dl dt { color: var(--muted); }
.order-dl dd { margin: 0; }

/* Páginas de texto */
.prose h2 { margin-top: 2rem; font-size: 1.25rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: .7rem; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: .7rem 0 0; color: var(--muted); }
.contact-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1.5rem 0; }
.contact-card { display: block; padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
a.contact-card:hover { border-color: var(--primary); transform: translateY(-2px); color: var(--text); }
.contact-card h2 { margin: 0 0 .3rem; font-size: 1.1rem; }
.contact-card p { margin: 0; color: var(--muted); }
.notice-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 3rem; }

/* Pie */
.site-footer { margin-top: 3rem; border-top: 1px solid var(--border); background: var(--bg-2); padding: 2.5rem 0 1.5rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-brand { font-weight: 800; letter-spacing: .08em; font-size: 1.1rem; }
.footer-title { font-weight: 700; margin-bottom: .5rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-legal { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .8rem; }

/* Animación de entrada discreta */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Móvil */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: .75rem 1rem 1rem; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: .8rem 1rem; }
  .cart-item { grid-template-columns: auto 1fr; }
  .cart-item-price, .cart-item form { grid-column: 2; }
  .order-dl { grid-template-columns: 1fr; }
  .order-dl dd { margin-bottom: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Cupones */
.summary-line { display: flex; justify-content: space-between; gap: 1rem; margin: .4rem 0; color: var(--muted, #b7b0cc); }
.summary-discount { color: #34d399; }
.coupon-form { margin: .8rem 0; }
.coupon-row { display: flex; gap: .5rem; margin-top: .35rem; }
.coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; }
