/* Tienda Templo RP · identidad: negro, rojo neón y plata cromada (logo del servidor) */
:root {
  --bg: #07060a;
  --bg-2: #0e0b10;
  --card: #131017;
  --card-2: #1a1520;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f1eef2;
  --muted: rgba(241, 238, 242, .6);
  --red: #ff2a3a;
  --red-2: #c40c1c;
  --red-glow: rgba(255, 30, 50, .45);
  --silver-1: #ffffff;
  --silver-2: #c9c9cf;
  --silver-3: #77777f;
  --r: 16px;
  --display: 'Saira Condensed', 'Arial Narrow', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { background: var(--bg); color: var(--text); font: 16px/1.6 'Inter', system-ui, sans-serif; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
.hidden { display: none !important; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }

/* Texto cromado y rojo (como el logo) */
.chrome { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .5px; line-height: .95;
  background: linear-gradient(180deg, var(--silver-1) 0%, var(--silver-2) 45%, var(--silver-3) 52%, #e9e9ee 70%, #9a9aa2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6)) drop-shadow(0 0 22px rgba(255, 30, 50, .18)); }
.chrome .red { background: linear-gradient(180deg, #ff6b75, var(--red) 55%, var(--red-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-family: var(--display); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--red); font-size: 14px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px; font-weight: 700;
  font-size: 15px; letter-spacing: .3px; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn.lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.primary { background: linear-gradient(180deg, #ff4250, var(--red-2)); color: #fff; box-shadow: 0 8px 28px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.primary:hover { box-shadow: 0 10px 36px rgba(255, 30, 50, .65), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn.ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); }
.btn.ghost:hover { border-color: rgba(255, 42, 58, .6); }
.btn.discord { background: #5865f2; color: #fff; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }

/* Cabecera */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; gap: 24px; height: 72px; padding: 0 max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, rgba(7, 6, 10, .95), rgba(7, 6, 10, .75)); border-bottom: 1px solid var(--line); }
.nav-logo img { height: 50px; width: auto; filter: drop-shadow(0 0 12px rgba(255, 30, 50, .35)); }
.nav-links { display: flex; gap: 28px; flex: 1; justify-content: center; }
.nav-links a { font-family: var(--display); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--silver-3); }
.logged .dot { background: #34d17a; box-shadow: 0 0 8px #34d17a; }
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 42, 58, .1); border: 1px solid rgba(255, 42, 58, .35); }
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); font-size: 11px;
  font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 10px var(--red-glow); }
.cart-count.zero { display: none; }
.menu-btn { display: none; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; }
.menu-btn span { height: 2px; background: #fff; border-radius: 2px; }

/* Portada */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 110px 16px 80px; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: -20px; background: url('../assets/banner.webp') center / cover no-repeat; filter: blur(5px) saturate(1.15) brightness(.75); }
.hero-bg::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(7, 6, 10, .55), rgba(7, 6, 10, .88) 60%, var(--bg) 100%), linear-gradient(180deg, rgba(7, 6, 10, .3), var(--bg) 96%); }
.hero-inner { position: relative; max-width: 820px; }
.hero-crest { width: clamp(170px, 24vw, 280px); height: auto; margin: 0 auto 10px; filter: drop-shadow(0 0 40px rgba(255, 30, 50, .55)); animation: float 5s ease-in-out infinite; }
.hero h1 { font-size: clamp(46px, 8vw, 96px); margin: 8px 0 18px; }
.lead { color: rgba(241, 238, 242, .8); font-size: clamp(16px, 2vw, 19px); max-width: 640px; margin: 0 auto; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--red); animation: scroll 1.8s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Secciones */
.section { padding: 100px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(38px, 5vw, 60px); margin-top: 6px; }
.section-head .sub { color: var(--muted); max-width: 620px; margin: 14px auto 0; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 26px 22px; border-radius: var(--r); background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.feature:hover { border-color: rgba(255, 42, 58, .45); transform: translateY(-3px); }
.f-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: linear-gradient(160deg, var(--red), var(--red-2)); box-shadow: 0 8px 22px var(--red-glow); }
.f-ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-family: var(--display); font-size: 24px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.feature p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

/* Tienda */
.store { background: radial-gradient(900px 400px at 50% 0%, rgba(255, 30, 50, .1), transparent 70%), var(--bg-2); }
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.tab { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.tab.on { background: linear-gradient(180deg, #ff4250, var(--red-2)); color: #fff; border-color: transparent; box-shadow: 0 6px 20px var(--red-glow); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, transform .2s, box-shadow .2s; }
.product:hover { border-color: rgba(255, 42, 58, .55); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 42, 58, .15); }
.p-img { aspect-ratio: 16 / 10; background: radial-gradient(circle at 50% 40%, #3a0b12, #120a0e 70%); display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.p-img img { width: 100%; height: 100%; object-fit: cover; }
.p-img img.emblem { width: 42%; height: auto; object-fit: contain; filter: drop-shadow(0 0 18px rgba(255, 30, 50, .5)); }
.p-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-body h3 { font-family: var(--display); font-size: 24px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; line-height: 1.05; cursor: pointer; }
.p-body p { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.price { font-family: var(--display); font-size: 28px; font-weight: 900; color: #fff; text-shadow: 0 0 16px rgba(255, 42, 58, .5); }
.price small { font-size: 15px; color: var(--muted); text-shadow: none; }
.in-cart { color: #34d17a; font-weight: 700; font-size: 13px; }
.loading, .empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 16px; }
.loading span { display: block; width: 34px; height: 34px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--red); animation: spin 1s linear infinite; }
.empty img { width: 110px; margin: 0 auto 16px; opacity: .85; filter: drop-shadow(0 0 22px rgba(255, 30, 50, .45)); }
.empty b { display: block; font-family: var(--display); font-size: 30px; text-transform: uppercase; color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Cómo funciona */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 28px 22px 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.steps .n { position: absolute; top: -18px; left: 22px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display);
  font-weight: 900; font-size: 22px; background: linear-gradient(160deg, var(--red), var(--red-2)); box-shadow: 0 6px 18px var(--red-glow); }
.steps h3 { font-family: var(--display); font-size: 23px; text-transform: uppercase; margin-top: 8px; }
.steps p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.join { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; padding: 26px 28px; border-radius: var(--r);
  background: linear-gradient(110deg, rgba(255, 30, 50, .16), rgba(255, 30, 50, .03) 60%), var(--card); border: 1px solid rgba(255, 42, 58, .3); }
.join h3 { font-family: var(--display); font-size: 26px; text-transform: uppercase; }
.join p { color: var(--muted); }

/* Preguntas */
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: 10px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(255, 42, 58, .4); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--red); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 22px 20px; color: var(--muted); }

/* Pie */
.footer { border-top: 1px solid var(--line); padding: 40px 0; background: #050407; }
.foot { display: grid; grid-template-columns: auto auto 1fr; gap: 18px; align-items: center; }
.foot b { display: block; font-family: var(--display); font-size: 22px; text-transform: uppercase; }
.foot span { color: var(--muted); font-size: 14px; }
.foot p { color: var(--muted); font-size: 13px; text-align: right; }
.foot a { color: #fff; text-decoration: underline; }

/* Carrito */
.drawer-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 50; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 51; width: min(420px, 100%); display: flex; flex-direction: column; background: var(--bg-2);
  border-left: 1px solid rgba(255, 42, 58, .3); transform: translateX(100%); transition: transform .3s ease; box-shadow: -20px 0 60px rgba(0, 0, 0, .6); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--display); font-size: 28px; text-transform: uppercase; }
.x { font-size: 30px; line-height: 1; color: var(--muted); width: 40px; height: 40px; }
.drawer-user { padding: 14px 22px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.drawer-user b { color: #fff; }
.drawer-user .btn { margin-top: 10px; }
.drawer-items { flex: 1; overflow-y: auto; padding: 14px 22px; }
.line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .li { flex: 1; min-width: 0; }
.line b { display: block; font-size: 15px; }
.line span { color: var(--muted); font-size: 13px; }
.line .rm { color: var(--muted); font-size: 13px; text-decoration: underline; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.total b { font-family: var(--display); font-size: 32px; }
.fine { color: var(--muted); font-size: 12px; text-align: center; margin-top: 10px; }

/* Ventana */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .7); }
.modal-card { position: relative; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; border-radius: 20px; background: var(--bg-2); border: 1px solid rgba(255, 42, 58, .35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 60px rgba(255, 30, 50, .12); }
.modal-card .x { position: absolute; top: 10px; right: 10px; }
.modal-img { aspect-ratio: 16 / 9; background: radial-gradient(circle at 50% 40%, #3a0b12, #120a0e 70%); display: grid; place-items: center; }
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-img img.emblem { width: 30%; height: auto; }
.modal-body { padding: 24px; }
.modal-body h3 { font-family: var(--display); font-size: 34px; text-transform: uppercase; line-height: 1; }
.modal-body .desc { color: var(--muted); margin: 12px 0 18px; white-space: pre-line; }
.modal-body .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-center { text-align: center; padding: 34px 26px; }
.modal-center img { width: 120px; margin: 0 auto 14px; filter: drop-shadow(0 0 22px rgba(255, 30, 50, .5)); }
.modal-center h3 { font-family: var(--display); font-size: 34px; text-transform: uppercase; }
.modal-center p { color: var(--muted); margin: 10px 0 20px; }
.modal-center .btn { margin: 4px; }

.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { padding: 12px 18px; border-radius: 12px; background: #1d1720; border: 1px solid var(--line-2); border-left: 4px solid var(--red); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); font-size: 14px; }
.toast.ok { border-left-color: #34d17a; }

/* Móvil */
@media (max-width: 960px) {
  .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .steps { row-gap: 30px; }
}
@media (max-width: 760px) {
  .nav { gap: 12px; }
  .nav-links { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: rgba(7, 6, 10, .98);
    border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .25s; }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: flex; }
  #loginBtn #loginText { display: none; }
  #loginBtn { width: 42px; padding: 0; }
  .nav-logo img { height: 40px; }
  .features, .steps { grid-template-columns: 1fr; }
  .join { flex-direction: column; align-items: flex-start; }
  .foot { grid-template-columns: auto 1fr; }
  .foot p { grid-column: 1 / -1; text-align: left; }
  .section { padding: 72px 0; }
}

/* Aviso superior (se escribe en el panel) */
.notice { position: fixed; inset: 0 0 auto; z-index: 41; height: 34px; display: grid; place-items: center; padding: 0 16px; font-size: 13.5px; font-weight: 700;
  background: linear-gradient(90deg, var(--red-2), var(--red), var(--red-2)); color: #fff; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.has-notice .nav { top: 34px; }
.has-notice .hero { padding-top: 144px; }

/* Etiquetas y destacados (panel) */
.p-img { position: relative; }
.badge { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 8px; font-family: var(--display); font-weight: 800; font-size: 14px;
  letter-spacing: 1px; text-transform: uppercase; color: #fff; background: var(--red); box-shadow: 0 4px 14px var(--red-glow); }
.badge.top { background: linear-gradient(180deg, #f6d36b, #c99322); color: #2a1a00; box-shadow: 0 4px 14px rgba(246, 211, 107, .4); }
.badge.oferta { background: #18b26b; box-shadow: 0 4px 14px rgba(24, 178, 107, .4); }
.badge.limitado { background: #7b3fe4; box-shadow: 0 4px 14px rgba(123, 63, 228, .4); }
.product.featured { border-color: rgba(255, 42, 58, .5); box-shadow: 0 0 0 1px rgba(255, 42, 58, .25), 0 16px 40px rgba(255, 30, 50, .12); }
