:root {
  --bg: #070a16;
  --bg-2: #0d1226;
  --panel: rgba(18, 24, 48, 0.72);
  --panel-border: rgba(255, 255, 255, 0.09);
  --turq: #16D6C4;
  --turq-soft: rgba(22, 214, 196, 0.14);
  --line: rgba(255, 255, 255, 0.09);
  --panel-2: rgba(18, 24, 48, 0.85);
  --text: #f5f7ff;
  --muted: #9aa3c0;
  --orange: #ff7a3c;
  --coral: #ff4e6b;
  --gold: #ffc93c;
  --cyan: #22d3ee;
  --violet: #a855f7;
  --green: #22c55e;
  --radius: 20px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font-display: 'Baloo 2', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

img { max-width: 100%; height: auto; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 122, 60, 0.16), transparent 60%),
    radial-gradient(1000px 700px at 0% 10%, rgba(34, 211, 238, 0.14), transparent 55%),
    radial-gradient(900px 700px at 100% 100%, rgba(168, 85, 247, 0.14), transparent 55%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body.theme-halloween {
  --bg: #09050f;
  --bg-2: #14091d;
  --panel: rgba(28, 13, 31, 0.78);
  --panel-border: rgba(255, 151, 46, 0.2);
  --turq: #ff8a1f;
  --turq-soft: rgba(255, 138, 31, 0.14);
  --line: rgba(255, 168, 66, 0.14);
  --panel-2: rgba(20, 9, 29, 0.9);
  --text: #fff2e8;
  --muted: #cba9bf;
  --orange: #ff7a18;
  --coral: #a44cff;
  --gold: #ffd166;
  --cyan: #ffb347;
  --violet: #7c3aed;
  --green: #8aff5c;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(124, 58, 237, 0.25), transparent 58%),
    radial-gradient(900px 600px at 90% 15%, rgba(255, 122, 24, 0.18), transparent 58%),
    radial-gradient(800px 600px at 50% 100%, rgba(164, 76, 255, 0.16), transparent 60%),
    radial-gradient(130% 120% at 50% 50%, transparent 52%, rgba(0, 0, 0, 0.62) 100%),
    linear-gradient(180deg, #10070f 0%, #060309 58%, #020104 100%);
}

/* Niebla y ambiente tenebroso de Halloween */
body.theme-halloween::before,
body.theme-halloween::after {
  content: '';
  position: fixed;
  inset: -30%;
  z-index: 1;
  pointer-events: none;
  filter: blur(30px);
  will-change: transform, opacity;
}
body.theme-halloween::before {
  background:
    radial-gradient(ellipse 42% 30% at 22% 38%, rgba(214, 196, 235, 0.16), transparent 70%),
    radial-gradient(ellipse 48% 32% at 62% 58%, rgba(190, 168, 220, 0.14), transparent 72%),
    radial-gradient(ellipse 55% 34% at 42% 82%, rgba(168, 150, 205, 0.12), transparent 72%),
    radial-gradient(ellipse 40% 28% at 80% 18%, rgba(220, 205, 235, 0.12), transparent 70%);
  animation: halloweenFogA 34s ease-in-out infinite alternate;
}
body.theme-halloween::after {
  background:
    radial-gradient(ellipse 46% 30% at 74% 44%, rgba(220, 205, 235, 0.12), transparent 70%),
    radial-gradient(ellipse 50% 32% at 30% 70%, rgba(200, 180, 222, 0.11), transparent 72%);
  animation: halloweenFogB 46s ease-in-out infinite alternate;
}
@keyframes halloweenFogA {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.5; }
  50%  { transform: translate3d(-5%, -4%, 0) scale(1.08); opacity: 0.75; }
  100% { transform: translate3d(4%, 3%, 0) scale(1.04); opacity: 0.55; }
}
@keyframes halloweenFogB {
  0%   { transform: translate3d(0, 0, 0) scale(1.05); opacity: 0.55; }
  50%  { transform: translate3d(5%, 4%, 0) scale(1); opacity: 0.4; }
  100% { transform: translate3d(-4%, -3%, 0) scale(1.07); opacity: 0.6; }
}

body.theme-halloween .site-header {
  background: linear-gradient(180deg, rgba(20, 9, 29, 0.82), rgba(9, 5, 15, 0.4));
  border-bottom-color: rgba(255, 153, 51, 0.18);
}

body.theme-halloween .btn-primary {
  background: linear-gradient(135deg, #ff7a18, #a44cff);
  box-shadow: 0 16px 38px rgba(124, 58, 237, 0.32);
}

body.theme-halloween .btn-gold,
body.theme-halloween .btn-spin {
  background: linear-gradient(135deg, #ffb347, #ff7a18, #7c3aed);
  color: #220c00;
}

body.theme-halloween .hero-title {
  background: linear-gradient(180deg, #fff7e6 0%, #ffbe6b 42%, #ff7a18 75%, #b56cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 34px rgba(164, 76, 255, 0.18);
}

/* Transición suave de color al entrar (desde el color de la tienda) */
.page-fade {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 82% -12%, rgba(22, 214, 196, 0.14), transparent 58%),
    radial-gradient(900px 700px at -5% 8%, rgba(58, 140, 220, 0.16), transparent 55%),
    linear-gradient(180deg, #0d7fa3 0%, #0a5f85 42%, #074263 78%, #062d40 100%);
  animation: pageFade 0.9s ease forwards;
}
@keyframes pageFade {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* Fondo de estrellas */
.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: 0.7;
  animation: twinkle 3.5s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

/* Header */
.site-header {
  position: relative;
  z-index: 5;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(13, 18, 38, 0.6), rgba(7, 10, 22, 0.18));
  border-bottom: 1px solid var(--panel-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 64px; width: auto; display: block; flex: 0 0 auto; }
.header-links { display: flex; align-items: center; gap: 6px; }
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.header-link:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); transform: translateY(-1px); }
.header-link svg { flex: 0 0 auto; }
.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
}
.ip-value { font-weight: 700; font-size: 14px; }
.brand-mark { font-size: 28px; filter: drop-shadow(0 0 10px rgba(255, 201, 60, 0.5)); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.3px;
  color: #fff;
}
.brand-name em {
  font-style: normal;
  background: linear-gradient(90deg, var(--orange), var(--coral), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.header-actions { display: flex; align-items: center; gap: 12px; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--panel-border);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.user-chip:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.18); }
.user-chip-avatar {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}
.user-chip-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chip-logout {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 6px;
}
.chip-logout:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
  color: #fff;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-big { padding: 16px 30px; font-size: 17px; border-radius: 18px; }
.btn-full { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--coral));
  box-shadow: 0 12px 32px rgba(255, 78, 107, 0.35);
}
.btn-primary:hover { box-shadow: 0 16px 42px rgba(255, 78, 107, 0.5); filter: brightness(1.05); }

