/* ============================================================
   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 Banner (full bleed image) ═══ */
.hero-banner { line-height: 0; }
.hero-banner img { aspect-ratio: 1440 / 624; object-fit: cover; }

/* ═══ 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;
  line-height: 1.6;
}
.byline {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: -16px auto 24px;
  max-width: 720px;
  text-align: center;
}
.byline a { color: var(--limon); text-decoration: none; }
.byline a:hover { text-decoration: underline; }
.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(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ═══ 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); }

/* ═══ Product Image Card (compra rápida) ═══ */
.product-img-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
  text-decoration: none;
  color: inherit;
}
.product-img-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 240, 255, 0.25);
}
.product-img-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #111114;
  padding: 12px;
}
.product-img-card .pic-body {
  padding: 16px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-img-card .pic-body h3 {
  font-size: 1.0625rem;
  margin: 0 0 4px;
}
.product-img-card .pic-body .pic-sub {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin: 0 0 12px;
}
.product-img-card .pic-body .pic-price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.product-img-card .pic-body .pic-price .price-limon {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--limon);
}
.product-img-card .pic-body .pic-price .pic-cta {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--azul);
}

/* ═══ Flavor Icon Card ═══ */
.flavor-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-card);
  transition: border-color 150ms ease, transform 150ms ease;
  text-decoration: none;
  color: inherit;
}
.flavor-icon-card:hover {
  border-color: var(--azul);
  transform: translateY(-2px);
}
.flavor-icon-card svg {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
}
.flavor-icon-card strong {
  font-size: 0.9375rem;
  line-height: 1.3;
}
.flavor-icon-card .text-muted {
  font-size: 0.8125rem;
  margin-top: 4px;
}

/* ═══ Nav mobile hamburger ═══ */
.nav-hamburger { display: none; background: none; border: none; color: var(--text-main); cursor: pointer; padding: 4px; }
@media (max-width: 768px) {
  .nav-hamburger { display: flex; align-items: center; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-primary); border-bottom: 1px solid var(--border-hair); padding: 16px; gap: 12px; z-index: 100; }
  .nav-links.open { display: flex; }
  .nav { position: relative; }
}

/* ═══ 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); }

/* ═══ Cart Button (nav) ═══ */
.cart-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  position: relative;
  padding: 4px;
  display: flex;
  align-items: center;
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--fuego);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ═══ Cart Drawer ═══ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 90vw);
  height: 100vh;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-hair);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 250ms ease;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-hair);
}
.cart-drawer-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.cart-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}
.cart-close:hover { color: var(--text-main); }
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-hair);
}
.cart-item-info { flex: 1; }
.cart-item-name {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0 0 4px;
  line-height: 1.3;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.qty-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  color: var(--text-main);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--bg-card-hover); }
.qty-num { font-variant-numeric: tabular-nums; min-width: 20px; text-align: center; }
.cart-drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-hair);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 500;
}

/* ═══ Product Flavor Selector ═══ */
.flavor-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-card);
  color: var(--text-main);
  font-size: 0.95rem;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8B91' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.flavor-select:focus {
  outline: none;
  border-color: var(--azul);
}
.add-to-cart-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}
.btn-agotado {
  display: inline-block;
  padding: 14px 28px;
  background: var(--agotado);
  color: var(--text-muted);
  border: none;
  border-radius: var(--radius-card);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: not-allowed;
  text-align: center;
  width: 100%;
}
[x-cloak] { display: none !important; }

/* ═══ Checkout Page ═══ */
.checkout-page { max-width: 1100px; padding: 32px 20px; }
.checkout-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 24px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 768px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { order: -1; }
}
.checkout-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-hair);
}
.checkout-error {
  background: rgba(255, 42, 84, 0.1);
  border: 1px solid var(--fuego);
  color: var(--fuego);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Form fields */
.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.form-field { flex: 1; }
.form-field.full { flex: 1 0 100%; }
.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-field input,
.form-field select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color 150ms;
}
.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--azul);
}
.form-field select { appearance: none; cursor: pointer; }
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--azul);
}

/* Order summary sidebar */
.checkout-summary {
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-card);
  padding: 24px;
  position: sticky;
  top: 80px;
}
.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
}
.summary-item-name {
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
}
.summary-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}
.summary-item-price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.summary-divider {
  border-top: 1px solid var(--border-hair);
  margin: 12px 0;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 4px 0;
}
.summary-total {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--limon);
}
.summary-trust {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 2;
}

/* Checkout buttons */
.checkout-continue,
.checkout-submit {
  font-size: 1rem;
  padding: 14px;
}

/* Processing spinner */
.checkout-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-hair);
  border-top-color: var(--azul);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══ Account Page ═══ */
