/* ============================================================
   Geek Bar Español — Design Tokens "Obsidian Neon"
   US Hispanic Gen Z/Millennial — Dark + Neon Latin Twist
   Spec: sites/geekbarespanol/references/page-and-keyword-plan.md
   ============================================================ */

:root {
  /* ═══ Backgrounds ═══ */
  --bg-primary:    #0A0A0C;
  --bg-card:       #16161A;
  --bg-card-hover: #1F1F26;
  --border-hair:   rgba(255, 255, 255, 0.06);

  /* ═══ Text ═══ */
  --text-main:  #FFFFFF;
  --text-muted: #8A8B91;

  /* ═══ Neon Accents (Latin Twist) ═══ */
  --fuego: #FF2A54;   /* Neon Crimson — CTA / urgencia */
  --limon: #CCFF00;   /* Electric Lime — precio / nuevo */
  --azul:  #00F0FF;   /* Cyber Blue — info / íconos */

  /* ═══ Trust (locked) ═══ */
  --whatsapp: #25D366;

  /* ═══ Disabled / Stock out ═══ */
  --agotado: #3A3A42;

  /* ═══ Fonts ═══ */
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* ═══ Radii / Spacing ═══ */
  --radius-btn:  12px;
  --radius-card: 16px;
  --container-max: 1200px;
}

/* ═══ Reset ═══ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ═══ Base ═══ */
body {
  background: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ═══ Typography ═══ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-top: 2rem; margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-top: 1.5rem; margin-bottom: 0.75rem; }
p  { margin-block: 1rem; color: var(--text-main); }
.text-muted { color: var(--text-muted); }

/* ═══ Layout ═══ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}
main { min-height: calc(100vh - 160px); }

/* ═══ Buttons ═══ */
.btn-fuego {
  background: var(--fuego);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: var(--radius-btn);
  display: inline-block;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.btn-fuego:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(255, 42, 84, 0.35);
}

/* ═══ Price Badge (limón) ═══ */
.price-limon {
  color: var(--limon);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(204, 255, 0, 0.25);
}

/* ═══ Cards ═══ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: background 180ms ease-out, transform 180ms ease-out;
}
.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

/* ═══ Info Label (azul) ═══ */
.info-label {
  color: var(--azul);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ═══ WhatsApp Float (trust) ═══ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: transform 150ms ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ═══ Stock badge ═══ */
.stock-in  { color: var(--text-main); font-weight: 500; }
.stock-in::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  margin-right: 8px;
  vertical-align: middle;
}
.stock-out { color: var(--agotado); text-decoration: line-through; }

/* ═══ Legal warning (bottom of every page) ═══ */
.legal-warning {
  background: #000;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.5;
  padding: 16px 24px;
  text-align: center;
  border-top: 1px solid var(--border-hair);
}
.legal-warning strong { color: var(--fuego); font-weight: 700; }

/* ═══ Header / Nav ═══ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-hair);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
  flex-wrap: wrap;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--fuego); }
.nav-logo em { color: var(--limon); font-style: normal; }
.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.9375rem;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-muted);
  transition: color 150ms ease;
}
.nav-links a:hover { color: var(--text-main); }
.nav-links a.active { color: var(--text-main); }

/* ═══ Footer ═══ */
.site-footer {
  background: #050507;
  border-top: 1px solid var(--border-hair);
  padding: 56px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--azul);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color 150ms ease;
}
.footer-col a:hover { color: var(--text-main); }
.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
  padding-top: 24px;
  border-top: 1px solid var(--border-hair);
}

/* ═══ Hero (full bleed) ═══ */
.hero {
  padding: 64px 0 48px;
  text-align: center;
}
.hero .info-label { display: inline-block; margin-bottom: 16px; }
.hero h1 { margin-bottom: 24px; }
.hero p.lead {
  max-width: 720px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1.125rem;
}
.hero-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-ghost {
  display: inline-block;
  padding: 16px 32px;
  border: 1px solid var(--azul);
  color: var(--azul);
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-weight: 700;
  transition: background 150ms ease;
}
.btn-ghost:hover { background: rgba(0, 240, 255, 0.08); }

/* ═══ Section ═══ */
section.block { padding: 56px 0; }
section.block h2 { text-align: center; margin-bottom: 12px; }
section.block .section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 40px;
}

