/* ============================================================
   Crystal Swap — diseño estilo SoyImsa (dark + gold)
   ============================================================ */
:root {
  --bg: #090b12;
  --bg-alt: #0c0e14;
  --bg-card: #13151c;
  --bg-card-2: #171921;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(245, 213, 71, 0.25);
  --text: #e6e8f0;
  --text-dim: #9aa1b5;
  --text-faint: #6b7280;
  --gold-1: #f5d547;
  --gold-2: #cca038;
  --gold-3: #9e791b;
  --gold-grad: linear-gradient(120deg, #f5d061, #cca038 46%, #9e791b 52%, #b88a22);
  --green: #22c55e;
  --green-grad: linear-gradient(120deg, #86efac, #22c55e 46%, #15803d 52%, #16a34a);
  --red: #f43f5e;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-num: "Outfit", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--gold-1); color: #0b0c10; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1160px, 92%); margin-inline: auto; }

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  text-align: center;
}
.btn:active { transform: scale(0.97); }
.btn-gold {
  background: var(--gold-grad);
  color: #0b0c10;
  box-shadow: 0 10px 30px -10px rgba(245, 208, 95, 0.45);
}
.btn-gold:hover { filter: brightness(1.08); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.08); }
.btn-lg { padding: 14px 30px; font-size: 15px; }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 8px;
  display: none;
}
.btn-icon svg { width: 22px; height: 22px; }
.btn-telegram {
  margin-top: 18px;
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(120deg, #37bbfe, #0088cc);
  color: #fff;
  font-size: 14px;
  border-radius: 14px;
}
.btn-telegram:hover { filter: brightness(1.08); }
.wa-icon { font-size: 16px; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(9, 11, 18, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; }
.brand-logo { width: 36px; height: 36px; filter: drop-shadow(0 4px 12px rgba(245,213,71,.35)); }
.brand-name { font-size: 18px; letter-spacing: 0.2px; }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active {
  color: var(--gold-1);
  background: rgba(245, 213, 71, 0.1);
  border: 1px solid rgba(245, 213, 71, 0.25);
}
.nav-links a { border: 1px solid transparent; }

/* Top padding para páginas internas */
.page-top { padding-top: 140px; }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- Pill ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 213, 71, 0.12);
  border: 1px solid rgba(245, 213, 71, 0.3);
  color: var(--gold-1);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 7px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  font-family: var(--font-display);
}
.pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.pill-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--gold-2);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}
.glow-1 { width: 480px; height: 480px; background: rgba(245, 208, 95, 0.28); top: -160px; right: -80px; }
.glow-2 { width: 420px; height: 420px; background: rgba(56, 116, 255, 0.18); bottom: -160px; left: -120px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4vw, 66px); font-weight: 900; margin: 22px 0 14px; letter-spacing: -1px; }
.hero-sub { color: var(--text-dim); font-size: 17px; line-height: 1.7; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 34px; margin-top: 40px; }
.stat strong { display: block; font-family: var(--font-num); font-size: 26px; font-weight: 800; }
.stat .star { color: var(--gold-1); margin-left: 4px; }
.stat span { color: var(--text-faint); font-size: 13px; }

/* Hero rate card */
.hero-card {
  background: linear-gradient(160deg, #15171f, #0e1016);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(245, 208, 95, 0.1), transparent 60%);
  pointer-events: none;
}
.hero-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); margin-bottom: 18px; }
.hero-card .hc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.hero-card .hc-row:last-child { border-bottom: none; padding-bottom: 2px; }
.hc-coin { display: flex; align-items: center; gap: 12px; }
.hc-coin .coin-icon-sm { width: 34px; height: 34px; }
.hc-name { font-weight: 700; font-size: 15px; }
.hc-full { color: var(--text-faint); font-size: 12px; }
.hc-right { text-align: right; }
.hc-right .lab { font-size: 11px; color: var(--text-faint); display: block; }
.hc-right .buy { color: var(--green); font-weight: 800; font-family: var(--font-num); }
.hc-right .sell { color: var(--red); font-weight: 800; font-family: var(--font-num); }

/* ---------- Ticker ---------- */
.ticker {
  border-block: 1px solid var(--line);
  background: #0a0c12;
  overflow: hidden;
  padding: 12px 0;
  white-space: nowrap;
  position: relative;
}
.ticker-track {
  display: inline-flex;
  gap: 48px;
  animation: ticker 28s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.tick-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-dim); }