.btn-gold {
  background: linear-gradient(135deg, #ffc93c, #ff9d2e);
  color: #3a2400;
  box-shadow: 0 12px 32px rgba(255, 201, 60, 0.3);
}
.btn-gold:hover { box-shadow: 0 16px 42px rgba(255, 201, 60, 0.45); filter: brightness(1.03); }

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.11); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn-spin {
  position: relative;
  overflow: hidden;
  background: conic-gradient(from 0deg, var(--orange), var(--gold), var(--coral), var(--orange));
  color: #2a1200;
  font-size: 22px;
  font-family: var(--font-display);
  letter-spacing: 1px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 44px rgba(255, 150, 50, 0.55), 0 0 0 3px rgba(255, 201, 60, 0.18);
  animation: pulse-spin 1.6s ease-in-out infinite;
}
.btn-spin::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.65) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: spinShine 2.1s ease-in-out infinite;
  pointer-events: none;
}
.btn-spin:disabled {
  filter: saturate(0.8) brightness(0.9);
  cursor: progress;
}
@keyframes pulse-spin {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes spinShine {
  0% { left: -120%; }
  45% { left: 140%; }
  100% { left: 140%; }
}

/* Carrito */
.cart-btn { position: relative; }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: linear-gradient(135deg, var(--orange), var(--coral));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255, 78, 107, 0.45);
}
.cart-card { width: min(460px, 100%); max-height: 86vh; overflow-y: auto; text-align: left; }
.cart-card h2 { text-align: center; }
.cart-items { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.cart-empty { color: var(--muted); text-align: center; margin: 8px 0; }
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
}
.cart-item-info strong { display: block; font-size: 15px; }
.cart-item-info small { color: var(--muted); font-size: 12px; }
.cart-item-ctrl { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.qty-btn:hover { background: rgba(255, 255, 255, 0.14); }
.qty-val { min-width: 24px; text-align: center; font-weight: 700; }
.cart-item-sub { font-weight: 700; color: var(--gold); white-space: nowrap; }
.cart-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  padding: 4px 6px;
  border-radius: 6px;
}
.cart-remove:hover { color: #ff6b81; background: rgba(255, 78, 107, 0.12); }
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 6px;
  margin-bottom: 14px;
  border-top: 1px solid var(--panel-border);
}
.cart-total span { color: var(--muted); }
.cart-total strong { font-size: 24px; font-family: var(--font-display); color: var(--gold); }
.creator-code-row { display: flex; gap: 8px; margin: 2px 0 6px; }
.creator-code-row .input { flex: 1; }
.creator-code-status { margin: 0 0 10px; font-size: 13px; min-height: 18px; }
.creator-code-status.ok { color: #7ff0c8; }
.creator-code-status.err { color: #ff8aa0; }

/* Vistas */
.view { display: none; position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 24px 28px 80px; }
.view.is-active { display: block; animation: viewIn 0.5s ease; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero */
.hero { text-align: center; padding-top: 18px; }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 8px;
  font-size: 14px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(46px, 9vw, 96px);
  line-height: 0.98;
  margin: 0;
  background: linear-gradient(180deg, #fff 0%, #ffe3b3 40%, #ff9d5c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 50px rgba(255, 160, 80, 0.12);
}
.hero-desc {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

/* Ruleta del inicio */
.wheel-stage {
  position: relative;
  width: min(520px, 86vw);
  height: min(520px, 86vw);
  margin: 34px auto 8px;
}
.wheel-stage canvas {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 24px 70px rgba(0, 0, 0, 0.6));
}
.wheel-glow {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 201, 60, 0.22), rgba(255, 122, 60, 0.10) 48%, transparent 72%);
  filter: blur(26px);
  animation: glowPulse 4s ease-in-out infinite;
  z-index: 1;
}
@keyframes glowPulse { 0%, 100% { opacity: 0.75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes spinGlow { to { transform: rotate(360deg); } }

/* Tooltip de lore (estilo Minecraft) */
.wheel-tooltip {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(24, 12, 52, 0.97), rgba(9, 4, 24, 0.97));
  border: 2px solid #7b46ff;
  border-radius: 4px;
  padding: 8px 12px;
  min-width: 150px;
  max-width: 270px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.75),
    0 12px 30px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(120, 80, 255, 0.4);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.45;
}
.wheel-tooltip .wt-title {
  font-weight: 700;
  color: #ffffff;
  font-size: 15px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}
.wheel-tooltip .wt-lore {
  color: #b3aad6;
  font-size: 13px;
  margin-top: 3px;
}

/* Paneles */
.glass {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.code-panel {
  max-width: 560px;
  margin: 46px auto 0;
  padding: 28px;
  text-align: center;
}
.code-panel h2 { margin: 0; font-family: var(--font-display); font-size: 26px; }
.code-panel p { color: var(--muted); margin: 8px 0 18px; }
.code-form { display: flex; gap: 10px; }
.input {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--panel-border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  border-radius: 14px;
  outline: none;
  letter-spacing: 0.5px;
}
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 201, 60, 0.15); }
.code-panel .btn-outline { margin-top: 12px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.feature-card { padding: 24px; text-align: center; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4); border-color: rgba(255, 255, 255, 0.16); }
.feature-icon { font-size: 34px; filter: drop-shadow(0 6px 14px rgba(255, 255, 255, 0.18)); }
.feature-card h3 { margin: 12px 0 6px; font-family: var(--font-display); font-size: 20px; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.55; }

