/* Estetica cyber-neon de milkybot.com: negro, violeta, fucsia y cian.
   Orbitron para titulares, Rajdhani para etiquetas HUD, Inter para texto. */
:root {
  --bg: #05050a;
  --surface: #0b0b13;
  --surface-2: #12121d;
  --border: rgba(139, 92, 246, 0.16);
  --border-strong: rgba(139, 92, 246, 0.45);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --violet: #8b5cf6;
  --violet-soft: #c4b5fd;
  --fuchsia: #d946ef;
  --cyan: #22d3ee;
  --cyan-soft: #a5f3fc;
  --lime: #9bf00b;
  --discord: #5865f2;
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-hud: "Rajdhani", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
/* Recorta decoraciones que se salen (marquesina inclinada, brillos) sin crear
   scroll horizontal; "clip" no rompe los elementos sticky como "hidden" */
main { overflow-x: clip; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* --- Piezas decorativas ----------------------------------------------------- */

.hud-label {
  display: inline-block;
  font-family: var(--font-hud);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--violet-soft);
}
.hud-label.cyan { color: var(--cyan); }
.hud-label.violet { color: var(--violet-soft); }

/* Esquinas HUD (CyberFrame de milkybot) sobre un contenedor position: relative */
.hud-corners {
  --c: rgba(34, 211, 238, 0.75);
  position: absolute;
  inset: -1px;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(var(--c), var(--c)) top left / 14px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 2px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 14px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 2px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 14px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 2px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 14px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 2px 14px no-repeat;
}

.gradient-text {
  background: linear-gradient(90deg, #fff, var(--violet-soft) 45%, var(--cyan-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* (Sin cuadricula animada de fondo: en Safari obligaba a redibujar todo el tiempo) */

/* Luces de fondo con degradados (sin filter: blur, que en Safari es muy costoso de dibujar) */
.glow {
  position: absolute;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  opacity: 0.45;
  pointer-events: none;
}
.glow-violet { background: radial-gradient(circle, rgba(124, 58, 237, 0.9) 0%, rgba(124, 58, 237, 0.35) 35%, transparent 68%); top: -300px; left: -260px; }
.glow-fuchsia { background: radial-gradient(circle, rgba(192, 38, 211, 0.9) 0%, rgba(192, 38, 211, 0.3) 35%, transparent 68%); top: 20%; right: 12%; width: 520px; height: 520px; opacity: 0.25; }
.glow-cyan { background: radial-gradient(circle, rgba(8, 145, 178, 0.9) 0%, rgba(8, 145, 178, 0.3) 35%, transparent 68%); bottom: -340px; right: -280px; opacity: 0.3; }

.scanlines { position: relative; }
.scanlines::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px);
}

/* --- Botones ---------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 600 15px/1 var(--font-body);
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn::after {
  /* brillo que cruza el boton al pasar el mouse */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}
.btn:hover:not(:disabled)::after { transform: translateX(120%); }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(90deg, var(--violet), var(--fuchsia));
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.45);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 0 32px rgba(217, 70, 239, 0.6); }
.btn-discord { background: var(--discord); box-shadow: 0 0 20px rgba(88, 101, 242, 0.35); }
.btn-discord:hover:not(:disabled) { background: #6b77f5; box-shadow: 0 0 30px rgba(88, 101, 242, 0.6); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--border-strong); }
.btn-ghost:hover:not(:disabled) { border-color: var(--cyan); box-shadow: 0 0 18px rgba(34, 211, 238, 0.3); }
.btn-lime { background: var(--lime); color: #0d1a00; box-shadow: 0 0 22px rgba(155, 240, 11, 0.35); }
.btn-lime:hover:not(:disabled) { box-shadow: 0 0 32px rgba(155, 240, 11, 0.55); }

/* --- Navbar ----------------------------------------------------------------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.navbar.scrolled { border-bottom-color: var(--border); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); }
.navbar-inner {
  max-width: 1240px;
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-logo {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #09090b;
  box-shadow: inset 0 0 0 1px #27272a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.brand-logo img { width: 34px; height: 34px; object-fit: contain; }
.brand-logo .hud-corners { opacity: 0; transition: opacity 0.3s ease; }
.brand:hover .brand-logo { transform: scale(1.08); box-shadow: inset 0 0 0 1px var(--violet), 0 0 16px rgba(139, 92, 246, 0.45); }
.brand:hover .brand-logo .hud-corners { opacity: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.brand-text small { color: var(--cyan); font-family: var(--font-hud); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

.nav-links { display: flex; justify-content: center; gap: 30px; flex: 1; }
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  color: #d4c2ff;
  text-shadow: 0 0 6px rgba(167, 139, 250, 0.9), 0 0 20px rgba(139, 92, 246, 0.6);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-select select {
  height: 38px;
  padding: 0 28px 0 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #09090b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--text);
  font: 700 14px var(--font-hud);
  letter-spacing: 0.08em;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.nav-select select:hover, .nav-select select:focus { outline: none; border-color: var(--violet); }
.nav-cart {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-cart:hover { color: var(--violet-soft); background: rgba(139, 92, 246, 0.1); }
.nav-cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 19px;
  padding: 1px 5px;
  border-radius: 99px;
  background: var(--fuchsia);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 0 8px rgba(217, 70, 239, 0.7);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 11px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.25s ease, opacity 0.25s ease; }
.navbar.open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar.open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Hero (home) ------------------------------------------------------------ */

.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
}
.hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(46px, 7.2vw, 92px);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.hero-accent {
  display: inline-block;
  background: linear-gradient(90deg, var(--violet-soft), var(--fuchsia) 50%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(217, 70, 239, 0.45));
}
.hero h1 .hero-accent { display: inline-block; font-size: 0.82em; white-space: nowrap; }
.hero-cheap {
  display: block;
  margin-top: 6px;
  font-size: 0.62em;
  letter-spacing: 0.32em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(34, 211, 238, 0.75);
  text-shadow: 0 0 30px rgba(34, 211, 238, 0.25);
  animation: neonFlicker 5s ease-in-out infinite;
}
@keyframes neonFlicker {
  0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; }
  20%, 63% { opacity: 0.45; }
}
.hero-lead { max-width: 540px; margin: 0 0 14px; color: var(--muted); font-size: 18px; }
.hero .disclaimer { margin: 0 0 28px; }
.asterisk { font-size: 0.4em; vertical-align: super; margin-left: 2px; -webkit-text-fill-color: var(--fuchsia); }
.disclaimer { max-width: 560px; color: var(--dim); font-size: 12.5px; line-height: 1.5; }
.disclaimer span { color: var(--muted); font-weight: 600; }
.catalog-intro .disclaimer { margin: 6px 0 0; font-size: 12.5px; color: var(--dim); }
.cart-disclaimer { margin: 10px 0 0; text-align: center; font-size: 12px; }
.footer-disclaimer { max-width: none; margin: 0; padding-bottom: 22px; }
.hero-lead strong { color: var(--cyan-soft); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 520px;
  margin: 40px 0 0;
}
.stat-tile {
  position: relative;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(11, 11, 19, 0.7);
}
.stat-tile dt { font-family: var(--font-hud); font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
.stat-tile dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--cyan-soft); }
.stat-tile .hud-corners { --c: rgba(139, 92, 246, 0.8); }
.fuchsia { color: #f0abfc !important; }
.lime { color: var(--lime) !important; }

/* Pared de caratulas en perspectiva */
.hero-wall {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  transform: perspective(1400px) rotateY(-16deg) rotateX(8deg) rotateZ(-3deg);
  transform-style: preserve-3d;
}
.wall-tile {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(139, 92, 246, 0.15);
  animation: float 7s ease-in-out infinite;
}
.wall-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wall-tile:nth-child(3n + 2) { margin-top: 42px; animation-delay: -2.3s; }
.wall-tile:nth-child(3n) { margin-top: -18px; animation-delay: -4.6s; }
.wall-tile:nth-child(2) { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 32px rgba(217, 70, 239, 0.45); }
.wall-tile:nth-child(6) { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 32px rgba(34, 211, 238, 0.4); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.wall-price-tag {
  position: absolute;
  left: -18px;
  bottom: 12%;
  display: flex;
  flex-direction: column;
  padding: 14px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(217, 70, 239, 0.95));
  box-shadow: 0 0 40px rgba(217, 70, 239, 0.55);
  transform: translateZ(60px) rotateZ(3deg);
}
.wall-price-tag > span { font-family: var(--font-hud); font-size: 14px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; }
.wall-price-tag strong { white-space: nowrap; }
.wall-price-tag strong { font-family: var(--font-display); font-size: 30px; font-weight: 900; }

/* Marquesina */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 16px 0;
  background: linear-gradient(90deg, #5b21b6, #a21caf 50%, #0e7490);
  /* inclinada y un poco agrandada para que tape los bordes sin salirse de la pantalla */
  transform: rotate(-1.2deg) scaleX(1.04);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.35);
}
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 30s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: 20px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--cyan-soft); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Secciones y tarjetas de juegos ---------------------------------------- */