.tick-item b { color: var(--text); font-family: var(--font-num); }
.tick-up { color: var(--green); }
.tick-down { color: var(--red); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(24px, 3vw, 40px); font-weight: 800; margin: 16px 0 10px; }
.section-head p { color: var(--text-dim); font-size: 15.5px; line-height: 1.7; }

/* ---------- Calculator ---------- */
.calc-card {
  max-width: 940px;
  margin: 0 auto;
  background: linear-gradient(170deg, #15171f, #0d0f15);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.calc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 60% at 50% 0%, rgba(245,208,95,0.06), transparent 55%);
  pointer-events: none;
}
.calc-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; position: relative; }

.segmented {
  display: inline-flex;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 12px;
}
.seg {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 14px;
  padding: 9px 22px;
  border-radius: 9px;
  transition: all 0.15s ease;
}
.seg:hover { color: var(--text); }
.seg.active { background: var(--gold-grad); color: #0b0c10; }
.segmented-sm .seg { padding: 8px 14px; font-size: 13px; }
.segmented-sm { width: 100%; }
.segmented-sm .seg { flex: 1; }

.coin-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.coin-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s ease;
}
.coin-opt:hover { border-color: var(--line-strong); }
.coin-opt.active {
  border-color: rgba(245, 213, 71, 0.6);
  background: rgba(245, 213, 71, 0.1);
  color: var(--gold-1);
}
.coin-opt .coin-icon-sm { width: 22px; height: 22px; }

.calc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; position: relative; }
.calc-field { display: flex; flex-direction: column; gap: 10px; }
.calc-field label { font-size: 13px; color: var(--text-dim); font-weight: 600; }

.input-wrap { position: relative; }
.input-wrap .input-currency {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-2);
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 18px;
}
.input-wrap input {
  width: 100%;
  padding: 16px 18px 16px 44px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 700;
  outline: none;
  transition: border-color 0.15s ease;
}
.input-wrap input:focus { border-color: var(--line-strong); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--gold-2) var(--fill, 10%), rgba(255,255,255,0.09) var(--fill, 10%));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold-grad);
  border: 3px solid #0b0c10;
  box-shadow: 0 0 0 1px rgba(245,213,71,0.6), 0 4px 12px rgba(0,0,0,.5);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold-1);
  border: 3px solid #0b0c10;
  cursor: pointer;
}
.range-labels { display: flex; justify-content: space-between; color: var(--text-faint); font-size: 12px; font-family: var(--font-num); }
.quick-amounts { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-amounts button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font-num);
  padding: 7px 14px;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.quick-amounts button:hover, .quick-amounts button.active { color: var(--gold-1); border-color: var(--line-strong); background: rgba(245,213,71,0.08); }

.calc-result {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.result-rate > span:first-child { color: var(--text-faint); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; display: block; }
.result-rate strong { font-family: var(--font-num); font-size: 42px; font-weight: 800; line-height: 1.1; }
.result-coin { color: var(--gold-2); font-weight: 700; }
.result-bonus {
  display: inline-block;
  margin-top: 6px;
  width: fit-content;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.4);
  color: #4ade80;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.result-breakdown { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.result-breakdown .bd-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-dim); }
.result-breakdown .bd-row b { color: var(--text); font-family: var(--font-num); }

.calc-footer {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  position: relative;
}
.rate-line { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-faint); }
.rate-line strong { font-family: var(--font-num); color: var(--text); }
.rate-line .gp { color: var(--green); }
.rate-line .rd { color: var(--red); }

/* ---------- Coins grid ---------- */
.coins-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.coin-card {
  background: linear-gradient(170deg, var(--bg-card), var(--bg-alt));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.coin-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,213,71,0.5), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.coin-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.coin-card:hover::after { opacity: 1; }