/* Sección de ruletas */
.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}
.section-spacer { flex: 1; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 44px);
  margin: 0;
}
.section-subtitle { color: var(--muted); margin: 4px 0 0; }

.wheels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.wheel-card {
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.wheel-card:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(0,0,0,0.5); }
.wheel-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(300px 120px at 50% 0%, var(--card-glow, rgba(255,122,60,0.18)), transparent 70%);
  pointer-events: none;
}
.wheel-card .mini-wheel { width: min(210px, 60vw); height: min(210px, 60vw); margin: 6px auto 14px; position: relative; }
.wheel-card .mini-wheel canvas { width: 100%; height: 100%; }
.wheel-card h3 { margin: 0; font-family: var(--font-display); font-size: 24px; }
.wheel-card .card-sub { color: var(--muted); margin: 4px 0 16px; }
.wheel-card .card-stats {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
}
.stat {
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 10px 8px;
}
.stat small { display: block; color: var(--muted); font-size: 12px; }
.stat strong { font-size: 18px; font-family: var(--font-display); }
.wheel-card .card-actions { display: flex; gap: 10px; width: 100%; }
.wheel-card .card-actions .btn { flex: 1; }

/* Vista jugar */
.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: center;
}
.play-stage {
  position: relative;
  width: min(620px, 90vw);
  height: min(620px, 90vw);
  margin: 0 auto;
}
.play-stage canvas {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 26px 70px rgba(0,0,0,0.65));
}
.play-glow {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 201, 60, 0.26), rgba(255, 122, 60, 0.12) 48%, transparent 72%);
  filter: blur(30px);
  animation: glowPulse 4s ease-in-out infinite;
  z-index: 1;
}
.play-stage.is-spinning .play-glow {
  animation: spinPulse 0.5s ease-in-out infinite;
  filter: blur(24px);
  opacity: 1;
}
@keyframes spinPulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.16); opacity: 1; }
}
.play-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 52px;
  height: 44px;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  background: linear-gradient(180deg, #fff4d6, #ffc93c 55%, #ff9d2e);
  filter: drop-shadow(0 6px 14px rgba(255, 160, 40, 0.5));
  animation: bob 1.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0);} 50% { transform: translateX(-50%) translateY(6px);} }