.account-page { max-width: 800px; padding: 32px 20px; }
.auth-card {
  max-width: 420px;
  margin: 40px auto;
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-card);
  padding: 32px;
}
.auth-error {
  background: rgba(255, 42, 84, 0.1);
  border: 1px solid var(--fuego);
  color: var(--fuego);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.auth-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.auth-success {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid var(--whatsapp);
  color: var(--whatsapp);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.auth-switch a { color: var(--azul); text-decoration: underline; }

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.account-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-hair);
}
.account-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms;
}
.account-tab:hover { color: var(--text-main); }
.account-tab.active {
  color: var(--azul);
  border-bottom-color: var(--azul);
}

/* Order list */
.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 150ms;
}
.order-row:hover { background: var(--bg-card-hover); }
.order-row-main { display: flex; gap: 16px; align-items: center; }
.order-number { font-weight: 700; font-variant-numeric: tabular-nums; }
.order-date { color: var(--text-muted); font-size: 0.85rem; }
.order-status { font-weight: 600; font-size: 0.85rem; }
.order-row-right { display: flex; gap: 16px; align-items: center; }
.order-total { font-weight: 700; font-variant-numeric: tabular-nums; }
.order-items { color: var(--text-muted); font-size: 0.8rem; }

/* Order detail */
.order-detail { }
.order-meta-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Points balance */
.points-balance-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-card);
  padding: 32px;
}
.points-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.points-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--limon);
}

/* ═══ Product Page E-commerce Layout ═══ */
.product-hero { padding: 32px 20px; }
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) {
  .product-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Gallery */
.product-gallery { position: sticky; top: 80px; }
.product-img-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
}
.product-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.product-badge-oos {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--agotado);
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Price block */
.product-price-block { margin-bottom: 16px; }
.price-original {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 12px;
}
.price-sale {
  font-size: 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fuego);
}

/* Short description */
.product-short-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.product-short-desc strong { color: var(--text-main); }
.product-short-desc a { color: var(--azul); text-decoration: underline; }

/* Flavor selector */
.product-flavors { margin-bottom: 24px; }
.flavor-label {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

/* Filter pills row */
.flavor-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.flavor-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 150ms;
  font-weight: 500;
}
.flavor-pill:hover { border-color: var(--azul); color: var(--text-main); }
.flavor-pill.active {
  background: var(--azul);
  color: var(--bg-primary);
  border-color: var(--azul);
  font-weight: 700;
}

/* Flavor group */
.flavor-group { margin-bottom: 14px; }
.flavor-group-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-hair);
}

/* Flavor buttons */
.flavor-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.flavor-btn {
  display: inline-block;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1.5px solid var(--border-hair);
  border-radius: 6px;
  cursor: pointer;
  transition: all 150ms;
  line-height: 1.3;
}
.flavor-btn:hover {
  border-color: var(--azul);
  background: var(--bg-card-hover);
}
.flavor-btn.selected {
  background: var(--azul);
  color: var(--bg-primary);
  border-color: var(--azul);
  font-weight: 700;
}
.flavor-btn.oos {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}
.flavor-btn.oos:hover {
  border-color: var(--border-hair);
  background: var(--bg-card);
}
@media (max-width: 768px) {
  .flavor-btn { padding: 5px 10px; font-size: 0.78rem; }
  .flavor-buttons { gap: 4px; }
}

/* Actions row */
.product-actions { margin-bottom: 12px; }
.product-actions-inner {
  display: flex;
  gap: 12px;
  align-items: center;
}
.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-hair);
  border-radius: 8px;
  overflow: hidden;
}
.qty-input {
  width: 48px;
  text-align: center;
  background: var(--bg-card);
  color: var(--text-main);
  border: none;
  font-size: 1rem;
  padding: 10px 4px;
  -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty-selector .qty-btn {
  width: 38px;
  height: 42px;
  border-radius: 0;
  border: none;
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 1.1rem;
}
.qty-selector .qty-btn:hover { background: var(--bg-card-hover); }
.btn-add-cart { flex: 1; padding: 12px 20px; }
.btn-add-cart:disabled { opacity: 0.4; cursor: not-allowed; }

/* Buy Now button */
.btn-buy-now {
  display: block;
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 2px solid var(--limon);
  color: var(--limon);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: all 180ms;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn-buy-now:hover { background: var(--limon); color: var(--bg-primary); }
.btn-buy-now:disabled { opacity: 0.4; cursor: not-allowed; }

/* Reward points badge */
.reward-points-badge {
  background: rgba(204, 255, 0, 0.08);
  border: 1px solid rgba(204, 255, 0, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.reward-points-badge strong { color: var(--limon); }
.reward-icon { margin-right: 6px; }

/* Trust badges */
.trust-badges {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-hair);
}
.trust-title {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.trust-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}
.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.trust-extras {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}