.coin-card-head { display: flex; align-items: center; gap: 12px; }
.coin-icon { width: 46px; height: 46px; flex-shrink: 0; }
.coin-card h3 { font-size: 17px; }
.coin-card .coin-for { color: var(--text-faint); font-size: 12.5px; }
.coin-card .coin-rate {
  display: flex;
  justify-content: space-between;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
}
.coin-card .coin-rate .lab { color: var(--text-faint); }
.coin-card .coin-rate .val.buy { color: var(--green); font-weight: 700; font-family: var(--font-num); }
.coin-card .coin-rate .val.sell { color: var(--red); font-weight: 700; font-family: var(--font-num); }
.coin-card .btn { margin-top: 6px; }
.coin-card-actions { display: flex; gap: 8px; margin-top: 6px; }
.coin-card-actions .btn { flex: 1; margin-top: 0; }

/* ---------- Quick grid (inicio) ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.quick-card {
  background: linear-gradient(170deg, var(--bg-card), var(--bg-alt));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.quick-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(245,208,95,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.quick-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.quick-card:hover::after { opacity: 1; }
.quick-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  font-size: 24px;
  border-radius: 14px;
  background: rgba(245,213,71,0.1);
  border: 1px solid rgba(245,213,71,0.25);
  margin-bottom: 16px;
}
.quick-card h3 { font-size: 17px; margin-bottom: 8px; }
.quick-card p { color: var(--text-dim); font-size: 14px; line-height: 1.6; }

/* ---------- CTA band ---------- */
.cta-band {
  margin-top: 56px;
  text-align: center;
  background: linear-gradient(160deg, #1a1810, #100e09);
  border: 1px solid rgba(245,213,71,0.25);
  border-radius: 24px;
  padding: 44px 24px;
}
.cta-band h3 { font-size: 24px; margin-bottom: 8px; }
.cta-band p { color: var(--text-dim); margin-bottom: 20px; }

/* ---------- Order summary ---------- */
.order-summary {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.order-summary .os-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-dim); }
.order-summary .os-row b { color: var(--text); font-family: var(--font-num); }
.order-summary .os-row.os-total {
  margin-top: 2px; padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.order-summary .os-row.os-total b { color: var(--gold-1); font-size: 17px; font-weight: 800; }

/* ---------- Payment section ---------- */
.pay-section { margin-top: 60px; }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step {
  background: linear-gradient(170deg, var(--bg-card), var(--bg-alt));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.step:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.step-num {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  background: var(--gold-grad);
  color: #0b0c10;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px -10px rgba(245,208,95,.5);
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 14px; line-height: 1.65; }

/* ---------- Payment methods ---------- */
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.pay-card {
  background: linear-gradient(170deg, var(--bg-card), var(--bg-alt));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.pay-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.pay-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(245,213,71,0.1);
  border: 1px solid rgba(245,213,71,0.25);
  color: var(--gold-1);
}
.pay-card h3 { font-size: 15px; }
.pay-card p { color: var(--text-faint); font-size: 12.5px; }

/* ---------- Order form ---------- */
.order-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.order-form {
  background: linear-gradient(170deg, var(--bg-card), var(--bg-alt));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 13px; color: var(--text-dim); font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}
.form-group textarea { resize: vertical; min-height: 78px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--line-strong); }
.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: #14161d; }
.form-group input[type="file"] { padding: 10px; font-size: 13px; color: var(--text-dim); }
.form-group input:disabled { color: var(--text); opacity: 1; font-weight: 700; font-family: var(--font-num); }
.form-group input[readonly] { color: var(--gold-1); font-weight: 700; letter-spacing: 0.3px; cursor: default; }
.form-group input[readonly]::placeholder { color: var(--text-faint); font-weight: 500; }
.form-note {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(245,213,71,0.07);
  border: 1px dashed rgba(245,213,71,0.35);
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
}
.form-actions { margin-top: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-hint { font-size: 13px; font-weight: 600; }
.form-hint.ok { color: #4ade80; }
.form-hint.err { color: var(--red); }

.order-side {
  background: linear-gradient(170deg, var(--bg-card), var(--bg-alt));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  position: sticky;
  top: 90px;
}
.order-side h4 { font-size: 17px; margin-bottom: 14px; }
.guarantee-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.guarantee-list li { display: flex; gap: 10px; color: var(--text-dim); font-size: 13.5px; line-height: 1.5; }
.guarantee-list .check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.4);
  color: #4ade80;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  margin-top: 1px;
}

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.review {
  background: linear-gradient(170deg, var(--bg-card), var(--bg-alt));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-stars { color: var(--gold-1); font-size: 15px; letter-spacing: 2px; }
.review-text { color: var(--text-dim); font-size: 14px; line-height: 1.7; flex: 1; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--font-display);
  color: #0b0c10;
  background: var(--gold-grad);
}
.review-author b { font-size: 14px; }
.review-author span { color: var(--text-faint); font-size: 12px; }

/* ---------- Footer ---------- */
.footer { background: #07080d; border-top: 1px solid var(--line); padding: 60px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; align-items: start; }
.footer-brand { margin-bottom: 10px; }
.footer-tag { color: var(--text-faint); font-size: 14px; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-dim); font-size: 14px; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--gold-1); }
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--text-dim);
  transition: all 0.15s ease;
}
.social-btn:hover { color: var(--gold-1); border-color: var(--line-strong); transform: translateY(-2px); }
.social-btn svg { width: 20px; height: 20px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 12.5px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: #101319;
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 14px 22px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
  max-width: 92%;
  text-align: center;
}
.toast.show { animation: toastIn 0.25s ease; }