.play-side { display: flex; flex-direction: column; gap: 18px; }
.spin-card { padding: 26px; }
.spins-left { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.spins-icon { font-size: 34px; }
.spins-left small { color: var(--muted); display: block; }
.spins-left strong { font-size: 32px; font-family: var(--font-display); color: var(--gold); }
.spin-card .btn-full { margin-top: 12px; }

/* Modales */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 4, 12, 0.72); backdrop-filter: blur(4px); }
.modal-card {
  position: relative;
  width: min(430px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px;
  text-align: center;
  animation: modalIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.85) translateY(20px);} to { opacity: 1; transform: scale(1) translateY(0);} }
.modal-card h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 28px; }
.modal-sub { color: var(--muted); margin: 0 0 20px; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--panel-border);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.modal-close:hover {
  background: rgba(255, 78, 107, 0.85);
  border-color: transparent;
  color: #fff;
  transform: rotate(90deg);
}
.modal-close-strong { background: rgba(255, 255, 255, 0.14); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack .input { width: 100%; }

/* Login */
.login-card { text-align: center; }
.login-logo { width: 76px; height: 76px; margin: 0 auto 12px; }
.login-logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(255, 160, 40, 0.35)); }
.account-field { text-align: left; }
.account-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 8px;
}
.account-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.account-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
}
.account-option:hover { background: rgba(255, 255, 255, 0.07); }
.account-option.is-active {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(255, 201, 60, 0.16), rgba(255, 122, 60, 0.16));
  box-shadow: 0 0 0 3px rgba(255, 201, 60, 0.14);
}
.account-option-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--gold);
  font-size: 17px;
}
.account-option.is-active .account-option-icon { background: rgba(255, 201, 60, 0.2); }
.account-option-text strong { display: block; font-size: 14px; }
.account-option-text small { color: var(--muted); font-size: 11.5px; }

