/* ── Tokens: heredados del brand de la app (naranja/oscuro), no un tema nuevo. ──
   La app entera es solo modo oscuro por diseño — esta página también lo es a propósito,
   no falta "modo claro", es la identidad de marca (calle, noche, cancha con luces). */
:root {
  --bg: #0F1217; --bg-2: #14171C; --bg-elev: #1A1F27; --bg-elev-2: #1F2530;
  --line: #262E39; --line-soft: #1D2430;
  --cream: #F4EFE6; --muted: #8A9099; --muted-2: #5C636D;
  --orange: #FF6A1A; --orange-2: #FF8A3D; --orange-dim: #C74F10;
  --grad-orange: linear-gradient(135deg, #FF8A3D 0%, #FF6A1A 55%, #F55B00 100%);
  --radius-lg: 20px; --radius-md: 14px; --radius-sm: 10px; --radius-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  background: var(--bg); color: var(--cream);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.anton { font-family: 'Anton', sans-serif; font-weight: 400; }
img { max-width: 100%; display: block; }
a { color: inherit; }
section { position: relative; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* Grano fijo, muy sutil, capa aparte que nunca repinta con el scroll (perf). */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.025; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Botones: una sola escala de radio para toda la página (pill en interactivos). ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap;
  font-weight: 800; font-size: 14.5px; font-family: 'Inter', sans-serif;
  padding: 14px 28px; border-radius: var(--radius-pill); text-decoration: none;
  border: none; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn.primary {
  background: var(--grad-orange); color: #14171C;
  box-shadow: 0 8px 28px rgba(255,106,26,0.32);
}
.btn.primary:hover { box-shadow: 0 10px 34px rgba(255,106,26,0.44); transform: translateY(-1px); }
.btn.ghost {
  background: rgba(244,239,230,0.04); color: var(--cream);
  border: 1px solid var(--line);
}
.btn.ghost:hover { background: rgba(244,239,230,0.08); border-color: #3A4452; }
.btn.sm { padding: 10px 20px; font-size: 13px; }

/* ── Header ── */
header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(15,18,23,0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
header .bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 19px; letter-spacing: 0.2px; }
.brand-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 46px; width: auto; display: block; }
.brand .flame { font-size: 16px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-right { display: flex; align-items: center; gap: 14px; }
.header-social { display: flex; align-items: center; gap: 8px; }
.header-social-btn {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; background: rgba(244,239,230,0.04); border: 1px solid var(--line);
  flex-shrink: 0; transition: background 0.2s, border-color 0.2s;
}
.header-social-btn img, .header-social-btn svg { width: 16px; height: 16px; object-fit: contain; }
.header-social-btn:hover { background: rgba(244,239,230,0.09); border-color: #3A4452; }
@media (max-width: 640px) { .header-social { display: none; } }
@media (max-width: 720px) {
  /* El contenido del header (logo + menú + login + CTA) no cabe en una sola fila en celulares
     angostos — sin esto "Entrar a la app" quedaba fuera de la pantalla (scroll horizontal). */
  header .bar { flex-wrap: wrap; height: auto; padding: 10px 0; row-gap: 10px; }
  .header-right { flex-wrap: wrap; row-gap: 10px; }
}

/* ── Menú principal: staggered menu que se despliega desde arriba (reactbits.dev/components/staggered-menu). ── */
.staggered-menu-toggle {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: rgba(244,239,230,0.04); cursor: pointer; flex-shrink: 0;
}
.staggered-menu-toggle:hover { background: rgba(244,239,230,0.08); border-color: #3A4452; }
.staggered-menu-toggle-icon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 16px; }
.staggered-menu-toggle-line {
  display: block; height: 2px; background: var(--cream); border-radius: 2px;
  width: 16px; transition: transform 0.32s var(--ease), width 0.32s var(--ease), opacity 0.2s;
}
.staggered-menu-toggle-line:last-child { width: 10px; align-self: flex-end; }
.staggered-menu-toggle.open .staggered-menu-toggle-line { width: 16px; }
.staggered-menu-toggle.open .staggered-menu-toggle-line:first-child { transform: translateY(3.5px) rotate(45deg); }
.staggered-menu-toggle.open .staggered-menu-toggle-line:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.staggered-menu-toggle-label { color: var(--cream); font-weight: 700; font-size: 14px; }

.staggered-menu-backdrop {
  position: fixed; inset: 68px 0 0 0; z-index: 38; background: rgba(10,12,16,0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
.staggered-menu-backdrop.open { opacity: 1; pointer-events: auto; }

.staggered-menu-panel {
  position: fixed; top: 68px; left: 0; right: 0; z-index: 39;
  background: var(--bg-elev); border-bottom: 1px solid var(--line);
  overflow: hidden; max-height: 0; transition: max-height 0.42s var(--ease);
}
.staggered-menu-panel.open { max-height: 420px; }
.staggered-menu-panel nav.main { display: flex; flex-direction: column; padding: 10px 0; }
.staggered-menu-panel nav.main a {
  display: block; padding: 16px 24px; text-decoration: none; color: var(--cream);
  font-family: 'Anton', sans-serif; font-weight: 400; font-size: 26px; letter-spacing: 0.3px;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0; transform: translateY(-14px);
  transition: opacity 0.38s var(--ease), transform 0.38s var(--ease), color 0.2s;
}
.staggered-menu-panel nav.main a:last-child { border-bottom: none; }
.staggered-menu-panel nav.main a:hover { color: var(--orange-2); }
.staggered-menu-panel.open nav.main a { opacity: 1; transform: none; }
.staggered-menu-panel.open nav.main a:nth-child(1) { transition-delay: 0.06s; }
.staggered-menu-panel.open nav.main a:nth-child(2) { transition-delay: 0.13s; }
.staggered-menu-panel.open nav.main a:nth-child(3) { transition-delay: 0.2s; }
.staggered-menu-panel.open nav.main a:nth-child(4) { transition-delay: 0.27s; }
.staggered-menu-panel.open nav.main a:nth-child(5) { transition-delay: 0.34s; }
@media (prefers-reduced-motion: reduce) {
  .staggered-menu-panel, .staggered-menu-panel nav.main a, .staggered-menu-toggle-line { transition: none; }
}

/* ── Auth: chip de usuario + modal login/signup, misma cuenta que la app (Supabase). ── */
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.user-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.btn.icon-only { padding: 10px 12px; }

.auth-modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 20px; }
.auth-modal.open { display: flex; }
.auth-modal-backdrop { position: absolute; inset: 0; background: rgba(10,12,16,0.72); backdrop-filter: blur(3px); }
.auth-modal-box {
  position: relative; z-index: 1; width: 100%; max-width: 380px; max-height: 88vh; overflow-y: auto;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; animation: authIn 0.25s var(--ease);
}
@keyframes authIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.auth-modal-close {
  position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(244,239,230,0.06); border: none; color: var(--muted); font-size: 18px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.auth-modal-close:hover { color: var(--cream); background: rgba(244,239,230,0.12); }
.auth-tabs { display: flex; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 4px; margin-bottom: 22px; }
.auth-tab {
  flex: 1; padding: 9px 0; border: none; background: transparent; color: var(--muted);
  font-weight: 700; font-size: 13.5px; border-radius: var(--radius-pill); cursor: pointer; transition: background 0.2s, color 0.2s;
}
.auth-tab.active { background: var(--grad-orange); color: #14171C; }
#authForm label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
#authForm label + label { margin-top: 16px; }
#authForm input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--bg-2); color: var(--cream); font-size: 14.5px; font-family: 'Inter', sans-serif;
}
#authForm input:focus { outline: none; border-color: var(--orange); }
.auth-error { color: #ff8a8a; font-size: 13px; margin-top: 14px; line-height: 1.5; }
.auth-info { color: var(--orange-2); font-size: 13px; margin-top: 14px; line-height: 1.5; }
#authForm .btn { width: 100%; margin-top: 22px; }
.auth-google { width: 100%; }
.google-logo { width: 17px; height: 17px; object-fit: contain; vertical-align: -3px; }
.googleplay-logo { width: 15px; height: 17px; object-fit: contain; vertical-align: -3px; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--muted-2); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hidden { display: none !important; }

/* ── DecryptedText: letras aún mezcladas se ven apagadas/monoespaciadas, reveladas ya normales. ── */
.dt-char { display: inline; }
.dt-char.dt-encrypted { opacity: 0.45; color: var(--cream); }

/* ── TextType (reactbits.dev/text-animations/text-type): máquina de escribir en loop. ── */
.text-type__cursor { color: var(--orange); animation: ttCursorBlink 0.5s step-end infinite; }
@media (prefers-reduced-motion: reduce) { .text-type__cursor { display: none; } }
@keyframes ttCursorBlink { 50% { opacity: 0; } }

/* ── Completar perfil: mismos campos que la app (foto, nombre, fecha, ciudad, zona, WhatsApp). ── */
.auth-modal-box.wide { max-width: 360px; padding: 22px; }
#profileForm label { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
#profileForm label + label, #profileForm .photo-picker + label { margin-top: 10px; }
#profileForm input, #profileForm select {
  width: 100%; padding: 9px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--bg-2); color: var(--cream); font-size: 13px; font-family: 'Inter', sans-serif;
  appearance: none;
}
#profileForm input:focus, #profileForm select:focus { outline: none; border-color: var(--orange); }
#profileForm select:disabled { opacity: 0.5; }
.photo-picker { display: flex; flex-direction: column; align-items: center; margin-bottom: 2px; }
.photo-picker .circle {
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  background: var(--bg-2); border: 2px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 16px; cursor: pointer; margin-bottom: 6px;
}
.photo-picker .circle img { width: 100%; height: 100%; object-fit: cover; }
.photo-picker .circle.has-photo { border-color: var(--orange); }
.photo-picker span { font-size: 11px; font-weight: 700; color: var(--orange-2); cursor: pointer; }
#profileForm .btn { width: 100%; margin-top: 14px; padding: 11px; font-size: 13px; }

/* ── Hero: split asimétrico, no centrado. ── */
.hero { position: relative; padding: 120px 0 140px; overflow: hidden; min-height: 640px; display: flex; align-items: center; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 40px; max-width: 1180px; }
.hero h1 {
  font-size: clamp(32px, 4vw, 50px); line-height: 1.12; letter-spacing: -0.5px;
  margin-bottom: 20px; min-height: 2.3em;
}
.hero p.lede {
  color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 46ch; margin-bottom: 34px;
}
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .actions .scroll-link { color: var(--muted); font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.hero .actions .scroll-link:hover { color: var(--cream); }

/* Mini formulario de registro, a la derecha del hero. */
.hero-signup {
  background: rgba(15,18,23,0.68); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px;
}
.hero-signup h3 { font-size: 19px; margin-bottom: 6px; }
.hero-signup > p { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.hero-signup form { display: flex; flex-direction: column; gap: 10px; }
.hero-signup input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--bg-2); color: var(--cream); font-size: 14.5px; font-family: 'Inter', sans-serif;
}
.hero-signup input:focus { outline: none; border-color: var(--orange); }
.hero-signup .btn { width: 100%; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 42px !important; }
.pw-toggle {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; border: none; background: transparent;
  color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.pw-toggle:hover { color: var(--cream); background: rgba(244,239,230,0.06); }
.hero-signup .auth-divider { margin: 14px 0; }
.hero-signup .auth-error, .hero-signup .auth-info { margin-top: 12px; }
@media (max-width: 720px) { .hero-grid { grid-template-columns: 1fr; } }

/* Tira de logos en loop infinito, justo debajo del hero/login (reactbits.dev/animations/logo-loop). */
.logo-loop {
  position: relative; padding: 30px 0; border-bottom: 1px solid var(--line-soft);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  overflow: hidden;
}
.logo-loop-track { display: flex; align-items: center; width: max-content; animation: logoLoopScroll 22s linear infinite; }
.logo-loop:hover .logo-loop-track { animation-play-state: paused; }
.logo-loop-item { display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0 44px; opacity: 0.85; transition: opacity 0.2s; }
.logo-loop-item:hover { opacity: 1; }
.logo-loop-item img, .logo-loop-item svg { height: 32px; width: auto; display: block; }
.logo-loop-item img { border-radius: 6px; }
@keyframes logoLoopScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logo-loop-track { animation: none; } }

/* Video de fondo a pantalla completa del hero, detrás del texto, con leve difuminado. */
.hero-visual { position: absolute; inset: 0; z-index: 0; }
#hero3d { position: absolute; inset: 0; }
.hero-visual canvas { display: block; width: 100% !important; height: 100% !important; }
.hero-visual video { display: block; width: 100%; height: 100%; object-fit: cover; filter: blur(4px) brightness(0.9); }
.hero-visual .glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(15,18,23,0.86) 32%, rgba(15,18,23,0.4) 62%, rgba(15,18,23,0.15) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 24%, transparent 78%, rgba(15,18,23,0.5) 100%);
}

/* ── GradualBlur (reactbits.dev): difumina el borde inferior del hero 3D en vez de un corte
   seco antes de la franja de cifras. ── */
.gradual-blur { position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; isolation: isolate; }
.gradual-blur > div { position: absolute; inset: 0; }
@supports not (backdrop-filter: blur(1px)) {
  .gradual-blur > div { background: rgba(15,18,23,0.35); }
}

/* ── Secciones genéricas ── */
.section { padding: 100px 0; }
.section-head { max-width: 560px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -0.3px; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 16px; line-height: 1.6; }

/* ── Bento de funciones ── */
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 168px; gap: 14px;
}
.bento-item {
  border-radius: var(--radius-md); border: 1px solid var(--line);
  padding: 26px; display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--bg-elev); position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.bento-item:hover { transform: translateY(-3px); border-color: #37404E; }
.bento-item:hover .bg-photo { transform: scale(1.05); }
.bento-item .bg-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 0; transition: transform 0.5s var(--ease);
}
.bento-item::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,18,23,0.05) 20%, rgba(15,18,23,0.94) 88%);
}
.bento-item h3, .bento-item p { position: relative; z-index: 2; }
.bento-item h3 { font-size: 16.5px; margin-bottom: 6px; }
.bento-item p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.bento-item.wide { grid-column: span 2; }
.bento-item.tall { grid-row: span 2; }

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-item.wide, .bento-item.tall { grid-column: span 1; grid-row: span 1; min-height: 150px; }
}