@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(12px); } }

/* ---------- Coin icon (SVG inline in HTML) ---------- */
.coin-icon-lg, .coin-icon { filter: drop-shadow(0 6px 16px rgba(245,208,95,0.25)); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .order-wrap { grid-template-columns: 1fr; }
  .order-side { position: static; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 70px 0 auto 0;
    background: rgba(9,11,18,0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 12px 5%;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform 0.25s ease;
    display: flex;
  }
  .nav-links.open { transform: translateY(0); }
  .btn-icon { display: inline-grid; place-items: center; }
  .nav-cta .nav-auth-btn { display: none; }
  .calc-body { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .calc-header { flex-direction: column; align-items: stretch; }
  .coin-picker { justify-content: center; }
}
/* ---------- Hero con fondo de imágenes ---------- */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg span {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; animation: heroFade 25s linear infinite;
}
.hero-bg span:nth-child(1) { animation-delay: 0s; }
.hero-bg span:nth-child(2) { animation-delay: 5s; }
.hero-bg span:nth-child(3) { animation-delay: 10s; }
.hero-bg span:nth-child(4) { animation-delay: 15s; }
.hero-bg span:nth-child(5) { animation-delay: 20s; }
@keyframes heroFade {
  0% { opacity: 0; }
  4% { opacity: 1; }
  20% { opacity: 1; }
  24% { opacity: 0; }
  100% { opacity: 0; }
}
.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9, 11, 18, 0.86) 0%, rgba(9, 11, 18, 0.74) 42%, rgba(9, 11, 18, 0.95) 100%),
    radial-gradient(90% 70% at 15% 30%, rgba(9, 11, 18, 0.55), transparent 70%);
}
.hero-inner { position: relative; z-index: 3; }
.hero-glow { z-index: 2; }