/* Perfil */
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; text-align: left; }
.profile-avatar { width: 64px; height: 64px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); object-fit: cover; flex: 0 0 auto; }
.profile-head h2 { margin: 0; }
.profile-head .modal-sub { margin: 2px 0 0; }
.profile-stats { display: flex; flex-direction: column; gap: 8px; }
.profile-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  font-size: 14px;
}
.profile-stat span { color: var(--muted); }
.profile-stat strong { color: var(--gold); font-family: var(--font-display); font-size: 16px; }
.profile-breakdown { margin-top: 10px; }
.profile-breakdown h4 { margin: 0 0 8px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Reveal */
.reveal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(20, 26, 56, 0.92), rgba(2, 4, 12, 0.96));
  animation: fadeIn 0.4s ease;
}
.reveal[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reveal-content {
  position: relative;
  text-align: center;
  padding: 40px;
  max-width: 520px;
}
.reveal-spotlight {
  position: absolute;
  inset: -80px;
  background: radial-gradient(circle at 50% 42%, rgba(255, 201, 60, 0.35), transparent 55%);
  filter: blur(20px);
  animation: spotlight 1.6s ease-in-out infinite;
}
@keyframes spotlight { 0%,100% { opacity: 0.6; transform: scale(1);} 50% { opacity: 1; transform: scale(1.08);} }
.reveal-icon { font-size: 80px; display: block; position: relative; animation: floatY 2s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }
.reveal-content h2 { position: relative; font-family: var(--font-display); font-size: 38px; margin: 20px 0 6px; }
.reveal-content p { position: relative; color: var(--muted); font-size: 17px; margin: 0 0 26px; }

/* Resultado */
.result-card { overflow: hidden; }
.result-eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 10px;
}
.result-prize-icon {
  font-size: 74px;
  margin: 6px 0 12px;
  animation: resultPop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
.result-prize-icon img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.45));
}
@keyframes resultPop { 0% { transform: scale(0);} 70% { transform: scale(1.25);} 100% { transform: scale(1);} }
.result-meta { color: var(--muted); margin: 6px 0 22px; }
.result-actions { display: flex; gap: 12px; }
.result-actions .btn { flex: 1; }
.result-outofspins { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--panel-border); }
.welcome-icon { font-size: 64px; margin-bottom: 8px; animation: floatY 2s ease-in-out infinite; }