/* ── Shopping: apartado propio, no vive en el nav — fondo distinto pa separarlo del resto. ──
   Organización tipo catálogo (sidebar de filtros + toolbar de orden/conteo + grid parejo),
   mismos tokens de color/tipografía de siempre, solo se copió la estructura. */
.shop-section {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.shop-layout { position: relative; z-index: 1; margin-top: 8px; }

/* ── DotGrid (reactbits.dev/backgrounds/dot-grid), portado a canvas plano (sin GSAP): la malla
   de puntos se enciende en naranja cerca del cursor y hace un pequeño empujón elástico al hacer
   click, igual idea que el original pero sin dependencias nuevas. ── */
.dot-grid { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.dot-grid canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ── OptionWheel (reactbits.dev/components/option-wheel), portado a JS plano: disco con las
   opciones repartidas alrededor, clic en cualquiera rota el disco entero hasta dejarla arriba,
   el centro (que no rota) muestra el nombre de la línea activa. ── */
.option-wheel-wrap { display: flex; flex-direction: column; align-items: center; margin-bottom: 30px; }
.option-wheel { position: relative; width: 200px; height: 200px; }
.option-wheel-track { position: absolute; inset: 0; transition: transform 0.6s cubic-bezier(0.34,1.56,0.64,1); }
.option-wheel-item {
  position: absolute; top: 50%; left: 50%; transform: rotate(var(--angle)) translate(80px) rotate(calc(-1 * var(--angle))) translate(-50%,-50%);
  width: 62px; height: 62px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-elev);
  color: var(--muted); font-family: 'Inter', sans-serif; font-weight: 700; font-size: 12.5px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
.option-wheel-item.active { background: var(--grad-orange); color: #14171C; border-color: transparent; box-shadow: 0 4px 18px rgba(255,106,26,0.4); }
.option-wheel-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 84px; height: 84px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: 'Anton', sans-serif; font-size: 14px; color: var(--cream); letter-spacing: 0.3px;
  pointer-events: none;
}
.option-wheel-caption { color: var(--muted); font-size: 12.5px; margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .option-wheel-track, .option-wheel-item { transition: none; } }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.shop-count { color: var(--muted); font-size: 13.5px; }
.shop-sort select {
  background: var(--bg-2); color: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 9px 12px; font-family: 'Inter', sans-serif; font-size: 13px; appearance: none;
}
.shop-sort select:focus { outline: none; border-color: var(--orange); }

.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shop-card-media { position: relative; aspect-ratio: 1; border-radius: var(--radius-md) var(--radius-md) 0 0; overflow: hidden; }
.shop-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-card-info { padding: 16px; }
.shop-card-info h3 { font-size: 15px; margin-bottom: 6px; }
.shop-card-info .shop-price { font-size: 14px; font-weight: 700; color: var(--cream); }
.shop-card .shop-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: rgba(15,18,23,0.75); border: 1px solid var(--line);
  color: var(--muted); font-size: 11px; padding: 4px 10px; border-radius: 999px;
}

/* ── Carousel (reactbits.dev/components/carousel), portado a JS plano sin dependencias (sin
   motion/react): mismo arrastre + snap + indicadores, para cuando un producto tiene más de una
   foto. Ver el drag handler en el <script> de shopping.html. ── */
.shop-card-media.shop-carousel { cursor: grab; touch-action: pan-y; }
.shop-card-media.shop-carousel:active { cursor: grabbing; }
.shop-carousel-track { display: flex; width: 100%; height: 100%; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.shop-carousel-item { flex: 0 0 100%; width: 100%; height: 100%; }
.shop-carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.shop-carousel-indicators { position: absolute; bottom: 10px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 6px; }
.shop-carousel-dot { width: 6px; height: 6px; border-radius: 50%; border: none; padding: 0; background: rgba(255,255,255,0.4); cursor: pointer; transition: background 0.15s, transform 0.15s; }
.shop-carousel-dot.active { background: var(--orange); transform: scale(1.3); }
.shop-card-media { cursor: pointer; }

/* ── Detalle de producto: overlay con más fotos, descripción completa, reseñas y botón de
   pago. Se abre al tocar la foto de una tarjeta del catálogo. Mismo lenguaje visual que el
   .auth-modal (index.html) pero con su propio panel más ancho, de dos columnas en desktop. ── */
.shop-detail-overlay { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 20px; }
.shop-detail-overlay.open { display: flex; }
.shop-detail-backdrop { position: absolute; inset: 0; background: rgba(10,12,16,0.75); backdrop-filter: blur(3px); }
.shop-detail-panel {
  position: relative; z-index: 1; width: 100%; max-width: 880px; max-height: 90vh; overflow-y: auto;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg);
  display: grid; grid-template-columns: 1fr 1fr; animation: authIn 0.25s var(--ease);
}
.shop-detail-close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(15,18,23,0.6); border: none; color: var(--cream); font-size: 18px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.shop-detail-close:hover { background: rgba(15,18,23,0.85); }
.shop-detail-media { position: relative; background: var(--bg-2); min-height: 320px; overflow: hidden; }
.shop-detail-media .shop-carousel { position: absolute; inset: 0; touch-action: pan-y; cursor: grab; }
.shop-detail-media .shop-carousel:active { cursor: grabbing; }
.shop-detail-media .shop-carousel-track, .shop-detail-media .shop-carousel-item { height: 100%; }
.shop-detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-detail-info { padding: 30px; }
.shop-detail-info h2 { font-family: 'Anton', sans-serif; font-size: 24px; color: var(--cream); margin-bottom: 6px; }
.shop-detail-precio { color: var(--orange-2); font-weight: 800; font-size: 19px; margin-bottom: 14px; }
.shop-detail-desc { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.shop-detail-comprar { width: 100%; margin-bottom: 28px; }
.shop-detail-reviews-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.shop-detail-reviews-head h3 { font-family: 'Anton', sans-serif; font-size: 15px; color: var(--cream); }
.shop-detail-reviews-head span { color: var(--muted); font-size: 12.5px; }
.shop-review { border-top: 1px solid var(--line-soft); padding: 12px 0; }
.shop-review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.shop-review-nombre { font-weight: 700; font-size: 13px; color: var(--cream); }
.shop-review-estrellas { color: var(--orange); font-size: 12px; letter-spacing: 1px; }
.shop-review-comentario { color: var(--muted); font-size: 13px; line-height: 1.5; }
.shop-review-empty { color: var(--muted); font-size: 13px; padding: 10px 0; }
.shop-review-form { border-top: 1px solid var(--line-soft); padding-top: 16px; margin-top: 6px; }
.shop-review-form-estrellas { display: flex; gap: 4px; margin-bottom: 10px; }
.shop-review-star { background: none; border: none; padding: 0; font-size: 22px; color: var(--line); cursor: pointer; line-height: 1; }
.shop-review-star.on { color: var(--orange); }
.shop-review-form textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; color: var(--cream); font-family: 'Inter', sans-serif; font-size: 13px;
  outline: none; resize: none; margin-bottom: 10px; box-sizing: border-box;
}
.shop-review-login { color: var(--muted); font-size: 13px; }
.shop-review-login a { color: var(--orange); }
@media (max-width: 720px) {
  .shop-detail-panel { grid-template-columns: 1fr; }
  .shop-detail-media { min-height: 260px; }
}

/* ── BorderGlow (reactbits.dev/components/border-glow), portado a JS plano (ver <script> de
   shopping.html): el borde y la malla de color siguen el cursor, en tonos marca (naranja/crema)
   en vez de la paleta morada/rosa del original. ── */
.shop-card.border-glow-card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 30;
  --color-sensitivity: calc(var(--edge-sensitivity) + 20);
  --border-radius: var(--radius-md);
  --glow-padding: 24px;
  --cone-spread: 25;
  --card-bg: var(--bg-elev);
  --glow-color: hsl(24, 100%, 65%, 100%);
  --glow-color-60: hsl(24, 100%, 65%, 60%);
  --glow-color-50: hsl(24, 100%, 65%, 50%);
  --glow-color-40: hsl(24, 100%, 65%, 40%);
  --glow-color-30: hsl(24, 100%, 65%, 30%);
  --glow-color-20: hsl(24, 100%, 65%, 20%);
  --glow-color-10: hsl(24, 100%, 65%, 10%);
  --gradient-one: radial-gradient(at 80% 55%, hsla(24, 100%, 65%, 1) 0px, transparent 50%);
  --gradient-two: radial-gradient(at 69% 34%, hsla(35, 100%, 68%, 1) 0px, transparent 50%);
  --gradient-three: radial-gradient(at 8% 6%, hsla(40, 90%, 88%, 1) 0px, transparent 50%);
  --gradient-four: radial-gradient(at 41% 38%, hsla(24, 100%, 65%, 1) 0px, transparent 50%);
  --gradient-five: radial-gradient(at 86% 85%, hsla(35, 100%, 68%, 1) 0px, transparent 50%);
  --gradient-six: radial-gradient(at 82% 18%, hsla(40, 90%, 88%, 1) 0px, transparent 50%);
  --gradient-seven: radial-gradient(at 51% 4%, hsla(35, 100%, 68%, 1) 0px, transparent 50%);
  --gradient-base: linear-gradient(hsl(24, 100%, 65%) 0 100%);

  position: relative;
  isolation: isolate;
  border-radius: var(--border-radius);
  border: 1px solid var(--line);
  background: var(--card-bg);
  overflow: visible;
}
.border-glow-card::before,
.border-glow-card::after,
.border-glow-card > .edge-light {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: opacity 0.25s ease-out;
  z-index: -1;
}
.border-glow-card:not(:hover)::before,
.border-glow-card:not(:hover)::after,
.border-glow-card:not(:hover) > .edge-light {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}
.border-glow-card::before {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card-bg) 0 100%) padding-box,
    linear-gradient(rgb(255 255 255 / 0%) 0% 100%) border-box,
    var(--gradient-one) border-box, var(--gradient-two) border-box, var(--gradient-three) border-box,
    var(--gradient-four) border-box, var(--gradient-five) border-box, var(--gradient-six) border-box,
    var(--gradient-seven) border-box, var(--gradient-base) border-box;
  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mask-image: conic-gradient(from var(--cursor-angle) at center,
    black calc(var(--cone-spread) * 1%), transparent calc((var(--cone-spread) + 15) * 1%),
    transparent calc((100 - var(--cone-spread) - 15) * 1%), black calc((100 - var(--cone-spread)) * 1%));
}
.border-glow-card::after {
  border: 1px solid transparent;
  background:
    var(--gradient-one) padding-box, var(--gradient-two) padding-box, var(--gradient-three) padding-box,
    var(--gradient-four) padding-box, var(--gradient-five) padding-box, var(--gradient-six) padding-box,
    var(--gradient-seven) padding-box, var(--gradient-base) padding-box;
  mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
  mask-composite: subtract, add, add, add, add, add;
  opacity: calc(0.5 * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mix-blend-mode: soft-light;
}
.border-glow-card > .edge-light {
  inset: calc(var(--glow-padding) * -1);
  pointer-events: none;
  z-index: 1;
  mask-image: conic-gradient(from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%);
  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
}
.border-glow-card > .edge-light::before {
  content: "";
  position: absolute;
  inset: var(--glow-padding);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--glow-color), inset 0 0 1px 0 var(--glow-color-60), inset 0 0 3px 0 var(--glow-color-50),
    inset 0 0 6px 0 var(--glow-color-40), inset 0 0 15px 0 var(--glow-color-30), inset 0 0 25px 2px var(--glow-color-20),
    inset 0 0 50px 2px var(--glow-color-10),
    0 0 1px 0 var(--glow-color-60), 0 0 3px 0 var(--glow-color-50), 0 0 6px 0 var(--glow-color-40),
    0 0 15px 0 var(--glow-color-30), 0 0 25px 2px var(--glow-color-20), 0 0 50px 2px var(--glow-color-10);
}
.border-glow-inner { position: relative; z-index: 1; }