/* ---------- Tienda ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 18px;
}
.shop-card {
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(170deg, var(--bg-card), var(--bg-card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.shop-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.shop-media {
  position: relative; aspect-ratio: 1 / 1;
  background-size: cover; background-position: center;
}
.shop-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(11, 12, 16, 0.85));
}
.shop-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--gold-grad); color: #0b0c10;
  font-size: 11px; font-weight: 800; letter-spacing: 0.4px;
  padding: 4px 11px; border-radius: 999px; text-transform: uppercase;
}
.shop-body { padding: 15px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.shop-body h3 { font-size: 17px; letter-spacing: 0.3px; }
.shop-body p { color: var(--text-faint); font-size: 13px; margin-bottom: 10px; }
.shop-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 800; letter-spacing: 0.2px;
  padding: 11px 18px; border-radius: 12px;
  background: var(--gold-grad); color: #0b0c10;
  box-shadow: 0 10px 28px -12px rgba(245, 208, 95, 0.55);
  transition: filter 0.15s ease, transform 0.1s ease, background 0.15s ease;
}
.shop-btn:hover { filter: brightness(1.08); }
.shop-btn:active { transform: scale(0.97); }
.shop-btn.muted {
  background: rgba(255,255,255,0.05); color: var(--text-faint);
  box-shadow: none; border: 1px solid var(--line);
}

.shop-card.soon { opacity: 0.92; }
.shop-card.soon:hover { transform: translateY(-2px); }
.shop-card.soon .shop-media {
  background:
    repeating-linear-gradient(45deg, #12141b 0 14px, #161924 14px 28px);
  display: flex; align-items: center; justify-content: center;
}
.shop-card.soon .shop-media::after { display: none; }
.soon-badge {
  position: relative; z-index: 2;
  color: var(--text-faint); font-weight: 800; font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  padding: 8px 14px; border-radius: 999px;
}

.shop-actions { display: flex; gap: 12px; margin-top: auto; align-items: center; }
.shop-actions .shop-btn { margin-top: 0; flex: 1 1 0; }
.shop-btn.sell {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold-1);
  border: 1px solid var(--gold-1);
  box-shadow: none;
}
.shop-btn.sell:hover { background: rgba(245, 208, 95, 0.12); filter: none; }

/* ---------- Market (tarjetas de artículos) ---------- */
.market-media {
  position: relative; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(245, 208, 95, 0.16), transparent 62%),
    linear-gradient(170deg, #12141b, #171a24);
}
.market-media img {
  position: relative; z-index: 2;
  width: 96px; height: 96px;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.55));
}
.market-price {
  font-size: 22px; font-weight: 900; color: var(--gold-1);
  letter-spacing: 0.3px; margin: 2px 0 14px;
}
.market-noimg {
  position: relative; z-index: 2;
  width: 96px; height: 96px; border-radius: 20px;
  display: grid; place-items: center;
  background: var(--gold-grad); color: #0b0c10;
  font-size: 44px; font-weight: 900;
  box-shadow: 0 10px 24px -10px rgba(245, 208, 95, 0.6);
}
/* Selector de servidor en la tarjeta del Market */
.market-field {
  display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px;
}
.market-field label {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--muted, #9aa1b5);
}
.market-select {
  width: 100%; cursor: pointer;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text, #e6e8f0);
  border-radius: 10px; padding: 10px 12px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  outline: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-1, #f5d547) 50%),
    linear-gradient(135deg, var(--gold-1, #f5d547) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.market-select:focus { border-color: rgba(245, 213, 71, 0.5); }
.market-select option { background: #14161e; color: #e6e8f0; }

/* Stock por juego */
.shop-stock {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-dim);
  margin: 2px 0 14px;
}
.shop-stock b { color: var(--gold-1); font-family: var(--font-num); font-size: 15px; }
.stock-info {
  display: flex; align-items: center; gap: 8px;
  margin-top: 4px; font-size: 13px; color: var(--text-dim);
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  padding: 8px 12px; border-radius: 10px;
}
.stock-info b { color: #22c55e; font-family: var(--font-num); }
.shop-stock .dot, .stock-info .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
  display: inline-block; flex: 0 0 auto;
}

/* ---------- Selector de idioma / Traductor ---------- */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px; padding: 8px 12px;
  font-weight: 700; font-size: 13px; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.lang-btn svg { width: 18px; height: 18px; }
.lang-btn:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.09); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #14161d; border: 1px solid var(--line);
  border-radius: 12px; padding: 6px; min-width: 158px;
  display: none; flex-direction: column; gap: 2px;
  box-shadow: var(--shadow); z-index: 60;
}
.lang-menu.open { display: flex; }
.lang-menu button {
  display: flex; align-items: center; gap: 10px;
  background: none; border: 0; color: var(--text-dim);
  padding: 9px 12px; border-radius: 8px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; text-align: left;
}
.lang-menu button:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.lang-menu button.active { color: var(--gold-1); }
.lang-menu .flag { font-size: 16px; line-height: 1; }

/* Ocultar la barra y el widget de Google Translate */
.skiptranslate, .goog-te-banner-frame { display: none !important; }
#google_translate_element { display: none !important; }
body { top: 0 !important; }
#goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
.goog-logo-link, .goog-te-gadget span { display: none !important; }

/* ---------- Mi cuenta: login, dashboard y notificaciones ---------- */
[hidden] { display: none !important; }

.nav-bell {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line); color: var(--text);
  transition: border-color .15s ease, background .15s ease;
}
.nav-bell svg { width: 20px; height: 20px; }
.nav-bell:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.09); }
.nav-bell-badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--red); color: #fff; border-radius: 9px; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

