/* Tienda SlyceCraft — estilo voxel sobre violeta noche liso */
:root {
  --fondo: #160f2a;
  --panel: #1d1f26;
  --borde: #0c0d10;
  --texto: #ecedf2;
  --suave: #c3c6d1;
  --tenue: #a9adbd;
  --oro: #ffd86b;
  --verde: #3ccf6e;
  --pixel: 'Pixelify Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 16px/1.5 Inter, system-ui, sans-serif; }
a { color: var(--oro); }
a:hover { color: #ffe9a3; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }
.oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cont { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---------- Botones y paneles ---------- */
.btn {
  font-family: var(--pixel); font-weight: 700; letter-spacing: .5px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 3px solid var(--borde); padding: 11px 18px; min-height: 44px; text-decoration: none; color: #0c0d10;
  box-shadow: inset 3px 3px 0 rgba(255,255,255,.35), inset -3px -4px 0 rgba(0,0,0,.35), 0 4px 0 var(--borde);
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(2px); }
.btn:disabled { filter: grayscale(.8) brightness(.7); cursor: not-allowed; }
.btn-verde { background: var(--verde); color: #0b2412; }
.btn-oro { background: var(--oro); color: #3a2306; }
.btn-gris { background: #2a2c33; color: var(--suave); }
.btn-mp { background: #009ee3; color: #fff; }
.btn-paypal { background: #ffc439; color: #111; }
.btn-chico { padding: 7px 12px; font-size: 14px; }
.panel { background: var(--panel); border: 3px solid var(--borde); box-shadow: inset 3px 3px 0 #30333f, inset -3px -3px 0 #121318; }
.losa { background: #4a4d57; border: 3px solid #17181c; box-shadow: inset 3px 3px 0 rgba(255,255,255,.12), inset -3px -3px 0 rgba(0,0,0,.4);
  background-image: linear-gradient(90deg, rgba(0,0,0,.35) 3px, transparent 3px), linear-gradient(rgba(0,0,0,.35) 3px, transparent 3px); background-size: 56px 28px; }
.ranura { background: #6f6f78; border-top: 3px solid #373737; border-left: 3px solid #373737; border-right: 3px solid #fff; border-bottom: 3px solid #fff; }
.titulo-3d {
  font-family: var(--pixel); font-weight: 700; color: var(--oro); -webkit-text-stroke: 2px #3a2306;
  text-shadow: 0 3px 0 #e0a12a, 0 6px 0 #9b6414, 0 9px 0 #4d2f08, 0 14px 22px rgba(0,0,0,.7); letter-spacing: 2px; text-transform: uppercase; margin: 0;
}
.titulo-piedra { font-family: var(--pixel); font-weight: 700; color: #e6e6ea; -webkit-text-stroke: 2px #15161a;
  text-shadow: 0 3px 0 #9a9ca6, 0 6px 0 #55575f, 0 10px 18px rgba(0,0,0,.7); letter-spacing: 2px; text-transform: uppercase; }

/* ---------- Cabecera ---------- */
.cabecera { position: relative; z-index: 5; background: #14151a; border-bottom: 4px solid var(--borde); box-shadow: 0 6px 0 #3c8527; }
.cabecera .cont { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--texto); }
.logo img { width: 58px; height: auto; filter: drop-shadow(0 0 10px rgba(255,216,107,.45)); }
.logo-texto { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-texto .titulo-3d { font-size: 30px; -webkit-text-stroke: 1.5px #3a2306; }
.cinta { margin-top: 8px; font-family: var(--pixel); font-size: 11px; letter-spacing: 3px; color: #fff; background: #6b2fb3; border: 2px solid #2a0f4d; padding: 3px 10px; }
.menu { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.menu a { font-family: var(--pixel); font-weight: 700; color: var(--texto); text-decoration: none; padding: 8px 6px; }
.menu a:hover { color: var(--oro); }
.cab-der { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn-carrito { background: #2a2c33; color: var(--oro); border-color: #8a6a1c; }

/* ---------- Portada ---------- */
.portada { position: relative; height: 600px; overflow: hidden; border-bottom: 4px solid var(--borde);
  background: #1f1840 url("/img/hero-fondo.webp") center bottom / cover no-repeat; }
.portada::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,8,28,.72), rgba(12,8,28,.35) 45%, rgba(12,8,28,0) 70%); }
.portada .cont { position: relative; height: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; }
.portada-texto { flex: 1 1 420px; max-width: 520px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.portada-texto h1 { font-size: 84px; line-height: .95; }
.portada-texto p { margin: 0; font-size: 20px; font-weight: 600; color: #fff; text-shadow: 0 2px 0 #000, 0 0 12px rgba(0,0,0,.8); }
.portada-texto .btn { font-size: 22px; padding: 16px 30px; box-shadow: inset 3px 3px 0 rgba(255,255,255,.45), inset -3px -4px 0 rgba(0,0,0,.3), 0 5px 0 #0b2412, 0 0 28px rgba(60,207,110,.55); }
.portada-heroes { flex: 1 1 460px; align-self: flex-end; display: flex; justify-content: center; }
.portada-heroes img { width: 620px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.6)) drop-shadow(0 0 24px rgba(255,216,107,.25)); animation: flotar 5s ease-in-out infinite; }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .portada-heroes img { animation: none; } html { scroll-behavior: auto; } }

.datos { position: relative; z-index: 2; max-width: 1080px; margin: -48px auto 0; padding: 0 24px; }
.datos .losa { padding: 16px 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; box-shadow: inset 3px 3px 0 rgba(255,255,255,.12), inset -3px -3px 0 rgba(0,0,0,.4), 0 10px 24px rgba(0,0,0,.55); }
.dato { display: flex; flex-direction: column; gap: 3px; }
.dato-titulo { font-family: var(--pixel); font-size: 13px; letter-spacing: 2px; color: #e6e7ec; }
.dato-valor { font-family: var(--pixel); font-size: 26px; }
.dato-valor b { color: var(--verde); }
.ip { background: #14151a; border: 2px solid var(--borde); color: #fff; font-size: 18px; font-weight: 700; padding: 6px 12px; cursor: pointer; min-height: 44px; }
.en-linea { display: inline-flex; align-items: center; gap: 8px; background: #102a18; border: 2px solid var(--verde); color: #b8f5cc; padding: 8px 12px; font-size: 14px; font-weight: 600; }
.en-linea::before { content: ""; width: 10px; height: 10px; background: var(--verde); box-shadow: 0 0 8px var(--verde); }

/* ---------- Comprador ---------- */
.seccion { padding: 64px 0 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.seccion > p { margin: 0 0 18px; font-size: 18px; color: #d4d6de; text-align: center; }
.seccion h2.titulo-3d { font-size: 52px; text-align: center; }
.comprador { width: 100%; max-width: 760px; padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; margin-bottom: 10px; }
.campo { display: flex; flex-direction: column; gap: 6px; flex: 1 1 260px; }
.campo label, .campo .etiqueta { font-weight: 700; font-size: 14px; }
.campo input, .campo select, .campo textarea { background: #0f1014; color: var(--texto); border: 3px solid var(--borde); box-shadow: inset 2px 2px 0 #000; padding: 11px 13px; }
.campo small { color: var(--tenue); font-size: 13px; }
.monedas { display: flex; }
.monedas .btn { box-shadow: inset 3px 3px 0 rgba(255,255,255,.25), inset -3px -3px 0 rgba(0,0,0,.35); }
.monedas .btn[aria-pressed="true"] { background: var(--oro); color: #3a2306; }
.monedas .btn[aria-pressed="false"] { background: #2a2c33; color: #d4d6de; }

/* ---------- Rangos ---------- */
.grilla-rangos { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; margin-top: 18px; }
.rango { display: flex; flex-direction: column; background: #16171c; border: 4px solid var(--c); min-height: 440px;
  box-shadow: inset 0 0 0 3px var(--borde), 0 0 0 3px var(--borde), 0 0 34px color-mix(in srgb, var(--c) 60%, transparent); }
.rango-cab { position: relative; height: 200px; overflow: hidden; border-bottom: 4px solid var(--borde); background: var(--o);
  background-image: linear-gradient(90deg, rgba(0,0,0,.22) 3px, transparent 3px), linear-gradient(rgba(0,0,0,.22) 3px, transparent 3px); background-size: 40px 40px; }
.rango-cab h3 { position: absolute; left: 20px; top: 64px; z-index: 1; margin: 0; font-family: var(--pixel); font-weight: 700; font-size: 48px; text-transform: uppercase;
  color: var(--l); -webkit-text-stroke: 2px var(--borde); text-shadow: 0 4px 0 var(--o), 0 7px 0 var(--borde), 0 0 18px var(--c); }
.rango-cab img { position: absolute; right: -6px; bottom: -30px; width: 200px; filter: drop-shadow(0 0 16px rgba(0,0,0,.5)); }
.rango-cuerpo { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.rango-cuerpo p { margin: 0; font-size: 15px; color: var(--suave); }
.rango-pie { margin-top: auto; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.rango .btn { background: var(--c); width: 100%; font-size: 19px; }
.rango-vip { --c: #3fbf4a; --l: #7be07f; --o: #237a2c; }
.rango-elite { --c: #8a4ad6; --l: #b98aff; --o: #5a2696; }
.rango-platinum { --c: #f5c542; --l: #fff0a8; --o: #b07a1b; }
.precio { background: #0f1014; border: 2px solid #000; padding: 7px 20px; font-family: var(--pixel); font-size: 24px; }

/* ---------- Categorías, oro y monturas ---------- */
.categorias { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; padding-top: 20px; }
.categorias a { display: flex; align-items: center; gap: 18px; padding: 18px 20px; text-decoration: none; color: #fff; }
.categorias img { width: 92px; flex-shrink: 0; }
.categorias .titulo-piedra { font-size: 26px; display: block; }
.grilla-oro { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 18px; }
.oro { padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; border-color: #5a4210;
  box-shadow: inset 3px 3px 0 #30333f, inset -3px -3px 0 #121318, 0 0 26px rgba(245,197,66,.25); }
.oro img { height: 150px; object-fit: contain; filter: drop-shadow(0 0 16px rgba(245,197,66,.5)); }
.oro h3 { font-size: 36px; }
.oro .btn { width: 100%; }
.cantidad { display: flex; align-items: center; gap: 8px; }
.cantidad button { width: 40px; height: 40px; background: #2a2c33; color: var(--texto); border: 3px solid var(--borde); cursor: pointer; font-weight: 700; }
.cantidad output { min-width: 32px; text-align: center; font-family: var(--pixel); font-size: 20px; }
.grilla-monturas { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 18px; }
.montura { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.montura .ranura { height: 140px; display: flex; align-items: center; justify-content: center; }
.montura .ranura img { max-height: 126px; max-width: 92%; filter: drop-shadow(0 6px 8px rgba(0,0,0,.45)); }
.montura h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; min-height: 40px; }
.montura-pie { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.montura-pie span { font-family: var(--pixel); color: var(--oro); }
.vacio { color: var(--tenue); text-align: center; padding: 20px; }

/* ---------- Carrito ---------- */
.carrito { position: fixed; z-index: 20; top: 90px; right: max(16px, calc(50% - 624px)); width: min(380px, calc(100% - 32px));
  max-height: calc(100vh - 110px); overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: inset 3px 3px 0 #30333f, inset -3px -3px 0 #121318, 0 18px 40px rgba(0,0,0,.6); }
.carrito h2 { margin: 0; font-size: 24px; }
.carrito ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.carrito li { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #14151a; border: 2px solid var(--borde); padding: 8px 10px; }
.carrito li span { display: flex; flex-direction: column; }
.carrito li small { color: var(--tenue); }
.quitar { background: none; border: 0; color: #ff9a9a; cursor: pointer; min-width: 44px; min-height: 44px; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 3px solid var(--borde); padding-top: 12px; }
.total strong { font-family: var(--pixel); font-size: 22px; color: var(--oro); }
.aviso { margin: 0; font-size: 13px; color: var(--tenue); }
.error { margin: 0; color: #ffb3b3; font-weight: 600; }
.cerrar { position: absolute; top: 10px; right: 10px; background: none; border: 0; color: var(--tenue); font-size: 22px; cursor: pointer; min-width: 44px; min-height: 44px; }

.pie { background: #0f1014; border-top: 4px solid var(--borde); box-shadow: 0 -6px 0 #3c8527; margin-top: 56px; }
.pie .cont { padding-top: 26px; padding-bottom: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--tenue); }

/* ---------- Página de pedido ---------- */
.pedido { max-width: 640px; margin: 80px auto; padding: 36px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.pedido img { width: 150px; margin-top: -110px; filter: drop-shadow(0 0 22px rgba(255,216,107,.55)); }
.pedido h1 { font-family: var(--pixel); font-size: 36px; margin: 0; line-height: 1.1; }
.estado-tag { font-family: var(--pixel); font-size: 14px; letter-spacing: 3px; }
.estado-pagado { color: var(--verde); }
.estado-pendiente { color: var(--oro); }
.estado-otro { color: #ff9a9a; }
.lista-items { margin: 0; padding: 14px 18px; list-style: none; width: 100%; background: #1a1b22; border: 2px solid var(--borde); display: flex; flex-direction: column; gap: 8px; text-align: left; }
.lista-items li { display: flex; justify-content: space-between; gap: 12px; }
.ok { color: var(--verde); }
.espera { color: var(--oro); }

@media (max-width: 720px) {
  .portada { height: 640px; }
  .portada-texto h1 { font-size: 52px; }
  .portada-heroes img { width: 340px; }
  .seccion h2.titulo-3d { font-size: 38px; }
  .cab-der { margin-left: 0; }
}