@media (max-width: 860px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .shop-grid { grid-template-columns: 1fr; }
}
/* ── Cómo funciona: flujo vertical con línea, no zigzag repetido. ── */
.como-funciona-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.como-funciona-badge { justify-self: center; width: 100%; max-width: 420px; }
.como-funciona-badge img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 0 7px rgba(255,106,26,0.85)) drop-shadow(0 0 20px rgba(255,106,26,0.5)) drop-shadow(0 20px 50px rgba(0,0,0,0.35));
}
@media (prefers-reduced-motion: no-preference) {
  .como-funciona-badge img { animation: badgeGlowPulse 2.6s ease-in-out infinite; }
}
@keyframes badgeGlowPulse {
  0%, 100% { filter: drop-shadow(0 0 7px rgba(255,106,26,0.85)) drop-shadow(0 0 20px rgba(255,106,26,0.5)) drop-shadow(0 20px 50px rgba(0,0,0,0.35)); }
  50% { filter: drop-shadow(0 0 10px rgba(255,138,61,0.95)) drop-shadow(0 0 30px rgba(255,106,26,0.7)) drop-shadow(0 20px 50px rgba(0,0,0,0.35)); }
}
/* En el logo (silueta irregular) las capas rectangulares del componente original quedan
   ocultas: el brillo real ahí sigue la silueta vía drop-shadow y la línea vía el contorno
   trazado en canvas. En tarjetas rectangulares normales (ej. Basket Center) sí se usan. */