.confetti-container { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti-piece {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 16px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  to { transform: translateY(520px) rotate(720deg); opacity: 0; }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  background: #141a33;
  border: 1px solid var(--panel-border);
  color: var(--text);
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  max-width: 90vw;
}
.toast.error { border-color: rgba(255, 78, 107, 0.5); color: #ffb3c0; }
.toast.success { border-color: rgba(34, 197, 94, 0.5); color: #b7f0c9; }

/* Packs */
.packs-head { margin: 42px 0 16px; }
.packs-head h2 { margin: 0; font-family: var(--font-display); font-size: 28px; }
.packs-head p { color: var(--muted); margin: 4px 0 0; }
.pack-card { position: relative; padding-top: 34px; }
.pack-badge {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #3a2400;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(255, 201, 60, 0.35);
}
.login-pin-note { color: var(--muted); font-size: 13px; margin: 0; }

/* Ahorro en packs */
.pack-save {
  margin: -4px 0 14px;
  width: 100%;
  font-size: 13px;
  color: #7ef0c3;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  padding: 8px 12px;
  border-radius: 12px;
}
.pack-save strong { color: #4ade80; }
.pack-save span { color: var(--muted); font-size: 12px; }

/* Sección de packs en el inicio (chollos) */
.home-packs { margin-top: 56px; }
.home-packs-head { text-align: center; margin-bottom: 32px; }
.home-packs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 201, 60, 0.18), rgba(255, 122, 60, 0.18));
  border: 1px solid rgba(255, 201, 60, 0.35);
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: normal;
  text-align: center;
  animation: pulse-spin 2.4s ease-in-out infinite;
}
.home-packs-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.05;
}
.home-packs-head h2 span {
  background: linear-gradient(90deg, var(--orange), var(--coral), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-packs-head p { color: var(--muted); margin: 14px 0 0; }
.home-packs-cta { text-align: center; margin-top: 30px; }

.home-pack-card { padding-top: 40px; }
.home-pack-ribbon {
  position: absolute;
  top: 18px;
  right: -32px;
  width: 128px;
  padding: 6px 0;
  transform: rotate(40deg);
  background: linear-gradient(90deg, var(--orange), var(--coral));
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(255, 78, 107, 0.45);
  z-index: 3;
}
.home-pack-ribbon-pack { background: linear-gradient(90deg, var(--gold), var(--orange)); color: #3a2400; }
.home-pack-old {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 15px;
  text-decoration: line-through;
}
.home-pack-price {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 0 22px rgba(255, 201, 60, 0.45);
  margin: 2px 0 4px;
}
.home-pack-save {
  margin: 0 0 14px;
  width: 100%;
  font-size: 13px;
  color: #7ef0c3;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  padding: 8px 12px;
  border-radius: 12px;
}
.home-pack-save strong { color: #4ade80; }
.home-pack-card .stat-row {
  display: flex;
  gap: 12px;
  width: 100%;
  margin: 0 0 16px;
}
.home-pack-card .stat-row .stat { flex: 1; }

/* Cofre de packs */
.chest-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 24px 0 10px;
}
.chest {
  position: relative;
  width: min(230px, 62vw);
  height: 172px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  perspective: 800px;
  -webkit-tap-highlight-color: transparent;
}
.chest:focus-visible { outline: 3px solid var(--gold); outline-offset: 8px; border-radius: 16px; }
.chest-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 201, 60, 0.34), rgba(255, 122, 60, 0.12) 55%, transparent 72%);
  filter: blur(18px);
  animation: chestGlow 2.6s ease-in-out infinite;
  z-index: 0;
}
@keyframes chestGlow {
  0%, 100% { opacity: 0.55; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.08); }
}
.chest-lid {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 26px;
  height: 62px;
  background: linear-gradient(180deg, #c08a44, #8a5a24);
  border-radius: 16px 16px 8px 8px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.28), 0 10px 26px rgba(0, 0, 0, 0.45);
  transform-origin: bottom center;
  transition: transform 0.55s cubic-bezier(0.34, 1.4, 0.5, 1);
  z-index: 2;
}
.chest-lid::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 12px;
  background: linear-gradient(180deg, #6f451c, #4c2d10);
  border-radius: 0 0 10px 10px;
}
.chest-body {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 96px;
  background: linear-gradient(180deg, #a06a2c, #6f451c);
  border-radius: 12px 12px 10px 10px;
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.25), 0 18px 42px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 1;
}
.chest-band {
  position: absolute;
  left: 0;
  right: 0;
  top: 34px;
  height: 22px;
  background: linear-gradient(180deg, #ffd77a, #d9a93c);
  box-shadow: 0 0 0 2px rgba(90, 55, 15, 0.35);
}
.chest-lock {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 34px;
  background: radial-gradient(circle at 50% 30%, #ffe9a3, #d9a93c 65%);
  border-radius: 8px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
  z-index: 2;
}
.chest-lock::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 14px;
  background: #4c2d10;
  border-radius: 4px;
}
.chest.open .chest-lid { transform: rotateX(-80deg) translateY(-4px); }
.chest.open .chest-glow { animation: chestGlow 1.4s ease-in-out infinite; }
.chest-hint {
  margin: 22px 0 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.home-packs-reveal { margin-top: 34px; animation: revealIn 0.6s ease; }
@keyframes revealIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal de bienvenida épico */
.welcome-card { text-align: center; padding: 34px 30px; overflow: hidden; position: relative; }
.welcome-card::before {
  content: '';
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg, rgba(255,122,60,0.28), rgba(255,201,60,0.28), rgba(34,211,238,0.28), rgba(168,85,247,0.28), rgba(255,122,60,0.28));
  filter: blur(30px);
  animation: spinGlow 8s linear infinite;
  z-index: 0;
}
.welcome-card > * { position: relative; z-index: 1; }
.welcome-card .modal-close { position: absolute; top: 16px; right: 16px; z-index: 6; }
.welcome-ribbon {
  display: inline-block;
  margin: 0 0 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 201, 60, 0.2), rgba(255, 122, 60, 0.2));
  border: 1px solid rgba(255, 201, 60, 0.4);
  color: var(--gold);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.welcome-icon {
  font-size: 74px;
  margin-bottom: 6px;
  animation: floatY 2s ease-in-out infinite;
  filter: drop-shadow(0 8px 22px rgba(255, 201, 60, 0.45));
}
.welcome-title {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.05;
  margin: 0 0 10px;
}
.welcome-title span {
  background: linear-gradient(90deg, var(--orange), var(--coral), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.welcome-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 4px;
  flex-wrap: wrap;
}
.welcome-price {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 0 26px rgba(255, 201, 60, 0.55);
}
.welcome-price-old {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: line-through;
}
.welcome-badge-save {
  background: linear-gradient(135deg, var(--coral), var(--orange));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(255, 78, 107, 0.45);
}
.welcome-save-line {
  margin: 4px 0 10px;
  font-size: 14px;
  color: #7ef0c3;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  padding: 8px 12px;
  border-radius: 12px;
}
.welcome-save-line strong { color: #4ade80; }
.welcome-note { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.welcome-urgency {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.3px;
}
.btn-welcome {
  background: conic-gradient(from 0deg, var(--orange), var(--gold), var(--coral), var(--orange));
  color: #2a1200;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 14px 40px rgba(255, 150, 50, 0.5);
  animation: pulse-spin 1.6s ease-in-out infinite;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: 60px;
  border-top: 1px solid var(--panel-border);
  background: linear-gradient(180deg, rgba(11, 15, 31, 0.7), rgba(7, 10, 22, 0.92));
  backdrop-filter: blur(12px);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 28px 34px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}
.footer-brand img { width: 56px; height: 56px; object-fit: contain; flex: 0 0 auto; }
.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  color: #fff;
}
.footer-brand span { color: var(--muted); font-size: 13px; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col h4 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  transition: background 0.16s ease, transform 0.16s ease;
}
.footer-link:hover { background: rgba(255, 255, 255, 0.06); transform: translateX(3px); }
.footer-link-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
  color: #e6ebf7;
}
.footer-link:hover .footer-link-icon { background: rgba(255, 255, 255, 0.12); color: #fff; }
.footer-link-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.footer-link-label { font-weight: 600; }
.footer-link-sub { color: var(--muted); font-size: 12.5px; }
.footer-link-sub small { color: var(--muted); opacity: 0.85; }
.footer-bottom {
  border-top: 1px solid var(--panel-border);
  padding: 18px 28px;
  text-align: center;
}
.footer-bottom p { margin: 0; color: var(--muted); font-size: 13px; }
.footer-creator { max-width: 1280px; margin: 0 auto; padding: 0 28px 30px; }
.footer-creator-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 20px 24px;
  background: linear-gradient(120deg, rgba(255, 201, 60, 0.14), rgba(255, 201, 60, 0.04));
  border: 1px solid rgba(255, 201, 60, 0.32);
  border-radius: 16px;
}
.footer-creator-card strong { display: block; font-family: var(--font-display); font-size: 18px; color: #fff; }
.footer-creator-card span { color: var(--muted); font-size: 14px; }
.footer-creator-card .btn { flex: 0 0 auto; }

/* Responsive */
@media (min-width: 901px) and (max-width: 1180px) {
  .wheels-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .wheels-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .play-layout { grid-template-columns: 1fr; }
  .play-side { order: -1; }
  .code-form { flex-direction: column; }
  .header-inner { flex-wrap: wrap; }
  .header-links { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
  .home-packs { margin-top: 42px; }
  .home-packs-head h2 { font-size: 32px; }
  .footer-inner { flex-direction: column; gap: 26px; }
  .footer-brand { min-width: 0; }
}
@media (max-width: 560px) {
  .header-inner { padding: 14px 16px; }
  .view { padding: 18px 16px 60px; }
  .section-head { flex-wrap: wrap; }
  .brand-logo { height: 44px; }
  .brand-name { font-size: 18px; }
  .modal-card { padding: 24px 18px; }
  .header-links { gap: 8px; }
  .header-link { padding: 8px 11px; font-size: 13px; }
  .ip-value { font-size: 13px; }
  .home-pack-price { font-size: 28px; }
  .home-pack-ribbon { width: 120px; right: -32px; font-size: 12px; }
  .welcome-title { font-size: 27px; }
  .welcome-price { font-size: 36px; }
  .welcome-price-old { font-size: 18px; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-brand { min-width: 0; }
}

/* ============ Header y footer unificados (tienda) ============ */
.shop-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 40, 50, 0.55), rgba(4, 26, 34, 0.15));
  backdrop-filter: blur(10px);
}
.shop-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.shop-side { display: flex; align-items: center; }
.shop-side-left { justify-content: flex-start; }
.shop-side-right { justify-content: flex-end; }

.account-indicator,
.cart-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.account-indicator:hover,
.cart-indicator:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(22, 214, 196, 0.35); transform: translateY(-1px); }
.account-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: none;
  border: none;
  overflow: visible;
}
.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
}
.account-text { display: flex; flex-direction: column; gap: 2px; }
.account-text strong { font-weight: 800; font-size: 13px; letter-spacing: 0.5px; }
.account-text small { color: var(--muted); font-size: 11.5px; }
.account-logout {
  background: none; border: none; color: var(--turq); cursor: pointer;
  font-size: 11.5px; padding: 0; text-align: left; font-family: var(--font-body);
}
.account-logout:hover { text-decoration: underline; }
.account-logged { cursor: default; }