.section { padding: 80px 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.section-head h2 { margin: 8px 0 6px; font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; }
.section-head p { margin: 0; color: var(--muted); }
.section-head.centered { justify-content: center; text-align: center; }
.link-arrow { color: var(--cyan); text-decoration: none; font-weight: 600; white-space: nowrap; }
.link-arrow span { display: inline-block; transition: transform 0.2s ease; }
.link-arrow:hover span { transform: translateX(4px); }

.game-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 190px;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 2px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.5) transparent;
}
.game-row > * { scroll-snap-align: start; }
.game-row-compact { grid-auto-columns: 160px; }

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 22px rgba(139, 92, 246, 0.25);
}
.game-cover { position: relative; aspect-ratio: 1 / 1; background: #000; }
.game-cover img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform 0.4s ease; }
.game-card:hover .game-cover img { transform: scale(1.04); }
.game-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  font-family: var(--font-hud);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.badge-deal { background: var(--fuchsia); color: #fff; box-shadow: 0 0 12px rgba(217, 70, 239, 0.6); }
.badge-x360 { background: var(--lime); color: #0d1a00; }
.badge-hot { background: linear-gradient(90deg, #f97316, #ef4444); color: #fff; box-shadow: 0 0 12px rgba(249, 115, 22, 0.55); }
.game-rating { color: #fbbf24; font-family: var(--font-hud); font-size: 14px; font-weight: 700; }
.game-rating small { color: var(--dim); font-weight: 600; }
.badge-save { background: var(--fuchsia); color: #fff; box-shadow: 0 0 12px rgba(217, 70, 239, 0.6); }
.store-price { color: var(--dim); font-size: 13px; cursor: help; }
.saved-line {
  font-family: var(--font-hud);
  font-size: 14px;
  font-weight: 700;
  color: var(--lime);
  text-shadow: 0 0 10px rgba(155, 240, 11, 0.3);
}
.game-info { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1; }
.game-title {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.game-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.game-price strong { font-family: var(--font-hud); font-size: 20px; font-weight: 700; color: var(--cyan-soft); text-shadow: 0 0 12px rgba(34, 211, 238, 0.35); }
.game-price s { color: var(--dim); font-size: 13px; }

/* Banner de Xbox 360 */
.x360-banner {
  position: relative;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: 34px;
  border-radius: 18px;
  border: 1px solid rgba(155, 240, 11, 0.22);
  background:
    radial-gradient(circle at 0% 0%, rgba(155, 240, 11, 0.16), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(16, 124, 16, 0.25), transparent 55%),
    var(--surface);
  overflow: hidden;
}
.x360-banner .hud-corners { --c: rgba(155, 240, 11, 0.8); }
.x360-copy h2 { margin: 14px 0 10px; font-size: clamp(26px, 3vw, 34px); }
.x360-copy .lime { text-shadow: 0 0 22px rgba(155, 240, 11, 0.45); }
.x360-copy p { margin: 0 0 22px; color: var(--muted); }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  position: relative;
  padding: 28px 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.07), transparent 60%), var(--surface);
}
.step .hud-corners { --c: rgba(139, 92, 246, 0.7); }
.step-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(34, 211, 238, 0.7);
}
.step h3 { margin: 10px 0 8px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); }

/* --- Discord CTA + Footer --------------------------------------------------- */

.discord-cta { position: relative; overflow: hidden; margin-top: 96px; padding: 90px 0; background: #000; }
.discord-cta .container { position: relative; }
.discord-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: rgba(9, 9, 11, 0.9);
  box-shadow: 0 25px 60px rgba(139, 92, 246, 0.25);
}
.discord-card h2 { margin: 8px 0 8px; font-size: clamp(24px, 3vw, 32px); }
.discord-card p { margin: 0; color: rgba(221, 214, 254, 0.7); }
.discord-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

.footer { position: relative; background: #000; border-top: 1px solid rgba(139, 92, 246, 0.2); }
.footer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: neonFlicker 4.5s ease-in-out infinite;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; padding-top: 64px; padding-bottom: 56px; }
.footer-brand h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 14px; }
.footer-brand p { max-width: 440px; margin: 0 0 28px; color: var(--muted); font-size: 16px; }
.socials { display: flex; gap: 12px; margin-top: 14px; }
.social {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid #27272a;
  background: #09090b;
  color: var(--muted);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.social:hover { transform: scale(1.1); }
.social.discord:hover { color: #8b95ff; border-color: rgba(88, 101, 242, 0.6); box-shadow: 0 0 15px rgba(88, 101, 242, 0.4); }
.social.facebook:hover { color: var(--violet-soft); border-color: rgba(139, 92, 246, 0.5); box-shadow: 0 0 15px rgba(139, 92, 246, 0.35); }
.social.instagram:hover { color: #f0abfc; border-color: rgba(217, 70, 239, 0.5); box-shadow: 0 0 15px rgba(217, 70, 239, 0.35); }
.social.tiktok:hover { color: var(--cyan); border-color: rgba(34, 211, 238, 0.5); box-shadow: 0 0 15px rgba(34, 211, 238, 0.35); }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.footer-links ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-links a { color: #d4d4d8; text-decoration: none; font-weight: 500; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--cyan-soft); }
.footer-bottom { border-top: 1px solid rgba(139, 92, 246, 0.1); }
.footer-bottom .container {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 13.5px;
  color: var(--dim);
}
.footer-bottom p { margin: 0; }
.footer-bottom strong { color: #d4d4d8; }
.footer-bottom .made span { color: var(--fuchsia); display: inline-block; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }

/* --- Catalogo --------------------------------------------------------------- */

.page-hero { position: relative; overflow: hidden; padding: 56px 0 44px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero::after {
  /* funde el brillo con el fondo en vez de cortarlo en seco */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.page-hero h1 { margin: 12px 0 10px; font-size: clamp(34px, 5vw, 56px); font-weight: 900; }
.page-hero p { margin: 0; color: var(--muted); font-size: 17px; }

.catalog-intro { padding: 36px 0 24px; }
.catalog-intro h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; }
.catalog-intro p { margin: 10px 0 0; color: var(--muted); font-size: 16.5px; }
.catalog-intro strong { color: var(--cyan-soft); }

.catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }

.catalog-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.search-field {
  position: relative;
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  color: var(--dim);
}
.search-field svg { position: absolute; left: 14px; pointer-events: none; }
.catalog-filters input,
.catalog-filters select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: 500 14.5px var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.catalog-filters input { padding-left: 42px; }
.catalog-filters select {
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  text-overflow: ellipsis;
  padding-right: 38px;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.catalog-filters input:focus,
.catalog-filters select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2); }
.catalog-count { margin: 16px 0 14px; color: var(--dim); font-family: var(--font-hud); font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 16px; }
.catalog-grid .game-card.in-cart { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 0 22px rgba(34, 211, 238, 0.25); }
.in-cart-check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cyan);
  color: #032028;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
}
.game-card.in-cart .in-cart-check { display: grid; }
.cart-toggle {
  margin: 0 12px 12px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font: 600 13.5px var(--font-body);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.cart-toggle:hover { border-color: var(--violet); background: rgba(139, 92, 246, 0.15); }
.game-card.in-cart .cart-toggle { background: var(--cyan); border-color: var(--cyan); color: #032028; }
/* Carrito lleno: los "Agregar" se ven apagados (al tocarlos avisa del limite) */
.catalog-grid.cart-full .game-card:not(.in-cart) .cart-toggle { opacity: 0.4; }

.catalog-loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 60px 0; color: var(--muted); }
.catalog-loading img { width: 64px; height: 64px; animation: pulse 1.2s ease-in-out infinite; }
.catalog-empty { padding: 40px 0; text-align: center; color: var(--muted); }
.catalog-more { display: flex; margin: 28px auto 0; }

/* Carrito */
.cart {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  /* nunca mas alto que la ventana: solo la lista hace scroll y el boton queda a la vista */
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--nav-h) - 40px);
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.cart-head {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.14), transparent);
}
.cart-toggle-btn {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  color: var(--text);
  font: 700 16px var(--font-display);
  text-decoration: none;
}
.cart-toggle-btn:hover .cart-title { color: var(--violet-soft); }
.cart-peek { display: none; align-items: center; gap: 10px; }
.cart-peek strong { font-family: var(--font-hud); font-size: 18px; color: var(--cyan-soft); }
.cart-open-label { font: 600 13px var(--font-body); color: var(--muted); white-space: nowrap; }
.cart-footer { padding: 0 18px 18px; }
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--fuchsia);
  font: 700 12px var(--font-body);
}
.cart-progress { padding: 14px 18px 4px; }
.cart-progress-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.cart-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--fuchsia));
  box-shadow: 0 0 12px rgba(217, 70, 239, 0.6);
  transition: width 0.35s ease;
}
.cart-progress.done .cart-progress-bar span { background: linear-gradient(90deg, var(--cyan), var(--lime)); box-shadow: 0 0 12px rgba(155, 240, 11, 0.5); }
.cart-progress p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.cart-progress strong { color: var(--text); font-family: var(--font-hud); font-size: 15px; }
.cart-progress.done strong { color: var(--lime); }
.cart-body { padding: 6px 18px 0; flex: 1; min-height: 0; overflow-y: auto; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13.5px;
}
.cart-list img { width: 40px; height: 40px; border-radius: 6px; object-fit: contain; background: #000; }
.cart-item-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-title small { display: block; color: #f87171; font-size: 11.5px; font-weight: 600; }
.cart-list li.is-unavailable img, .cart-list li.is-unavailable .cart-item-title { opacity: 0.6; }
.cart-item-price { color: var(--cyan-soft); font-family: var(--font-hud); font-size: 16px; font-weight: 700; white-space: nowrap; }
.cart-remove { width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--dim); font-size: 18px; cursor: pointer; }
.cart-remove:hover { color: #f87171; background: rgba(248, 113, 113, 0.1); }
.cart-list li.cart-empty { display: block; padding: 18px 0; color: var(--dim); text-align: center; border: 0; }
.cart-summary { margin: 14px 0 16px; display: flex; flex-direction: column; gap: 6px; }
.cart-summary > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cart-summary dt { color: var(--muted); font-size: 13.5px; }
.cart-summary dd { margin: 0; font-family: var(--font-hud); font-size: 16px; font-weight: 700; }
.info-dot {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-left: 3px;
  border-radius: 50%;
  border: 1px solid var(--dim);
  font: 700 10px var(--font-body);
  vertical-align: 1px;
}
.cart-summary .cart-total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border); }
.cart-store s { color: var(--dim); }
.cart-discount dt, .cart-discount dd { color: #f0abfc !important; }
/* Cupon / codigo de referido */
.cart-coupon { margin: 0 0 14px; }
.cart-coupon label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.cart-coupon-field { display: flex; gap: 6px; align-items: center; }
.cart-coupon-field input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font: 600 14px var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cart-coupon-field input::placeholder { text-transform: none; letter-spacing: 0; color: var(--dim); font-weight: 400; }
.cart-coupon-field input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25); }
.cart-coupon-remove { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-strong); background: none; color: var(--muted); cursor: pointer; font-size: 17px; }
.cart-coupon-remove:hover { color: var(--text); border-color: var(--fuchsia); }
.cart-coupon-msg { margin: 6px 0 0; font-size: 12.5px; min-height: 0; }
.cart-coupon-msg:empty { display: none; }
.cart-coupon.is-applied input { border-color: rgba(155, 240, 11, 0.55); }
.cart-coupon.is-applied .cart-coupon-msg { color: var(--lime); }
.cart-coupon.is-error input { border-color: rgba(248, 113, 113, 0.7); }
.cart-coupon.is-error .cart-coupon-msg { color: #fca5a5; }
.cart-next-tier {
  margin: 10px 0 0 !important;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px dashed rgba(217, 70, 239, 0.45);
  background: rgba(217, 70, 239, 0.08);
  color: var(--text) !important;
  font-size: 12.5px !important;
}
.cart-next-tier strong { color: #f0abfc; font-family: var(--font-body); font-size: inherit; }
.volume-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.volume-chips-label { color: var(--muted); font-size: 13px; }
.volume-chip {
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(217, 70, 239, 0.45);
  background: rgba(217, 70, 239, 0.1);
  color: #f0abfc;
  font-family: var(--font-hud);
  font-size: 14px;
  font-weight: 700;
}
.cart-savings dt { color: var(--lime) !important; font-weight: 600; }
.cart-savings dd { color: var(--lime); text-shadow: 0 0 12px rgba(155, 240, 11, 0.35); }
.cart-total dt { color: var(--muted); font-family: var(--font-hud); font-size: 15px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.cart-total dd { font-family: var(--font-display); font-size: 20px; }
.cart-msg { min-height: 1.2em; margin: 10px 0 0; color: var(--cyan-soft); font-size: 13px; text-align: center; }
.cart-clear { display: block; margin: 6px auto 0; border: 0; background: none; color: var(--dim); font-size: 13px; cursor: pointer; }
.cart-clear:hover { color: #f87171; }

/* --- Responsive ------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-wall { max-width: 560px; transform: perspective(1400px) rotateX(10deg) rotateZ(-3deg); margin: 10px auto 0; }
  .x360-banner { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }

  /* En celular el carrito del catalogo es una barra fija abajo (cantidad,
     total y progreso) que lleva a la pagina /carrito */
  .page-catalog .cart {
    position: fixed;
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 60;
    max-height: none;
    border-color: var(--border-strong);
  }
  .page-catalog .cart-head { border-bottom: 0; }
  .page-catalog .cart-peek { display: flex; }
  .page-catalog .cart-progress { padding: 0 18px 12px; }
  .page-catalog .cart-next-tier, .page-catalog .cart-body, .page-catalog .cart-footer { display: none; }
  .page-catalog .footer { padding-bottom: 120px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  /* Sin los links en el medio (van al menu), los botones quedan pegados a la derecha */
  .nav-actions { margin-left: auto; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 18px;
    background: rgba(5, 5, 10, 0.97);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    display: none;
  }
  .navbar.open .nav-links { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 16px; }
  .nav-links a.active::after { display: none; }
  .navbar .btn-discord span { display: none; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .discord-card { flex-direction: column; align-items: flex-start; }
  .discord-actions { width: 100%; }
}

@media (max-width: 600px) {
  :root { --nav-h: 64px; }
  .nav-actions { gap: 8px; }
  .nav-discord { display: none; }
  .container, .navbar-inner { padding: 0 16px; }
  .brand-text small { display: none; }
  .hero { padding: 44px 0 64px; }
  .hero-lead { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats { gap: 8px; }
  .stat-tile { padding: 10px 12px; }
  .stat-tile dd { font-size: 20px; }
  .hero-wall { gap: 10px; }
  .wall-price-tag { left: -6px; padding: 10px 14px; }
  .wall-price-tag strong { font-size: 22px; }
  .section { padding-top: 60px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .game-row { grid-auto-columns: 150px; gap: 12px; }
  .x360-banner { padding: 22px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .catalog-filters select { flex: 1 1 calc(50% - 5px); min-width: 0; text-overflow: ellipsis; }
  .catalog-filters #catalog-sort { flex-basis: 100%; }
  .discord-cta { margin-top: 64px; padding: 60px 0; }
  .discord-card { padding: 24px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* --- Ficha del juego (modal) ------------------------------------------------ */

.catalog-grid [data-open] { cursor: pointer; }
.catalog-grid .game-title[data-open]:hover { color: var(--violet-soft); }
body.modal-open { overflow: hidden; }

.modal { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 2, 6, 0.8); backdrop-filter: blur(6px); animation: fadeIn 0.2s ease; }
.modal-dialog {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 820px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(139, 92, 246, 0.2);
  animation: popIn 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.5) transparent;
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.modal-close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 3;
  width: 38px;
  height: 38px;
  margin: 12px 12px -50px 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(5, 5, 10, 0.75);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { border-color: var(--violet); }
.modal-loading { padding: 80px 20px; color: var(--muted); text-align: center; }

.modal-hero { position: relative; aspect-ratio: 21 / 9; background: #000; overflow: hidden; }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, var(--surface)); }

.modal-body { position: relative; padding: 0 28px 28px; margin-top: -70px; }
.modal-head { display: flex; gap: 18px; align-items: flex-end; }
.modal-cover {
  width: 128px;
  height: 128px;
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: contain;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}
.modal-head h2 { font-size: clamp(20px, 3vw, 28px); line-height: 1.15; }
.modal-sub { margin: 6px 0 10px; color: var(--muted); font-size: 14px; }
.modal-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { padding: 3px 10px; border-radius: 99px; border: 1px solid var(--border-strong); color: var(--violet-soft); font-size: 12.5px; font-weight: 600; }
.chip-age { border-color: rgba(248, 113, 113, 0.5); color: #fca5a5; }

.modal-buy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}
.modal-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.modal-price strong { font-family: var(--font-hud); font-size: 30px; color: var(--cyan-soft); text-shadow: 0 0 14px rgba(34, 211, 238, 0.35); }
.modal-price .saved-line { flex-basis: 100%; }
.modal-buy .btn { min-width: 150px; }

.modal-short { margin: 0 0 16px; font-size: 16px; line-height: 1.55; }
.modal-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 46%);
  gap: 10px;
  overflow-x: auto;
  margin: 0 -28px 18px;
  padding: 0 28px 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.modal-gallery a { scroll-snap-align: start; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.modal-gallery img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.3s ease; }
.modal-gallery a:hover img { transform: scale(1.04); }

.modal-desc { white-space: pre-line; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.modal-desc.is-collapsed { max-height: 7.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.link-more { margin: 6px 0 0; padding: 0; border: 0; background: none; color: var(--cyan); font: 600 14px var(--font-body); cursor: pointer; }

.modal-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--border); }
.modal-meta dt { color: var(--dim); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.modal-meta dd { margin: 2px 0 0; font-size: 14px; }

@media (max-width: 600px) {
  .modal { padding: 0; place-items: end stretch; }
  .modal-head { align-items: flex-start; }
  .modal-chips .chip, .modal-chips .badge { font-size: 11.5px; }
  .modal-dialog { max-height: 92vh; border-radius: 18px 18px 0 0; }
  .modal-body { padding: 0 18px 22px; margin-top: -50px; }
  .modal-cover { width: 92px; height: 92px; }
  .modal-gallery { margin: 0 -18px 16px; padding: 0 18px 6px; grid-auto-columns: 82%; }
  .modal-meta { grid-template-columns: 1fr; }
  .modal-buy .btn { flex: 1; }
}

/* --- Pagina del carrito ----------------------------------------------------------- */

.cart-page { padding-top: 28px; padding-bottom: 20px; }
.back-link { display: inline-block; margin-bottom: 14px; color: var(--cyan); text-decoration: none; font-weight: 600; }
.back-link:hover { color: var(--cyan-soft); }
.cart-page h1 { display: flex; align-items: center; gap: 12px; font-size: clamp(28px, 4vw, 40px); font-weight: 900; }
.cart-page h1 .cart-count { font-size: 15px; height: 28px; min-width: 28px; }
.cart-page-sub { margin: 8px 0 26px; color: var(--muted); }
.cart-page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.cart-page-list h2 { margin-bottom: 12px; font-size: 18px; }

.cart-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cart-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.cart-row-cover img { display: block; width: 72px; height: 72px; border-radius: 8px; object-fit: contain; background: #000; }
.cart-row-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-row-title { color: var(--text); text-decoration: none; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-row-title:hover { color: var(--violet-soft); }
.cart-row-price .cart-item-price { font-size: 19px; }
.cart-row-gone { color: #f87171; font-weight: 600; }
.cart-row.is-unavailable { border-color: rgba(248, 113, 113, 0.35); }
.cart-row.is-unavailable img, .cart-row.is-unavailable .cart-row-title { opacity: 0.55; }
.cart-rows .cart-remove {
  width: auto;
  height: auto;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font: 600 13px var(--font-body);
}
.cart-rows .cart-remove:hover { border-color: #f87171; }
.cart-empty-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}
.cart-empty-page strong { color: var(--text); font-family: var(--font-display); font-size: 20px; }
.cart-empty-page .btn { margin-top: 8px; }

.cart-page-summary {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.cart-page-summary .cart-progress { padding: 0 0 12px; border-bottom: 1px solid var(--border); }

@media (max-width: 1024px) {
  /* En celular el resumen (total y boton de pedir) va primero */
  .cart-page-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cart-page-summary { position: static; order: -1; }
}
@media (max-width: 600px) {
  .cart-row { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; }
  .cart-row-cover img { width: 56px; height: 56px; }
  .cart-rows .cart-remove { padding: 6px 9px; }
}

/* --- Aviso flotante ---------------------------------------------------------------- */

.site-toast {
  position: fixed;
  left: 50%;
  bottom: 110px;
  z-index: 300;
  max-width: min(92vw, 460px);
  padding: 12px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(11, 11, 19, 0.96);
  color: var(--text);
  font-size: 14px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.site-toast.visible { opacity: 1; transform: translate(-50%, 0); }
.site-toast.warning { border-color: rgba(251, 191, 36, 0.5); color: #fde68a; }

/* --- Cuenta del cliente ------------------------------------------------------------ */

.nav-login { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; text-decoration: none; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary img, .user-initial {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  object-fit: cover;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
}
.user-menu[open] summary img, .user-menu[open] .user-initial { border-color: var(--violet); }
.user-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 70;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.user-menu-name { margin: 4px 8px 8px; font-weight: 600; overflow-wrap: anywhere; }
.user-menu-name small { display: block; color: var(--dim); font-size: 12px; font-weight: 400; }
.user-menu-panel a, .user-menu-panel button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  font: 500 14px var(--font-body);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.user-menu-panel a:hover, .user-menu-panel button:hover { background: var(--surface-2); }
.user-menu-panel form { margin: 0; border-top: 1px solid var(--border); padding-top: 4px; margin-top: 4px; }
.user-menu-panel button:hover { color: #f87171; }

.auth-page { position: relative; overflow: hidden; display: grid; place-items: center; min-height: calc(100vh - var(--nav-h) - 60px); padding: 40px 16px; }
.auth-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 28px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: rgba(11, 11, 19, 0.92);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.15);
  text-align: center;
}
.auth-card h1 { font-size: 26px; }
.auth-logo { border-radius: 12px; background: #000; }
.auth-icon { font-size: 44px; line-height: 1; }
.auth-sub { margin: -4px 0 4px; color: var(--muted); }
.auth-error { width: 100%; margin: 0; padding: 10px 12px; border: 1px solid rgba(248, 113, 113, 0.45); border-radius: 10px; background: rgba(248, 113, 113, 0.08); color: #fca5a5; font-size: 14px; }
.auth-dev { margin: 0; padding: 10px 12px; border: 1px dashed rgba(251, 191, 36, 0.5); border-radius: 10px; color: #fde68a; font-size: 13px; }
.auth-providers { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.auth-btn { justify-content: center; border: 1px solid var(--border-strong); background: var(--bg); }
.auth-discord { background: var(--discord); border-color: transparent; }
.auth-google { background: #fff; color: #1f1f1f; border-color: transparent; }
.auth-divider { display: flex; align-items: center; gap: 10px; width: 100%; color: var(--dim); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-email { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.auth-email input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: 15px var(--font-body);
}
.auth-email input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2); }
.auth-hint, .auth-privacy { margin: 0; color: var(--dim); font-size: 12.5px; }
.auth-card form { width: 100%; }

.orders-page { padding-top: 32px; }
.orders-page h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; }
.my-orders { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.my-order { padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.my-order header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.my-order header strong { font-family: var(--font-display); font-size: 17px; }
.my-order header small { display: block; color: var(--dim); font-size: 13px; }
.my-order-status { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; }
.status-pill { padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.status-nuevo { background: rgba(96, 165, 250, 0.15); color: #93c5fd; }
.status-comprando { background: rgba(251, 191, 36, 0.15); color: #fde68a; }
.status-completado { background: rgba(155, 240, 11, 0.15); color: var(--lime); }
.pay-pagado { background: rgba(155, 240, 11, 0.12); color: var(--lime); }
.pay-pendiente { background: rgba(251, 191, 36, 0.12); color: #fde68a; }
.my-order-total { display: flex; justify-content: flex-end; gap: 18px; flex-wrap: wrap; margin: 10px 0 6px; color: var(--muted); font-size: 14px; }
.my-order-total strong { color: var(--cyan-soft); font-family: var(--font-hud); font-size: 20px; }
.my-order details summary { cursor: pointer; color: var(--cyan); font-weight: 600; font-size: 14px; }
.my-order ul { list-style: none; margin: 10px 0 0; padding: 0; }
.my-order li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 14px; }
.my-order li a { color: var(--text); text-decoration: none; }
.my-order li a:hover { color: var(--violet-soft); }

@media (max-width: 600px) {
  .nav-login { padding: 7px 12px; font-size: 13px; }
}

/* --- Mi cuenta ---------------------------------------------------------------------- */

.account-page { padding-top: 32px; }
.account-page h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.account-card { display: flex; flex-direction: column; gap: 16px; padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.account-card h2 { font-size: 17px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-weight: 600; font-size: 14px; }
.field input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: 15px var(--font-body);
}
.field input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2); }
.field input:disabled { opacity: 0.6; }
.field small { color: var(--dim); font-size: 12.5px; }
.field.has-error input { border-color: #f87171; }
.field-error { color: #fca5a5 !important; }
.account-notice, .account-saved { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.account-notice { border: 1px solid rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.08); color: #fde68a; }
.account-saved { border: 1px solid rgba(155, 240, 11, 0.4); background: rgba(155, 240, 11, 0.08); color: var(--lime); }
.account-identities { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.account-identities li { display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; font-size: 14px; }
.chip-provider { padding: 2px 10px; border-radius: 99px; border: 1px solid var(--border-strong); font-size: 12px; font-weight: 700; }
.chip-provider.chip-discord { border-color: rgba(88, 101, 242, 0.6); color: #a5b4fc; }
.chip-provider.chip-google { border-color: rgba(251, 191, 36, 0.5); color: #fde68a; }
.chip-provider.chip-email { border-color: rgba(155, 240, 11, 0.4); color: var(--lime); }
@media (max-width: 800px) { .account-grid { grid-template-columns: minmax(0, 1fr); } }
.referral-card { margin-top: 20px; background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(217, 70, 239, 0.06)), var(--surface); border-color: var(--border-strong); }
.referral-card p { margin: 0; color: var(--muted); }
.referral-link { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.referral-link code { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--cyan-soft); font-size: 13.5px; }
.referral-stats { font-size: 13.5px; }
.referral-gifts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.referral-gifts li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(155, 240, 11, 0.35); background: rgba(155, 240, 11, 0.06); }
.referral-gifts li.used { opacity: 0.55; border-color: var(--border); background: none; }
.referral-gifts li span { flex: 1; color: var(--muted); font-size: 13px; }
.referral-card .muted-note { color: var(--dim); font-size: 12.5px; }

/* Navbar en celulares angostos: con el avatar del usuario no entra todo; queda el logo */
@media (max-width: 430px) {
  .brand-text { display: none; }
  .nav-actions { gap: 6px; }
  .nav-select select { padding: 0 24px 0 10px; }
  .user-menu summary img, .user-initial { width: 32px; height: 32px; }
}

.phone-input { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 8px; }
.phone-input select, .prefix-input {
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: 15px var(--font-body);
}
.phone-input select { cursor: pointer; text-overflow: ellipsis; }
.phone-input select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2); }
.prefix-input { display: flex; align-items: center; gap: 4px; padding: 0 0 0 14px; }
.prefix-input b { color: var(--dim); }
.prefix-input input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; padding-left: 2px; }
.prefix-input:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2); }
.field.has-error .phone-input select, .field.has-error .prefix-input { border-color: #f87171; }
@media (max-width: 430px) { .phone-input { grid-template-columns: minmax(0, 1fr); } }

.delivery-box { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; padding: 12px 14px; border: 1px solid rgba(155, 240, 11, 0.35); border-radius: 12px; background: rgba(155, 240, 11, 0.06); }
.delivery-box p { margin: 0; font-weight: 600; }
.delivery-box small { color: var(--dim); font-size: 12.5px; }
.delivery-box .btn { align-self: flex-start; }

/* --- Juegos sin stock: reemplazo o devolucion --- */
.swap-box { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; padding: 12px 14px; border: 1px solid rgba(251, 191, 36, 0.45); border-radius: 12px; background: rgba(251, 191, 36, 0.07); }
.swap-box p { margin: 0; font-weight: 700; color: #fde68a; }
.swap-box small { color: var(--muted); font-size: 13px; }
.swap-box ul { margin: 4px 0 0 !important; }
.swap-box li { align-items: center; border-bottom: none !important; }
.item-tag { margin-left: 8px; padding: 1px 8px; border-radius: 99px; font-style: normal; font-size: 11.5px; font-weight: 700; background: rgba(251, 191, 36, 0.14); color: #fde68a; }
.item-tag-new { background: rgba(155, 240, 11, 0.12); color: var(--lime); }
.my-order li.item-replaced a, .my-order li.item-refund a { color: var(--dim); text-decoration: line-through; }
.swap-page h1 { margin-top: 12px; }
.swap-search { display: flex; gap: 8px; margin-bottom: 18px; }
.swap-search input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.swap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.swap-option { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.swap-option img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.swap-option strong { display: block; font-size: 14px; line-height: 1.3; }
.swap-info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.swap-info strong { overflow-wrap: anywhere; }
.swap-x360 { padding: 1px 7px; border-radius: 99px; background: rgba(155, 240, 11, 0.12); color: var(--lime); font-size: 11px; font-weight: 700; }
.swap-see { color: var(--cyan); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.swap-see:hover { text-decoration: underline; }
.swap-refund { margin: 26px 0 10px; padding: 14px; border: 1px dashed var(--border); border-radius: 12px; }
.swap-refund p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }

.customer-code { margin: -14px 0 22px; color: var(--muted); font-size: 14px; }
.customer-code small { display: block; color: var(--dim); font-size: 12.5px; }

/* --- Campanita de notificaciones --- */
.notif-menu { position: relative; }
.notif-menu summary { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); list-style: none; cursor: pointer; transition: color 0.15s, border-color 0.15s; }
.notif-menu summary::-webkit-details-marker { display: none; }
.notif-menu summary:hover, .notif-menu[open] summary { color: var(--text); border-color: var(--violet); }
.notif-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.notif-panel { position: absolute; right: -50px; top: calc(100% + 10px); z-index: 70; width: min(340px, calc(100vw - 24px)); padding: 8px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
.notif-head { margin: 4px 8px 6px; font-weight: 700; }
.notif-item { display: flex; flex-direction: column; gap: 3px; padding: 10px; border-radius: 8px; color: var(--text); font-size: 13.5px; line-height: 1.45; text-decoration: none; }
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: rgba(139, 92, 246, 0.1); }
.notif-item.unread span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--violet); vertical-align: 1px; }
.notif-item.pending { border-left: 3px solid #fbbf24; }
.notif-item small { color: var(--dim); font-size: 12px; }
.notif-item small b { color: #fde68a; }
.notif-empty { margin: 6px 10px 10px; color: var(--dim); font-size: 13.5px; }
.notif-all { display: block; margin-top: 4px; padding: 9px 10px; border-top: 1px solid var(--border); color: var(--cyan); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.my-order:target { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet); }
@media (max-width: 430px) {
  .notif-menu summary { width: 34px; height: 34px; }
  .notif-panel { position: fixed; left: 12px; right: 12px; top: calc(var(--nav-h) + 6px); width: auto; }
}
.swap-box li { flex-wrap: wrap; }
.swap-box li span { min-width: 0; flex: 1 1 180px; }
.swap-box li .btn { flex-shrink: 0; margin-left: auto; }
.my-order .replaced-note { display: block; color: var(--dim); font-size: 12.5px; }

/* --- Pedido: horario, edicion y pago --- */
.cart-hours { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.cart-edit-banner { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; padding: 12px; border: 1px solid rgba(139, 92, 246, 0.5); border-radius: 12px; background: rgba(139, 92, 246, 0.1); }
.cart-edit-banner p { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--violet-soft); }
.cart-edit-banner div { display: flex; gap: 8px; flex-wrap: wrap; }
.order-steps { display: flex; gap: 4px; margin: 12px 0 4px; padding: 0; list-style: none; counter-reset: step; }
.order-steps li { flex: 1; min-width: 0; padding-top: 10px; border-top: 3px solid var(--border); color: var(--dim); font-size: 12px; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.order-steps li.done { border-color: var(--lime); color: var(--muted); }
.order-steps li.current { border-color: var(--violet); color: var(--text); }
.order-box { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 10px 0; padding: 12px 14px; border-radius: 12px; }
.order-box p { margin: 0; font-weight: 700; }
.order-box small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.order-box small.bad { color: #fca5a5; font-weight: 600; }
.order-box-info { border: 1px solid rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.06); }
.order-box-pay { border: 1px solid rgba(139, 92, 246, 0.55); background: rgba(139, 92, 246, 0.1); }
.order-box-ok { border: 1px solid rgba(155, 240, 11, 0.35); background: rgba(155, 240, 11, 0.06); }
.order-box-ok p { color: var(--lime); }
.status-pill.status-tomado { background: rgba(139, 92, 246, 0.16); color: var(--violet-soft); }
.status-pill.pay-en_revision { background: rgba(34, 211, 238, 0.12); color: var(--cyan); }
.pay-page h1 { margin-top: 12px; }
.pay-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 8px 0 20px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--muted); }
.pay-total strong { color: var(--cyan-soft); font-family: var(--font-hud); font-size: 26px; }
.pay-subtitle { margin: 22px 0 10px; font-size: 18px; }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.pay-method-form { margin: 0; display: flex; }
.pay-method { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.pay-method:hover:not(.disabled) { border-color: var(--violet); transform: translateY(-1px); }
.pay-method.disabled { opacity: 0.5; cursor: not-allowed; }
.pay-method strong { display: block; font-size: 15px; }
.pay-method small { color: var(--dim); font-size: 12.5px; }
.pay-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); font-size: 20px; }
.pay-transfer { margin-top: 10px; }
.pay-details { margin: 0 0 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: 14px/1.6 ui-monospace, Consolas, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.pay-amount, .pay-ref { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.pay-amount strong { color: var(--text); }
.pay-upload { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 16px; border: 1px dashed var(--border-strong); border-radius: 12px; }
.pay-upload label { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.pay-upload small { color: var(--dim); font-size: 12.5px; }
.pay-upload input[type="file"] { margin-top: 6px; max-width: 100%; color: var(--muted); font: inherit; font-size: 13.5px; }
.pay-icon { color: var(--violet-soft); }
.pay-upload input[type="file"]::file-selector-button { margin-right: 10px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface-2); color: var(--text); font: 600 13px var(--font-body); cursor: pointer; }
.my-order .order-steps li { display: block; padding: 10px 0 0; border-bottom: 0; overflow-wrap: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) {
  .my-order .order-steps li { font-size: 10.5px; letter-spacing: -0.01em; }
}
.pay-deadline { margin: 0 0 6px; padding: 10px 14px; border: 1px solid rgba(251, 191, 36, 0.4); border-radius: 10px; background: rgba(251, 191, 36, 0.07); color: #fde68a; font-size: 13.5px; }
.cart-similar { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 10px; padding: 12px; border: 1px solid rgba(251, 191, 36, 0.45); border-radius: 12px; background: rgba(251, 191, 36, 0.08); }
.cart-similar p { margin: 0; color: #fde68a; font-size: 13.5px; font-weight: 700; }
.cart-similar small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.order-contact { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 0; color: var(--muted); font-size: 13px; }
.order-contact > span { margin-right: 4px; }
.contact-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface-2); color: var(--text); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.contact-chip:hover { border-color: var(--violet); }
.contact-chip svg { flex: none; width: 15px; height: 15px; }
.contact-whatsapp { color: #4ade80; }
.contact-discord { color: #a5b4fc; }

/* --- Mensajes del pedido --- */
.order-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; }
.order-links .has-new { border-color: var(--violet); color: var(--violet-soft); }
.chat-page h1 { margin-top: 12px; }
.chat-thread { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; min-height: 160px; overflow-y: auto; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.chat-msg { max-width: 80%; padding: 10px 13px; border-radius: 14px; background: var(--surface-2); }
.chat-msg p { margin: 2px 0 6px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg small { color: var(--dim); font-size: 11.5px; }
.chat-who { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.chat-client { align-self: flex-end; background: rgba(139, 92, 246, 0.18); border-bottom-right-radius: 4px; }
.chat-admin { align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-img { display: block; max-width: min(260px, 100%); max-height: 260px; margin: 4px 0; border-radius: 10px; object-fit: cover; }
.chat-file { display: inline-block; margin: 4px 0; color: var(--cyan); font-weight: 600; }
.chat-empty { margin: auto; color: var(--dim); text-align: center; font-size: 14px; }
.chat-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.chat-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; resize: vertical; }
.chat-form textarea:focus { outline: none; border-color: var(--violet); }
.chat-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.chat-attach { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; cursor: pointer; }
.chat-attach input { max-width: 200px; font-size: 12.5px; color: var(--muted); }
.chat-attach input::file-selector-button { margin-right: 8px; padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface-2); color: var(--text); font: 600 12.5px var(--font-body); cursor: pointer; }
.chat-form > small { color: var(--dim); font-size: 12.5px; }
.attended-by { margin: 8px 0 0; color: var(--violet-soft); font-size: 13.5px; font-weight: 600; }
.chat-closed { margin-top: 12px; }
.auth-card > .btn, .auth-card form .btn { width: 100%; }

/* Selectores de Mi cuenta (idioma, pais del telefono): mismo estilo que los campos y flecha propia */
.field > select, .phone-input select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
  color: var(--text);
  font: 15px var(--font-body);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field > select:hover, .phone-input select:hover { border-color: var(--border-strong); }
.field > select:focus, .phone-input select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2); }
.field > select option, .phone-input select option { background: var(--surface); color: var(--text); }

/* --- Pagar: opciones grandes y transferencia por pais --- */
.pay-options { display: flex; flex-direction: column; gap: 10px; }
.pay-option-form { margin: 0; }
.pay-option { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.pay-option:hover:not(:disabled):not([aria-disabled]) { border-color: var(--violet); transform: translateY(-1px); }
.pay-option:disabled, .pay-option[aria-disabled] { opacity: 0.5; cursor: not-allowed; }
.pay-option-main { border-color: rgba(139, 92, 246, 0.6); background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(34, 211, 238, 0.06)); box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.15); }
.pay-option.active { border-color: var(--cyan); }
.pay-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.pay-text strong { font-size: 16px; }
.pay-text small { color: var(--muted); font-size: 13px; }
.pay-brands { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.pay-brands em { padding: 2px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--muted); font-size: 11px; font-style: normal; font-weight: 700; }
.pay-go { color: var(--violet-soft); font-size: 20px; font-weight: 700; }
.pay-countries { display: flex; flex-wrap: wrap; gap: 8px; }
.country-chip { padding: 9px 14px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.country-chip:hover { border-color: var(--violet); }
.country-chip.active { border-color: var(--cyan); background: rgba(34, 211, 238, 0.1); color: var(--cyan-soft); }
.pay-country-hint { margin: 8px 0 4px; color: var(--dim); font-size: 12.5px; }
.pay-subtitle.small { font-size: 16px; margin-top: 18px; }
.pay-transfer { scroll-margin-top: 90px; }

/* --- Elegir reemplazo: filtros y tarjetas --- */
.swap-filters { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; margin-bottom: 8px; }
.swap-filters input, .swap-filters select { min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: 14px var(--font-body); }
.swap-filters select { appearance: none; padding-right: 32px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; cursor: pointer; }
.swap-filters input:focus, .swap-filters select:focus { outline: none; border-color: var(--violet); }
.swap-count { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.swap-count a { color: var(--cyan); }
.swap-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.swap-card { display: flex; flex-direction: column; margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); scroll-margin-top: 90px; }
.swap-card:hover { border-color: rgba(139, 92, 246, 0.6); }
.swap-cover { position: relative; display: block; aspect-ratio: 1; background: var(--surface-2); }
.swap-cover img { width: 100%; height: 100%; object-fit: cover; }
.swap-badge { position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 99px; background: rgba(139, 92, 246, 0.9); color: #fff; font-size: 11px; font-weight: 700; }
.swap-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 10px 12px 12px; }
.swap-body strong { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.swap-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.swap-genre { padding: 1px 7px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 600; }
.swap-price { display: flex; align-items: center; gap: 6px; margin-top: auto; }
.swap-price b { color: var(--cyan-soft); font-family: var(--font-hud); font-size: 16px; }
.swap-same { padding: 1px 7px; border-radius: 99px; background: rgba(155, 240, 11, 0.12); color: var(--lime); font-size: 11px; font-weight: 700; }
.swap-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.swap-more { display: flex; justify-content: center; margin-top: 16px; }
@media (max-width: 700px) {
  .swap-filters { grid-template-columns: 1fr 1fr; }
  .swap-filters input { grid-column: 1 / -1; }
  .swap-filters button { grid-column: 1 / -1; }
  .swap-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .swap-actions { flex-direction: column; align-items: stretch; }
  .swap-actions .btn { width: 100%; }
}
.swap-price b { white-space: nowrap; }
.swap-same { white-space: nowrap; }
@media (max-width: 700px) {
  .swap-price { flex-direction: column; align-items: flex-start; gap: 3px; }
  .swap-body strong { font-size: 13.5px; }
}

/* Oferta con fecha de fin */
.badge-sale { background: linear-gradient(90deg, #dc2626, #f97316); color: #fff; box-shadow: 0 0 12px rgba(239, 68, 68, 0.5); white-space: nowrap; }
.modal-sale { margin: 10px 0 0; padding: 9px 12px; border: 1px solid rgba(249, 115, 22, 0.45); border-radius: 10px; background: rgba(249, 115, 22, 0.08); color: #fdba74; font-size: 13.5px; font-weight: 600; }
.modal-sale { margin-bottom: 14px; }

/* --- Mis pedidos (rediseño) --- */
.orders-tabs { display: flex; gap: 6px; margin: 4px 0 18px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); width: fit-content; }
.orders-tabs a { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; }
.orders-tabs a b { min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 12px; text-align: center; }
.orders-tabs a.active { background: rgba(139, 92, 246, 0.18); color: var(--text); }
.orders-tabs a.active b { background: var(--violet); color: #fff; }
.orders-empty-tab { color: var(--dim); }
.order-cards { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.order-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); scroll-margin-top: 90px; }
.order-card:target { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet); }
.oc-cancelado { opacity: 0.75; }
.oc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.oc-id strong { display: block; font-family: var(--font-display); font-size: 19px; }
.oc-id small { color: var(--dim); font-size: 13px; }
.oc-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.oc-total { text-align: right; }
.oc-total span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.oc-total strong { color: var(--cyan-soft); font-family: var(--font-hud); font-size: 24px; }
.oc-total small { display: block; color: var(--lime); font-size: 12px; }
.oc-cancelled { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
/* linea de tiempo */
.oc-timeline { position: relative; display: grid; grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr)); margin: 4px 0 0; padding: 0; list-style: none; }
.oc-timeline .tl-label, .oc-timeline .tl-time { overflow-wrap: anywhere; }

.oc-timeline li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.oc-timeline li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 3px; background: var(--border); z-index: 0; }
.oc-timeline li:first-child::before { display: none; }
.oc-timeline li.done::before, .oc-timeline li.current::before { background: linear-gradient(90deg, var(--lime), var(--violet)); }
.tl-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--border-strong); border-radius: 50%; background: var(--surface); color: #0b0b13; }
.oc-timeline li.done .tl-dot { border-color: var(--lime); background: var(--lime); }
.oc-timeline li.current .tl-dot { border-color: var(--violet); }
.tl-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--violet); animation: tl-pulse 1.4s ease-in-out infinite; }
@keyframes tl-pulse { 50% { transform: scale(0.6); opacity: 0.5; } }
.tl-label { color: var(--dim); font-size: 12.5px; font-weight: 700; }
.oc-timeline li.done .tl-label { color: var(--text); }
.oc-timeline li.current .tl-label { color: var(--violet-soft); }
.tl-time { min-height: 15px; color: var(--dim); font-size: 11px; }
/* entrega estimada */
.oc-eta { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid rgba(34, 211, 238, 0.45); border-radius: 14px; background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(139, 92, 246, 0.08)); }
.oc-eta-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(34, 211, 238, 0.15); color: var(--cyan); flex: none; }
.oc-eta strong { display: block; font-size: 17px; color: var(--cyan-soft); }
.oc-eta small { color: var(--muted); font-size: 12.5px; }
.oc-eta.late { border-color: rgba(251, 191, 36, 0.5); background: rgba(251, 191, 36, 0.08); }
.oc-eta.late strong, .oc-eta.late .oc-eta-icon { color: #fde68a; }
/* avance de compra */
.oc-progress { display: flex; flex-direction: column; gap: 6px; }
.oc-progress-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.oc-progress-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--violet), var(--cyan)); transition: width 0.4s; }
.oc-progress small { color: var(--muted); font-size: 13px; }
.oc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.order-card .order-box, .order-card .swap-box, .order-card .delivery-box, .order-card .order-contact, .order-card .attended-by { margin: 0; }
/* lista de juegos */
.oc-games summary { cursor: pointer; color: var(--cyan); font-weight: 600; font-size: 14px; }
.oc-games ul { list-style: none; margin: 10px 0 0; padding: 0; }
.oc-games li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 14px; }
.oc-games li img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; background: var(--surface-2); flex: none; }
.oc-game-title { flex: 1; min-width: 0; }
.oc-game-title a { color: var(--text); text-decoration: none; }
.oc-games li.item-replaced a, .oc-games li.item-refund a { color: var(--dim); text-decoration: line-through; }
@media (max-width: 560px) {
  .order-card { padding: 16px; }
  .oc-total { text-align: left; }
  .tl-label { font-size: 10.5px; }
  .tl-time { font-size: 9.5px; }
  .tl-dot { width: 24px; height: 24px; }
  .oc-timeline li::before { top: 11px; }
}

/* --- Chat del pedido (rediseño) --- */
.chat-page { max-width: 820px; padding-top: 28px; }
.chat-card { display: flex; flex-direction: column; margin-top: 14px; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(34, 211, 238, 0.05)); }
.chat-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #000; box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.5); flex: none; }
.chat-who-box { flex: 1; min-width: 0; }
.chat-who-box strong { display: block; font-size: 16px; }
.chat-who-box small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat-card .chat-thread { display: flex; flex-direction: column; gap: 6px; height: min(58vh, 560px); min-height: 300px; max-height: none; margin: 0; padding: 18px 16px; border: 0; border-radius: 0; background: radial-gradient(circle at 20% 0%, rgba(139, 92, 246, 0.06), transparent 50%), var(--bg); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(139, 92, 246, 0.45) transparent; }
.chat-card .chat-thread::-webkit-scrollbar { width: 6px; }
.chat-card .chat-thread::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.45); border-radius: 99px; }
.chat-day { display: flex; justify-content: center; margin: 8px 0; }
.chat-day span { padding: 3px 12px; border-radius: 99px; background: var(--surface-2); color: var(--dim); font-size: 11.5px; font-weight: 600; }
.chat-row { display: flex; align-items: flex-end; gap: 8px; max-width: 82%; }
.chat-row.chat-client { align-self: flex-end; flex-direction: row-reverse; }
.chat-row.chat-admin { align-self: flex-start; }
.chat-mini-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--cyan)); color: #fff; font-size: 12px; font-weight: 800; flex: none; }
.chat-bubble { padding: 9px 13px 7px; border-radius: 18px; background: var(--surface-2); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.chat-client .chat-bubble { border-bottom-right-radius: 6px; background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff; }
.chat-admin .chat-bubble { border-bottom-left-radius: 6px; border: 1px solid var(--border); }
.chat-author { display: block; margin-bottom: 2px; color: var(--cyan); font-size: 12px; font-weight: 700; }
.chat-bubble p { margin: 0; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-time { display: block; margin-top: 3px; text-align: right; font-size: 10.5px; opacity: 0.7; }
.chat-card .chat-img { display: block; max-width: min(260px, 100%); max-height: 260px; margin: 6px 0 2px; border-radius: 12px; object-fit: cover; }
.chat-card .chat-file { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 2px; padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); color: inherit; font-size: 13px; font-weight: 600; text-decoration: none; }
.chat-card .chat-file span { padding: 2px 6px; border-radius: 5px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; }
.chat-empty-state { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: auto; max-width: 340px; color: var(--muted); text-align: center; }
.chat-empty-state span { font-size: 38px; }
.chat-empty-state strong { color: var(--text); font-size: 17px; }
.chat-empty-state p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.chat-composer { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-input-row { display: flex; align-items: flex-end; gap: 8px; }
.chat-input-row textarea { flex: 1; min-height: 44px; max-height: 160px; padding: 11px 16px; border: 1px solid var(--border); border-radius: 22px; background: var(--bg); color: var(--text); font: 14.5px/1.4 var(--font-body); resize: none; overflow-y: auto; }
.chat-input-row textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18); }
.chat-icon-btn, .chat-send { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.chat-icon-btn { border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); }
.chat-icon-btn:hover { border-color: var(--violet); color: var(--text); }
.chat-icon-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chat-send { border: 0; background: linear-gradient(135deg, #7c3aed, #d946ef); color: #fff; box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4); }
.chat-send:hover { transform: translateY(-1px) scale(1.03); }
.chat-send:disabled { opacity: 0.6; transform: none; }
.chat-file-chip { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; max-width: 100%; padding: 5px 8px 5px 12px; border-radius: 99px; background: rgba(139, 92, 246, 0.15); color: var(--violet-soft); font-size: 12.5px; }
.chat-file-chip button { border: 0; background: none; color: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.chat-closed-bar { margin: 0; padding: 14px 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13.5px; }
.chat-hint { margin: 10px 4px; color: var(--dim); font-size: 12.5px; }
@media (max-width: 560px) {
  .chat-page { padding-top: 16px; }
  .chat-card { border-radius: 16px; }
  .chat-card .chat-thread { height: calc(100vh - 290px); min-height: 260px; padding: 14px 10px; }
  .chat-row { max-width: 92%; }
}
/* El chat nuevo no usa los fondos del chat anterior en las filas */
.chat-card .chat-row.chat-client, .chat-card .chat-row.chat-admin { max-width: 82%; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
@media (max-width: 560px) {
  .chat-card .chat-row.chat-client, .chat-card .chat-row.chat-admin { max-width: 92%; }
  .chat-header { padding: 12px; gap: 10px; }
  .chat-header .status-pill { font-size: 10.5px; padding: 2px 8px; }
  .chat-who-box strong { font-size: 15px; }
}
.stat-or { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.stat-or b { color: var(--text); }

/* Confirmando el pago */
.pay-confirming { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 18px 0 8px; padding: 28px 20px; border: 1px solid rgba(139, 92, 246, 0.45); border-radius: 18px; background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(34, 211, 238, 0.06)); text-align: center; }
.pay-confirming strong { font-size: 19px; }
.pay-confirming p { margin: 0; max-width: 460px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.pay-spinner { width: 44px; height: 44px; border: 4px solid rgba(139, 92, 246, 0.25); border-top-color: var(--violet); border-radius: 50%; animation: pay-spin 0.9s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
.pay-other { margin: 6px 0 0; text-align: center; font-size: 13.5px; }
.pay-other a { color: var(--muted); }

/* --- Ver datos de la cuenta (entrega segura) --- */
.account-view { max-width: 720px; }
.account-view h1 { margin-top: 12px; }
.av-card { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.av-card h2 { margin: 0; font-size: 18px; }
.av-intro, .av-sent { margin: 0; color: var(--muted); line-height: 1.5; }
.av-sent { color: var(--lime); }
.av-code-form { display: flex; gap: 10px; flex-wrap: wrap; }
.av-code { flex: 1 1 200px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); font: 700 26px/1 ui-monospace, Consolas, monospace; letter-spacing: 8px; text-align: center; }
.av-code:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2); }
.av-fields { display: flex; flex-direction: column; gap: 10px; }
.av-field { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 12px 14px; border: 1px solid rgba(155, 240, 11, 0.35); border-radius: 12px; background: rgba(155, 240, 11, 0.05); }
.av-field span { grid-column: 1 / -1; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.av-field code { font-size: 17px; overflow-wrap: anywhere; }
.av-notes p { grid-column: 1 / -1; margin: 0; white-space: pre-wrap; }
.av-hides { margin: 0; color: var(--dim); font-size: 13px; }
.av-purged { margin: 0; color: var(--muted); }
.av-tips ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.6; }
.muted-text { margin: 0; color: var(--muted); font-size: 14px; }
/* Garantia y guia */
.warranty-reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.warranty-reason { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); cursor: pointer; }
.warranty-reason:has(input:checked) { border-color: var(--violet); background: rgba(139, 92, 246, 0.1); }
.warranty-reason input { accent-color: var(--violet); }
.warranty-detail { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13.5px; }
.warranty-detail textarea { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font-body); resize: vertical; }
.warranty-detail textarea:focus { outline: none; border-color: var(--violet); }
.guide-page { max-width: 780px; }
.guide-step { flex-direction: row; align-items: flex-start; gap: 16px; }
.guide-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--cyan)); color: #fff; font-weight: 800; font-size: 18px; flex: none; }
.guide-step ol, .guide-dont ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.65; }
.guide-dont { border-color: rgba(251, 191, 36, 0.4); }
.oc-warranty { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: 12px; }
.oc-warranty small { color: var(--muted); }

/* --- Resenas --- */
.stars { color: #fbbf24; letter-spacing: 1px; }
.stars-off { color: var(--border-strong); }
.trust-stats { color: var(--muted); }
.trust-stats strong { color: var(--text); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.review-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.review-card p { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.55; }
.review-card footer { margin-top: auto; color: var(--muted); font-size: 13px; }
.oc-review { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid rgba(251, 191, 36, 0.35); border-radius: 12px; background: rgba(251, 191, 36, 0.05); }
.oc-review textarea { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font: 14px var(--font-body); resize: vertical; }
.oc-review .btn { align-self: flex-start; }
.oc-review-done { margin: 0; color: var(--muted); font-size: 14px; }
/* estrellas para elegir (de 5 a 1, con :has para pintar las anteriores) */
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 30px; line-height: 1; color: var(--border-strong); cursor: pointer; transition: color 0.1s, transform 0.1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #fbbf24; }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 2px solid var(--violet); border-radius: 4px; }

/* --- Favoritos ---------------------------------------------------------------- */
.fav-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 5, 10, 0.72);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.fav-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.fav-toggle:hover { border-color: #f472b6; transform: scale(1.08); }
.fav-toggle.is-on { color: #f472b6; border-color: rgba(244, 114, 182, 0.6); }
.fav-toggle.is-on svg { fill: currentColor; }
.fav-toggle.pop { animation: fav-pop 0.35s ease; }
@keyframes fav-pop { 40% { transform: scale(1.3); } }
.game-card > .fav-toggle { position: absolute; top: 8px; right: 8px; z-index: 2; }
.modal-buy-actions { display: flex; gap: 10px; align-items: center; }
.fav-toggle.fav-inline { width: 42px; height: 42px; background: var(--surface-2); border-color: var(--border-strong); }

.favorites-page { padding-bottom: 60px; }
.fav-list { list-style: none; margin: 24px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fav-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.fav-row.is-gone { opacity: 0.6; }
.fav-cover img { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; background: #000; display: block; }
.fav-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fav-title { color: var(--text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.fav-title:hover { color: var(--violet-soft); }
.fav-price { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fav-price strong { font-family: var(--font-hud); font-size: 19px; color: var(--cyan-soft); }
.fav-price s { color: var(--dim); font-size: 14px; }
.badge-drop { background: rgba(155, 240, 11, 0.16); color: var(--lime); border: 1px solid rgba(155, 240, 11, 0.4); }
.fav-gone { color: var(--muted); font-size: 13px; }
.fav-actions { display: flex; gap: 8px; align-items: center; }
.fav-empty { margin: 28px 0; padding: 32px 20px; text-align: center; border: 1px dashed var(--border-strong); border-radius: 16px; color: var(--muted); }
.fav-empty p { margin: 0 0 10px; }
.fav-empty strong { color: var(--text); font-size: 18px; }
.fav-alerts { max-width: 640px; }
.fav-alerts p { margin: 0; color: var(--muted); font-size: 14px; }
.fav-alerts .switch-row { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.fav-alerts .switch-row input { width: 18px; height: 18px; accent-color: var(--violet); }
.fav-alerts .btn { align-self: flex-start; }
@media (max-width: 600px) {
  .fav-row { grid-template-columns: 56px minmax(0, 1fr); }
  .fav-cover img { width: 56px; height: 56px; }
  .fav-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* --- Pagina de cada juego (/juego/...) ----------------------------------------- */
a.game-title { color: inherit; text-decoration: none; }
.modal-link { color: var(--cyan-soft); text-decoration: none; }
.modal-link:hover { text-decoration: underline; }
.game-page { padding-top: 24px; padding-bottom: 60px; max-width: 920px; }
.game-crumbs { display: flex; gap: 8px; margin-bottom: 14px; color: var(--dim); font-size: 13.5px; overflow: hidden; white-space: nowrap; }
.game-crumbs a { color: var(--muted); text-decoration: none; }
.game-crumbs span:last-child { overflow: hidden; text-overflow: ellipsis; }
.game-page-card { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--surface); }
.game-page-card h1 { font-size: clamp(22px, 3.4vw, 32px); line-height: 1.15; }
.game-page-pack { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--border-strong); color: var(--muted); font-size: 14px; }
.game-page-desc { max-height: none; white-space: pre-line; }
.game-page-desc::after { display: none; }
.game-page-card > .modal-body:first-child { margin-top: 0; padding-top: 24px; }

/* --- Codigos de Xbox (/codigos) ------------------------------------------------- */
.codes-page { padding-bottom: 60px; }
.codes-perks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; padding: 0; }
.codes-perks li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 13.5px; }
.codes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.code-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); transition: border-color 0.15s, transform 0.15s; }
.code-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.code-card.is-out { opacity: 0.6; }
.code-cover { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.12)), #000; display: grid; place-items: center; }
.code-cover img { width: 100%; height: 100%; object-fit: cover; }
.code-cover-icon { font-size: 44px; }
.code-region { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(5, 5, 10, 0.78); border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.code-cover .code-region { position: absolute; top: 10px; left: 10px; backdrop-filter: blur(6px); }
.code-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }
.code-kind { color: var(--cyan-soft); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.code-body h2 { font-size: 18px; line-height: 1.25; }
.code-desc, .code-region-note { margin: 0; color: var(--muted); font-size: 13.5px; }
.code-region-note { font-size: 12.5px; color: var(--dim); }
.code-buy { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; }
.code-buy strong { font-family: var(--font-hud); font-size: 24px; color: var(--cyan-soft); white-space: nowrap; }
.code-stock { text-align: right; }
.code-stock { font-size: 12.5px; color: var(--lime); }
.code-stock.out { color: #fca5a5; }
.code-form { display: flex; gap: 10px; align-items: flex-end; }
.code-form label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12.5px; }
.code-form select { padding: 9px 10px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); }
.code-form .btn { flex: 1; }
.code-msg { margin: 0; font-size: 13px; color: #fca5a5; }
.code-msg:empty { display: none; }
.oc-codes { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.oc-codes li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.oc-codes img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.oc-codes .oc-game-title { flex: 1; }
.region-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(34, 211, 238, 0.12); color: var(--cyan-soft); font-style: normal; font-size: 12px; }
.code-delivery-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.code-delivery-head strong { display: block; font-size: 17px; margin-bottom: 6px; }
.code-delivery .code-region { background: rgba(34, 211, 238, 0.1); border-color: rgba(34, 211, 238, 0.35); color: var(--cyan-soft); }
.redeem { margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.redeem h3 { font-size: 15px; margin-bottom: 10px; }
.redeem ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.redeem-link { margin: 12px 0 0; }
.redeem-link a { color: var(--cyan-soft); word-break: break-all; }
.redeem-important { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(251, 191, 36, 0.1); color: #fcd34d; font-size: 13.5px; }
.redeem-custom { white-space: pre-line; color: var(--muted); font-size: 14px; line-height: 1.6; }
.codes-view .av-card + .av-card { margin-top: 16px; }

.nav-preview { margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: rgba(251, 191, 36, 0.15); color: #fcd34d; font-size: 10.5px; font-weight: 600; vertical-align: 2px; }

/* --- Pagina de un producto de codigos -------------------------------------------- */
.code-cover-link { display: block; width: 100%; height: 100%; display: grid; place-items: center; }
.code-body h2 a { color: inherit; text-decoration: none; }
.code-body h2 a:hover { color: var(--violet-soft); }
.code-more { color: var(--cyan-soft); font-size: 13px; text-decoration: none; }
.code-more:hover { text-decoration: underline; }
.code-page { padding-top: 24px; padding-bottom: 60px; }
.code-page-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.code-gallery-main { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.12)), #000; display: grid; place-items: center; }
.code-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.code-gallery-main .code-region { position: absolute; top: 12px; left: 12px; backdrop-filter: blur(6px); }
.code-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.code-thumbs button { flex: 0 0 96px; aspect-ratio: 16 / 9; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #000; cursor: pointer; opacity: 0.7; }
.code-thumbs button.active, .code-thumbs button:hover { border-color: var(--violet); opacity: 1; }
.code-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.code-buy-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); position: sticky; top: calc(var(--nav-h) + 16px); }
.code-buy-card h1 { font-size: clamp(22px, 3vw, 28px); line-height: 1.2; }
.code-region-box { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px; border-radius: 12px; background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.3); font-size: 20px; }
.code-region-box span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.code-region-box small { color: var(--muted); font-size: 12.5px; }
.codes-perks-col { flex-direction: column; margin: 4px 0 0; }
.code-details { margin-top: 28px; }
.code-details h2 { font-size: 20px; margin-bottom: 12px; }
.code-details-text { white-space: pre-line; color: var(--muted); font-size: 14.5px; line-height: 1.7; max-width: 820px; }
@media (max-width: 860px) {
  .code-page-grid { grid-template-columns: minmax(0, 1fr); }
  .code-buy-card { position: static; }
}
.redeem-locked p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }

/* Tarjeta de codigo: bloques con aire (contenido arriba, compra abajo) */
.code-body { gap: 0; padding: 0; }
.code-top { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 14px; flex: 1; }
.code-top h2 { font-size: 18px; line-height: 1.3; margin: 0; }
.code-top .code-desc { font-size: 13.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.code-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.code-region-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.3); color: var(--cyan-soft); font-size: 12.5px; font-weight: 600; }
.code-foot { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px 18px; border-top: 1px solid var(--border); background: rgba(255, 255, 255, 0.015); }
.code-foot .code-buy { margin: 0; padding: 0; align-items: center; }
.code-foot .code-buy strong { font-size: 26px; line-height: 1; }
.code-foot .code-stock { padding: 4px 10px; border-radius: 999px; background: rgba(155, 240, 11, 0.1); border: 1px solid rgba(155, 240, 11, 0.3); font-size: 12px; font-weight: 600; white-space: nowrap; text-align: left; }
.code-foot .code-stock.out { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.35); }
.code-form { align-items: stretch; gap: 8px; }
.code-qty { flex-direction: row !important; align-items: center; gap: 6px !important; padding: 0 4px 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); }
.code-qty span { color: var(--muted); font-size: 12.5px; }
.code-qty select { border: 0; background: transparent; padding: 10px 6px; font-weight: 700; }
.code-form .btn { flex: 1; }

.code-confirm h2 { font-size: 17px; margin-bottom: 6px; }
.code-confirm p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.code-confirm form { display: flex; flex-wrap: wrap; gap: 10px; }
.code-confirm-done, .oc-confirmed { margin: 0; color: var(--lime); font-size: 14px; }
.codes-view .code-confirm { margin-bottom: 16px; border-color: rgba(155, 240, 11, 0.3); }
.oc-timeline li.is-claim .tl-dot { border-color: #f87171; background: #f87171; }
.oc-timeline li.is-claim .tl-label { color: #fca5a5; }
.delivery-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.delivery-actions form { margin: 0; }

/* En celular la linea de tiempo va vertical: un paso por renglon, nunca se desborda */
@media (max-width: 640px) {
  .order-card .oc-timeline { display: flex !important; flex-direction: column; margin-top: 8px; }
  .order-card .oc-timeline li { flex-direction: row !important; align-items: center; justify-content: flex-start; gap: 10px; text-align: left; min-height: 34px; }
  .order-card .oc-timeline li::before { top: auto !important; right: auto !important; bottom: 50%; left: 10.5px; width: 3px !important; height: 100% !important; }
  .order-card .oc-timeline li .tl-label { font-size: 13px; flex: 1; }
  .order-card .oc-timeline li .tl-time { font-size: 11.5px; min-height: 0; }
  .order-card .oc-timeline li .tl-dot { flex-shrink: 0; }
}
.unsub-card { max-width: 560px; margin: 40px auto; }
.unsub-card h1 { font-size: 24px; margin-bottom: 10px; }
.unsub-card p { color: var(--muted); }
/* En celular, "Iniciar sesion" solo con el icono y del mismo tamaño que el carrito y el menu (42x42) */
@media (max-width: 520px) {
  .nav-login span { display: none; }
  .navbar .nav-login {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    border-radius: 10px;
    flex-shrink: 0;
  }
  .navbar .nav-login svg { width: 19px; height: 19px; }
}
/* Celulares chicos (iPhone SE, 320-380 px): todo un poco mas compacto para que entre el menu */
@media (max-width: 380px) {
  .navbar .nav-actions { gap: 5px; }
  .navbar .nav-select select { height: 36px; padding: 0 22px 0 9px; background-position: right 7px center; font-size: 12px; }
  .navbar .nav-cart, .navbar .nav-toggle, .navbar .nav-login { width: 38px; height: 38px; }
  .navbar .brand-logo { width: 38px; height: 38px; }
}