#badgeElectricBorder .eb-layers { display: none; }

/* ── ElectricBorder (reactbits.dev/animations/electric-border), portado a JS plano. ── */
.electric-border { --eb-color: #FF6A1A; --eb-light: #FFB37A; position: relative; border-radius: 24px; isolation: isolate; }
.eb-canvas-container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 2; }
.eb-canvas { display: block; }
.eb-content { position: relative; border-radius: inherit; z-index: 1; }
.eb-layers { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; }
.eb-glow-1, .eb-glow-2, .eb-background-glow { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-sizing: border-box; }
.eb-glow-1 { border: 2px solid rgba(255,106,26,0.6); filter: blur(1px); }
.eb-glow-2 { border: 2px solid var(--eb-light); filter: blur(4px); }
.eb-background-glow { z-index: -1; transform: scale(1.1); filter: blur(32px); opacity: 0.35; background: linear-gradient(-30deg, var(--eb-light), transparent, var(--eb-color)); }
@media (max-width: 860px) {
  .como-funciona-grid { grid-template-columns: 1fr; }
  .como-funciona-badge { max-width: 280px; order: -1; }
}
.flow { max-width: 640px; }
.flow-step { display: flex; gap: 22px; position: relative; padding-bottom: 46px; }
.flow-step:last-child { padding-bottom: 0; }
.flow-step::before {
  content: ""; position: absolute; left: 21px; top: 46px; bottom: -2px; width: 1px;
  background: var(--line);
}
.flow-step:last-child::before { display: none; }
.flow-num {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-elev); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Anton', sans-serif; font-size: 16px; color: var(--orange);
  z-index: 1;
}
.flow-body h3 { font-size: 19px; margin-bottom: 6px; margin-top: 8px; }
.flow-body p { color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 44ch; }