.shop-logo { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.shop-logo img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(22, 214, 196, 0.4));
  animation: logoFloat 3.2s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.cart-icon {
  position: relative;
  color: var(--turq);
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-icon svg { width: 48px; height: 48px; }
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--coral), #ff3d2e);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

.shop-footer {
  position: relative; z-index: 2; margin-top: 70px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(4, 26, 34, 0.7), rgba(3, 16, 22, 0.95));
}
.shop-footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 40px 28px 30px;
  display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
}
.shop-footer-brand { display: flex; align-items: center; gap: 14px; }
.shop-footer-brand img { width: 52px; height: 52px; object-fit: contain; }
.shop-footer-brand strong { display: block; font-family: var(--font-display); font-size: 19px; color: #fff; }
.shop-footer-brand span { color: var(--muted); font-size: 13px; }
.shop-footer-links { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-footer-links a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 13px; border-radius: 10px; transition: background 0.18s ease; }
.shop-footer-links a:hover { background: rgba(22, 214, 196, 0.1); }
.shop-footer-bottom { border-top: 1px solid var(--line); padding: 16px 28px; text-align: center; }
.shop-footer-bottom p { margin: 0; color: var(--muted); font-size: 13px; }
.shop-footer-creator { max-width: 1280px; margin: 0 auto; padding: 0 28px 30px; }
.shop-footer-creator-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 20px 24px;
  background: linear-gradient(120deg, rgba(22, 214, 196, 0.14), rgba(22, 214, 196, 0.04));
  border: 1px solid rgba(22, 214, 196, 0.35);
  border-radius: 16px;
}
.shop-footer-creator-card strong { display: block; font-family: var(--font-display); font-size: 18px; color: #fff; }
.shop-footer-creator-card span { color: var(--muted); font-size: 14px; }
.shop-footer-creator-card .shop-btn { flex: 0 0 auto; }

.shop-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  padding: 13px 22px;
  border-radius: 12px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  color: #fff;
  text-decoration: none;
}
.shop-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.shop-btn:hover::after { left: 140%; }
.shop-btn:hover { transform: translateY(-2px); }
.shop-btn-full { width: 100%; }
.shop-btn-turq { background: linear-gradient(135deg, #19e0cd, #0fa89c); box-shadow: 0 12px 30px rgba(22, 214, 196, 0.28); color: #03202a; font-weight: 800; }
.shop-btn-turq:hover { filter: brightness(1.05); }
.shop-btn-ghost { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--text); }
.shop-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

@media (max-width: 700px) {
  .shop-header-inner { grid-template-columns: 1fr auto 1fr; padding: 14px 16px; gap: 10px; }
  .shop-logo img { width: 84px; height: 84px; }
  .account-text strong, .account-text small { display: none; }
  .cart-indicator .account-text { display: none; }
  .account-indicator, .cart-indicator { padding: 8px 10px; }
  .account-avatar { width: 48px; height: 48px; }
  .cart-icon { width: 48px; height: 48px; }
  .cart-icon svg { width: 36px; height: 36px; }
  .shop-footer-inner { flex-direction: column; text-align: center; }
}

/* ---------- Refuerzo responsive: móvil, tablet y TV ---------- */
img { max-width: 100%; height: auto; }

@media (min-width: 1600px) {
  .view, .header-inner, .footer-inner, .footer-creator { max-width: 1560px; }
  .view { padding-left: 40px; padding-right: 40px; }
  .wheels-grid { gap: 24px; }
}

@media (max-width: 380px) {
  .header-inner { padding: 12px 10px; }
  .brand-logo { height: 38px; }
  .brand-name { font-size: 16px; }
  .view { padding: 16px 12px 50px; }
  .modal-card { padding: 22px 14px; }
  .welcome-title { font-size: 24px; }
  .welcome-price { font-size: 32px; }
}