.account-auth { display: flex; justify-content: center; margin-top: 8px; }
.auth-card {
  width: 100%; max-width: 470px;
  background: linear-gradient(170deg, var(--card), var(--card2));
  border: 1px solid var(--line); border-radius: 20px; padding: 26px;
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.auth-tab {
  flex: 1; padding: 10px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.03); color: var(--text-dim); font-weight: 700; cursor: pointer;
  font-family: var(--font-body); font-size: 13.5px;
}
.auth-tab.active { background: var(--gold-grad); color: #0b0c10; border-color: transparent; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .form-group label { font-size: 13px; }
.form-note.err { color: #f87171; font-size: 13px; min-height: 16px; }

.account-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(170deg, var(--card), var(--card2));
  border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin-bottom: 18px;
}
.account-hello { display: flex; align-items: center; gap: 14px; }
.account-hello h3 { font-size: 18px; }
.account-meta { color: var(--text-faint); font-size: 13px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-grad); color: #0b0c10; font-weight: 800; font-size: 20px;
}

.account-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.account-stats .stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.account-stats .stat strong { display: block; font-family: var(--font-num); font-size: 24px; font-weight: 800; }
.account-stats .stat span { color: var(--text-faint); font-size: 12.5px; }

.account-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.acc-panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.acc-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.acc-panel-head h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.acc-table-wrap { overflow-x: auto; }
.acc-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.acc-table th, .acc-table td { padding: 10px 12px; text-align: left; font-size: 13px; white-space: nowrap; }
.acc-table th { color: var(--text-faint); font-weight: 700; border-bottom: 1px solid var(--line); }
.acc-table td { border-bottom: 1px solid rgba(255,255,255,0.05); }
.muted { color: var(--text-faint); }

.tag { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; border: 1px solid var(--line); color: var(--text-dim); }
.t-compra { color: #4ade80; border-color: rgba(74,222,128,0.4); background: rgba(74,222,128,0.1); }
.t-venta { color: #f87171; border-color: rgba(248,113,113,0.4); background: rgba(248,113,113,0.1); }
.e-pendiente { color: #fbbf24; border-color: rgba(251,191,36,0.4); background: rgba(251,191,36,0.1); }
.e-en_proceso { color: #60a5fa; border-color: rgba(96,165,250,0.4); background: rgba(96,165,250,0.1); }
.e-completado { color: #4ade80; border-color: rgba(74,222,128,0.4); background: rgba(74,222,128,0.1); }
.e-cancelado { color: #f87171; border-color: rgba(248,113,113,0.4); background: rgba(248,113,113,0.1); }

.notif-badge { background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 8px; font-weight: 800; }
.notif-list { display: flex; flex-direction: column; gap: 10px; max-height: 480px; overflow: auto; }
.notif-item {
  display: flex; gap: 10px; padding: 12px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  cursor: pointer; transition: border-color .15s ease;
}
.notif-item:hover { border-color: var(--line-strong); }
.notif-item.read { opacity: 0.6; }
.notif-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-1); margin-top: 5px; flex: 0 0 auto; }
.notif-item.read .notif-dot { background: transparent; border: 1px solid var(--line-strong); }
.notif-title { font-weight: 700; font-size: 13.5px; margin-bottom: 3px; }
.notif-msg { font-size: 12.5px; color: var(--text-dim); line-height: 1.45; }
.notif-date { font-size: 11px; color: var(--text-faint); margin-top: 5px; }

@media (max-width: 900px) {
  .account-grid { grid-template-columns: 1fr; }
  .account-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Aviso de login en la página de orden */
.order-login-hint {
  display: flex; gap: 10px; align-items: center;
  margin: 0 auto 18px; max-width: 720px;
  background: rgba(245, 208, 95, 0.08);
  border: 1px solid rgba(245, 208, 95, 0.28);
  border-radius: 12px; padding: 12px 16px;
  font-size: 13.5px; color: var(--text-dim);
}
.order-login-hint a { color: var(--gold-1); font-weight: 700; }

/* En escritorio, Login/Registro cubren "Mi cuenta"; el enlace queda para el menú móvil */
@media (min-width: 721px) {
  .nav-links a[href="cuenta.html"] { display: none; }
}
.nav-cta .nav-auth-btn { white-space: nowrap; }

/* Campo de WhatsApp con código de país */
.phone-input { display: flex; gap: 8px; }
.phone-input select { flex: 0 0 44%; min-width: 0; }
.phone-input input { flex: 1 1 auto; min-width: 0; }