/* ═══ Grids ═══ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* ═══ Product Card ═══ */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.product-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  border-color: rgba(0, 240, 255, 0.2);
}
.product-card .badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(204, 255, 0, 0.1);
  color: var(--limon);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  border-radius: 999px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: flex-start;
}
.product-card .badge.fuego { background: rgba(255, 42, 84, 0.1); color: var(--fuego); }
.product-card h3 {
  font-size: 1.25rem;
  margin: 0 0 8px;
}
.product-card .puffs {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 16px;
}
.product-card .feature-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.product-card .feature-list li {
  font-size: 0.875rem;
  color: var(--text-main);
  padding-left: 18px;
  position: relative;
}
.product-card .feature-list li::before {
  content: "›";
  color: var(--azul);
  position: absolute;
  left: 0;
  font-weight: 700;
}
.product-card .price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-hair);
}
.product-card .price-row .price-limon { font-size: 1.5rem; }
.product-card .price-row a {
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product-card .price-row a:hover { color: var(--azul); }

/* ═══ Quick Answer Block (GEO/Snippet) ═══ */
.quick-answer {
  background: linear-gradient(135deg, rgba(255, 42, 84, 0.08), rgba(0, 240, 255, 0.05));
  border: 1px solid rgba(255, 42, 84, 0.3);
  border-left: 4px solid var(--fuego);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin: 32px 0;
}
.quick-answer .label {
  display: inline-block;
  background: var(--fuego);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.quick-answer p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.quick-answer p strong { color: var(--limon); }

/* ═══ Steps ═══ */
ol.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 16px;
  margin: 24px 0;
}
ol.steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 24px 20px 72px;
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-card);
}
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: var(--azul);
  color: #0A0A0C;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}
ol.steps li strong { color: var(--text-main); display: block; margin-bottom: 4px; }
ol.steps li p { margin: 4px 0 0; color: var(--text-muted); font-size: 0.9375rem; }

/* ═══ FAQ Accordion ═══ */
.faq-list { display: grid; gap: 12px; margin-top: 24px; }
.faq-list details {
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-card);
  padding: 0;
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--azul);
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 200ms ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details[open] summary { color: var(--azul); }
.faq-list details > p,
.faq-list details > div {
  padding: 0 24px 20px;
  color: var(--text-muted);
  margin: 0;
}

/* ═══ Tables ═══ */
table.spec {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-card);
  overflow: hidden;
  font-size: 0.9375rem;
}
table.spec th,
table.spec td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-hair);
}
table.spec thead th {
  background: rgba(0, 240, 255, 0.04);
  color: var(--azul);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
table.spec tbody tr:last-child td { border-bottom: none; }
table.spec tbody td:first-child {
  font-family: var(--font-display);
  color: var(--text-main);
  font-weight: 500;
}
table.spec tbody td:last-child { color: var(--text-muted); }

/* ═══ Breadcrumbs ═══ */
.breadcrumbs {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 16px 0 0;
  font-family: var(--font-display);
}
.breadcrumbs a { color: var(--text-muted); transition: color 150ms ease; }
.breadcrumbs a:hover { color: var(--azul); }
.breadcrumbs span.sep { margin: 0 8px; opacity: 0.5; }
.breadcrumbs span.current { color: var(--text-main); }

/* ═══ Pill row (chips) ═══ */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px;
}
.pill {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: 999px;
  font-size: 0.875rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-main);
  transition: border-color 150ms ease, background 150ms ease;
}
.pill:hover {
  border-color: var(--azul);
  background: var(--bg-card-hover);
  color: var(--azul);
}

/* ═══ Callouts ═══ */
.callout {
  padding: 20px 24px;
  border-radius: var(--radius-card);
  margin: 24px 0;
  border-left: 4px solid var(--azul);
  background: rgba(0, 240, 255, 0.04);
}
.callout.warn {
  border-left-color: var(--fuego);
  background: rgba(255, 42, 84, 0.05);
}
.callout strong { color: var(--text-main); }

/* ═══ Article body (long-form pages) ═══ */
article.prose { max-width: 820px; margin: 0 auto; }
article.prose p { color: var(--text-main); }
article.prose p + p { margin-top: 12px; }
article.prose ul, article.prose ol { margin: 16px 0 16px 24px; }
article.prose ul li, article.prose ol li { margin-bottom: 8px; }
article.prose a { color: var(--azul); text-decoration: underline; text-decoration-color: rgba(0,240,255,0.4); }
article.prose a:hover { text-decoration-color: var(--azul); }
article.prose h2 {
  margin-top: 48px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-hair);
}
article.prose h3 { margin-top: 32px; color: var(--limon); }

/* ═══ Internal links block ═══ */
.related-links {
  margin: 48px 0 24px;
  padding: 32px;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-hair);
}
.related-links h3 {
  margin-top: 0;
  color: var(--azul);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.related-links ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}
.related-links ul li { margin: 0; }
.related-links ul a {
  color: var(--text-main);
  text-decoration: none;
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 150ms ease;
}
.related-links ul a::before { content: "→ "; color: var(--azul); }
.related-links ul a:hover { background: var(--bg-card-hover); color: var(--azul); }
