/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #ffffff;
  --ink:       #101010;
  --ink-soft:  #3a3a3a;
  --ink-mute:  #6f6f6f;
  --line:      #101010;
  --line-soft: rgba(16,16,16,0.14);
  --accent:    #e2001a;   /* rojo, único acento primario */
  --accent-ink:#ffffff;
  --paper:     #f5f5f3;

  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body:    "Inter", -apple-system, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: #fff;
  z-index: 9999; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: .9rem;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--line-soft);
}
.grid-12 > * { background: var(--bg); }
.col-span-4 { grid-column: span 12; }
.col-span-8 { grid-column: span 12; }
@media (min-width: 720px) {
  .col-span-4 { grid-column: span 4; }
  .col-span-8 { grid-column: span 8; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 1.6rem;
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid var(--ink);
  transition: background .15s var(--ease-out), color .15s var(--ease-out), border-color .15s var(--ease-out);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* =============================================================
   4. Header
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: var(--bg);
  border-bottom: 1.5px solid var(--line);
  height: var(--header-h);
}
.header-inner {
  height: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-mark {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: .02em;
  white-space: nowrap;
}
.brand-mark span { color: var(--accent); }

.main-nav {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
  font-family: var(--font-mono);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.main-nav a { position: relative; padding-block: .3rem; }
.main-nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--accent);
  transition: right .2s var(--ease-out);
}
.main-nav a:hover::after { right: 0; }
@media (min-width: 960px) { .main-nav { display: flex; } }

.header-actions { display: flex; align-items: center; gap: .6rem; }

.cart-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1.5px solid var(--ink);
  transition: background .15s var(--ease-out), color .15s var(--ease-out);
}
.cart-btn:hover { background: var(--ink); color: #fff; }
.cart-count {
  position: absolute; top: -8px; right: -8px;
  background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
  min-width: 19px; height: 19px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding-inline: 2px;
}

/* Mobile nav — native <details>/<summary>, works with JS off */
.mobile-nav { position: relative; }
@media (min-width: 960px) { .mobile-nav { display: none; } }

.mobile-nav summary {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::marker { content: ""; }
.mobile-nav[open] summary { background: var(--ink); color: #fff; }

.mobile-nav-list {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem clamp(1rem, 4vw, 2.5rem);
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 1.3rem;
  gap: 1.4rem;
  z-index: 400;
  overflow-y: auto;
}

/* =============================================================
   5. Hero
   ============================================================= */
.hero { padding-block: clamp(2.5rem, 8vw, 6rem) clamp(2rem, 6vw, 4rem); }
.hero-grid { max-width: 1400px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.hero-grid > * { padding: clamp(1.2rem, 3vw, 2.5rem); }
.hero-text { display: flex; flex-direction: column; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: .96;
  text-transform: uppercase;
  max-width: 16ch;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub { max-width: 46ch; color: var(--ink-soft); margin-top: 1.4rem; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero-visual {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  color: var(--ink-mute);
}
.hero-visual svg { color: var(--ink); opacity: .18; }
.hero-visual-note {
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
@media (min-width: 720px) { .hero-visual { display: flex; } }

/* =============================================================
   6. Stats strip
   ============================================================= */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-block: 1.5px solid var(--line);
  max-width: 1400px;
  margin-inline: auto;
}
@media (min-width: 720px) { .stats-strip { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: 1.6rem 1rem;
  text-align: center;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.stat:nth-child(2n) { border-right: none; }
@media (min-width: 720px) {
  .stat { border-bottom: none; }
  .stat:nth-child(2n) { border-right: 1px solid var(--line-soft); }
  .stat:last-child { border-right: none; }
}
.stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
}
.stat-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-mute);
}

/* =============================================================
   7. Country sections & product grid
   ============================================================= */
.country-section {
  max-width: 1400px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1.5px solid var(--line);
  scroll-margin-top: var(--header-h);
}
.country-header { margin-bottom: 2rem; max-width: 60ch; }
.country-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.flag-badge {
  font-family: var(--font-mono);
  font-size: .95rem;
  font-weight: 600;
  border: 1.5px solid var(--ink);
  padding: .15rem .5rem;
  letter-spacing: .03em;
}
.country-sub { color: var(--ink-mute); margin-top: .6rem; }

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
@media (min-width: 540px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: var(--bg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: background .18s var(--ease-out);
}
.product-card:hover { background: var(--paper); }

.product-thumb {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border: 1px dashed var(--line-soft);
  color: var(--ink-mute);
  margin-bottom: 1.1rem;
}
.product-card:hover .product-thumb { color: var(--accent); }

.product-tag {
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-mute);
  margin-bottom: .35rem;
}
.product-name { font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.product-desc { font-size: .9rem; color: var(--ink-soft); margin-top: .5rem; flex-grow: 1; }

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.product-price { font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem; }

.btn-add {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: .6rem 1rem;
  border: 1.5px solid var(--ink);
  white-space: nowrap;
  transition: background .15s var(--ease-out), color .15s var(--ease-out);
}
.btn-add:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-add.is-added { background: var(--ink); color: #fff; }

/* =============================================================
   8. Final CTA
   ============================================================= */
.final-cta {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
  max-width: 1400px;
  margin-inline: auto;
}
.final-cta .kicker { display: block; }
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}
.final-cta h2 em { font-style: normal; color: var(--accent); }

/* =============================================================
   9. Footer
   ============================================================= */
.site-footer { background: var(--ink); color: var(--paper); }
.footer-grid {
  max-width: 1400px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem);
  background: transparent !important;
}
.footer-grid > * { background: transparent !important; padding: .8rem clamp(1rem, 4vw, 2.5rem) .8rem 0; }
.footer-brand .brand-mark { color: var(--paper); }
.footer-brand .brand-mark span { color: var(--accent); }
.footer-tagline { color: rgba(245,245,243,0.65); margin-top: .8rem; max-width: 30ch; }
.footer-heading {
  font-family: var(--font-mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: rgba(245,245,243,0.5);
  margin-bottom: .9rem;
}
.footer-block p { margin-bottom: .5rem; color: rgba(245,245,243,0.85); }
.footer-block a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(245,245,243,0.15);
  max-width: 1400px;
  margin-inline: auto;
  padding: 1.4rem clamp(1rem, 4vw, 2.5rem);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(245,245,243,0.55);
}

/* =============================================================
   10. Cart panel
   ============================================================= */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(16,16,16,0.4);
  z-index: 600;
}
.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(380px, 100vw);
  background: var(--bg);
  border-left: 1.5px solid var(--line);
  z-index: 601;
  display: flex; flex-direction: column;
}
.cart-panel[hidden], .cart-overlay[hidden] { display: none; }
.cart-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem 1.4rem;
  border-bottom: 1.5px solid var(--line);
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: .85rem;
}
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; }
.cart-items li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-block: .7rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: .9rem;
}
.cart-empty { color: var(--ink-mute); border-bottom: none !important; }
.cart-panel-foot {
  display: flex; justify-content: space-between;
  padding: 1.3rem 1.4rem;
  border-top: 1.5px solid var(--line);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* =============================================================
   11. Reveal on scroll
   ============================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================
   12. Reduced motion — only truly intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