/* ── Basket Center: sección ancha, una sola pieza visual real. ── */
.bc-section {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.bc-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 56px; align-items: center; }
.bc-grid h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; margin-bottom: 16px; max-width: 15ch; }
.bc-grid p { color: var(--muted); font-size: 15.5px; line-height: 1.65; max-width: 50ch; }

/* Redes de Basket World (el proyecto detrás de Basket Center), solo en esta sección. */
.bc-social { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.bc-social-logo { height: 30px; width: auto; flex-shrink: 0; }
.bc-social-links { display: flex; gap: 22px; flex-wrap: wrap; }
.bc-social-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--cream); font-size: 13.5px; text-decoration: none; font-weight: 600; }
.bc-social-links a img, .bc-social-links a svg { width: 18px; height: 18px; object-fit: contain; }
.bc-social-links a:hover { color: var(--orange-2); }

.bc-visual { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.bc-visual .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.bc-visual .top .n { font-family: 'Anton', sans-serif; font-size: 30px; color: var(--cream); }
.bc-visual .top .of { color: var(--muted); font-size: 13px; }
.bc-ticks { display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; margin-bottom: 22px; }
.bc-ticks span { height: 7px; border-radius: 4px; background: var(--line); }
.bc-ticks span.on { background: var(--grad-orange); }
.bc-visual .goal { font-size: 13px; color: var(--muted); line-height: 1.6; }
.bc-visual .goal b { color: var(--cream); }

@media (max-width: 860px) {
  .bc-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── CTA final ── */
.final-cta { padding: 110px 0; }
.final-cta-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 28px;
  padding: 56px; position: relative; overflow: hidden;
}
.final-cta-inner::before {
  content: ""; position: absolute; top: -30%; right: -10%; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,106,26,0.16), transparent 70%);
  pointer-events: none;
}
.final-cta-inner h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 12px; }
.final-cta-inner p.lede { color: var(--muted); font-size: 15.5px; margin-bottom: 0; }
.final-cta .actions { display: flex; flex-direction: column; gap: 12px; }
.final-cta .actions .btn { width: 100%; }

@media (max-width: 860px) {
  .final-cta-inner { grid-template-columns: 1fr; padding: 36px 26px; }
}

/* ── Footer ── */
footer { border-top: 1px solid var(--line-soft); padding: 40px 0; }
footer .bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer p { color: var(--muted-2); font-size: 13px; }
footer .links { display: flex; gap: 26px; flex-wrap: wrap; }
footer .links a { display: inline-flex; align-items: center; gap: 8px; color: var(--cream); font-size: 13.5px; text-decoration: none; font-weight: 600; }
footer .links a img, footer .links a svg { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
footer .links a:hover { color: var(--orange-2); }

/* ── Reveal on scroll (IntersectionObserver-driven, ver <script>) ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > * { transition-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .bento-item { transition: none; }
}

@media (max-width: 720px) {
  .hero { padding: 64px 0 70px; min-height: 520px; }
  .hero-grid { max-width: 100%; }
  .section { padding: 64px 0; }
}

/* ── Página Shopping (shopping.html): mini-header propio, sin duplicar todo el shell del index. ── */
.shop-page-header { padding: 16px 0 0; }
.shop-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.shop-back:hover { color: var(--cream); }
