/* ============================================================
   Daniel "Golden Boy" Zellhuber — v5 (client Claude-Design mock)
   Source of truth: _src/design-handoff/.../Sitio Golden Boy.dc.html
   Mobile-first (mock = 480px frame). Desktop adaptation ≥1100px.

   Invariants kept beyond the mock:
   - every hidden-then-animate state is gated: hero intro
     animations only exist under html[data-entrance="js"];
     scroll reveals hidden only under html[data-anim="on"].
   - no JS / reduced motion / save-data => fully visible page.
   ============================================================ */

:root {
  --carbon: #101211;
  --carbon-deep: #0B0C0B;
  --card: #161817;
  --well: #1D1F1E;
  --chalk: #EFEDE6;
  --chalk-dim: rgba(239,237,230,.62);
  --gold: #E8A33D;
  --gold-deep: #9A6E24;
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Sora", sans-serif;
  --font-mono: "Space Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

body {
  background: var(--carbon);
  color: var(--chalk);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.patro :focus-visible { outline-color: var(--carbon); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px; left: 12px;
  z-index: 200;
  background: var(--gold);
  color: var(--carbon);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  padding: 10px 16px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section[id] { scroll-margin-top: 64px; }

/* ============ Keyframes (verbatim from the mock) ============ */
@keyframes rollUp { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes figIn { from { opacity: 0; transform: scale(1.07) translateY(24px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes sweepX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grainJit { 0% { background-position: 0 0; } 20% { background-position: -30px 14px; } 40% { background-position: 22px -26px; } 60% { background-position: -14px -8px; } 80% { background-position: 30px 24px; } 100% { background-position: 0 0; } }
@keyframes flicker { 0% { opacity: .2; } 8% { opacity: .05; } 16% { opacity: .16; } 30% { opacity: .06; } 100% { opacity: .09; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ovRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  transition: background-color .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: rgba(16,18,17,.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { display: block; }
.brand-word {
  font: 700 11px var(--font-mono);
  color: var(--chalk);
  letter-spacing: .22em;
}
/* mock hamburger: 24px chalk bar over 16px gold bar */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle .bar-1 { height: 1.5px; width: 24px; background: var(--chalk); display: block; }
.nav-toggle .bar-2 { height: 1.5px; width: 16px; background: var(--gold); display: block; }

/* ============ Nav overlay ============ */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(16,18,17,.98);
  display: flex;
  flex-direction: column;
  padding: 10px 20px 32px;
}
.nav-overlay[hidden] { display: none; }
.nav-overlay-top {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-close {
  background: none;
  border: 0;
  color: var(--gold);
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-overlay-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-overlay-links a {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  line-height: 1.1;
  color: var(--chalk);
  letter-spacing: .02em;
  transition: color .2s ease;
}
.nav-overlay-links a:hover { color: var(--gold); }
.nav-overlay.open .nav-overlay-links a {
  animation: ovRise .5s cubic-bezier(.16,1,.3,1) both;
  animation-delay: calc(var(--i, 0) * 60ms + 80ms);
}
@media (prefers-reduced-motion: reduce) {
  .nav-overlay.open .nav-overlay-links a { animation: none; }
}
.nav-overlay-social { display: flex; gap: 22px; }
.nav-overlay-social a,
.footer-social a {
  color: rgba(239,237,230,.7);
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  transition: color .25s ease;
}
.nav-overlay-social a:hover,
.footer-social a:hover { color: var(--gold); }
body.nav-open { overflow: hidden; }

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 700px;
  max-height: 950px;
  overflow: hidden;
  background: var(--carbon);
}

/* --- name wall (z1) + echo (z3): identical geometry --- */
.wall {
  position: absolute;
  top: 108px;
  left: 0; right: 0;
  padding: 0 16px;
  z-index: 1;
}
.wall-echo {
  z-index: 3;
  pointer-events: none;
}
.eyebrow {
  margin: 0;
  font: 400 11px var(--font-mono);
  color: var(--gold);
  letter-spacing: .24em;
}
.hero-name { margin: 0; font-weight: 400; }
.given {
  display: block;
  font: 600 13px var(--font-body);
  color: var(--chalk);
  letter-spacing: .58em;
  margin: 14px 0 2px;
}
.stack {
  display: block;
  font-family: var(--font-display);
  color: var(--chalk);
  letter-spacing: .005em;
}
.line { display: block; }
.line-zell {
  overflow: hidden;
  font-size: clamp(150px, 49vw, 186px);
  line-height: .8;
}
.line-huber {
  overflow: hidden;
  font-size: clamp(120px, 40vw, 150px);
  line-height: .84;
}
.roll { display: block; }

/* echo layer: everything invisible except the stroked HUBER */
.ghost-spacer { visibility: hidden; }
.wall-echo .given { margin: 14px 0 2px; }
.wall-echo .line-huber { overflow: visible; }
.echo-huber {
  -webkit-text-stroke: 1px rgba(239,237,230,.55);
  color: transparent;
}

/* --- figure cutout (z2) --- */
.fig-frame {
  position: absolute;
  left: 0; right: -88%;
  top: 34%; bottom: 0;
  z-index: 2;
}
.fig {
  width: 100%;
  height: 112%;
  position: relative;
  will-change: transform;
}
.fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  /* duotone grade in CSS on the clean cutout (the mock's baked PNG
     garbled the shorts lettering — hero-duotone.png is banned) */
  filter: grayscale(1) contrast(1.18) brightness(.94) sepia(.5) saturate(1.35) hue-rotate(-8deg);
}
.fig-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,18,17,0) 40%, rgba(16,18,17,.55) 78%, #101211 100%);
}

/* --- hero bottom stack (z4) --- */
.hero-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 20px 28px;
  z-index: 4;
  background: linear-gradient(180deg, rgba(16,18,17,0), rgba(16,18,17,.82) 45%);
}
.sweep {
  width: 128px;
  height: 2px;
  background: var(--gold);
  transform-origin: left;
}
.tagline {
  font: italic 400 15px var(--font-body);
  color: var(--gold);
  margin: 14px 0 10px;
}
.meta {
  font: 400 11px var(--font-mono);
  color: var(--chalk-dim);
  letter-spacing: .14em;
  margin: 0 0 18px;
}
.cta-row { display: flex; gap: 10px; }
.cta {
  font: 400 16px var(--font-display);
  text-decoration: none;
}
.cta-solid {
  flex: 0 0 auto;
  background: var(--gold);
  color: var(--carbon);
  letter-spacing: .12em;
  padding: 14px 22px;
}
.cta-ghost {
  flex: 1;
  border: 1px solid rgba(154,110,36,.6);
  color: var(--chalk);
  letter-spacing: .1em;
  padding: 14px 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-solid:hover { background: #f0b25a; }
.cta-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* --- hero intro animations: ONLY under the entrance gate.
       Without the gate nothing is ever hidden. Timings verbatim. --- */
html[data-entrance="js"] .roll-1 { animation: rollUp .62s .35s cubic-bezier(.16,1,.3,1) both; }
html[data-entrance="js"] .roll-2 { animation: rollUp .62s .5s cubic-bezier(.16,1,.3,1) both; }
html[data-entrance="js"] .wall:not(.wall-echo) .eyebrow { animation: riseIn .5s .5s cubic-bezier(.16,1,.3,1) both; }
html[data-entrance="js"] .wall:not(.wall-echo) .given { animation: riseIn .5s .6s cubic-bezier(.16,1,.3,1) both; }
html[data-entrance="js"] .fig { animation: figIn 1.8s .15s cubic-bezier(.16,1,.3,1) both; }
html[data-entrance="js"] .echo-huber { animation: fadeIn .8s 1.1s both; }
html[data-entrance="js"] .sweep { animation: sweepX .6s 1.4s cubic-bezier(.16,1,.3,1) both; }
html[data-entrance="js"] .tagline { animation: riseIn .5s 1.55s cubic-bezier(.16,1,.3,1) both; }
html[data-entrance="js"] .meta { animation: riseIn .5s 1.65s cubic-bezier(.16,1,.3,1) both; }
html[data-entrance="js"] .cta-row { animation: riseIn .5s 1.75s cubic-bezier(.16,1,.3,1) both; }

/* ============ Marquee ============ */
.marquee {
  background: var(--gold);
  padding: 10px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee-track span {
  font: 400 16px var(--font-display);
  color: var(--carbon);
  letter-spacing: .2em;
  white-space: nowrap;
  padding-right: 28px;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ============ Scroll reveals (gated; mock's data-rv behavior) ==== */
html[data-anim="on"] .rv {
  opacity: 0;
  transform: translateY(26px);
}
html[data-anim="on"] .rv.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s cubic-bezier(.16,1,.3,1) var(--d, 0s), transform .7s cubic-bezier(.16,1,.3,1) var(--d, 0s);
}
@media (prefers-reduced-motion: reduce) {
  html[data-anim="on"] .rv.is-in { transition: none; }
}

/* ============ Shared type ============ */
.sec-label {
  font: 400 10px var(--font-mono);
  color: var(--gold);
  letter-spacing: .3em;
  margin: 0;
}
.sec-label-dark {
  font-weight: 700;
  color: var(--carbon);
}
.h2 {
  font: 400 56px var(--font-display);
  color: var(--chalk);
  margin: 0 0 30px;
  line-height: .9;
}
.h2-dark { color: var(--carbon); margin-bottom: 22px; }

/* ============ Manifiesto ============ */
.manifiesto { padding: 72px 0 64px; position: relative; }
.manifiesto .sec-label { margin-bottom: 22px; }
.statement {
  font: 400 34px var(--font-display);
  color: var(--chalk);
  line-height: 1.12;
  margin: 0 0 22px;
  letter-spacing: .015em;
}
.statement .gold { color: var(--gold); }
.mani-body {
  font: 400 14.5px var(--font-body);
  color: rgba(239,237,230,.72);
  line-height: 1.75;
  margin: 0;
}

/* ============ La Tienda ============ */
.tienda {
  padding: 64px 0 72px;
  border-top: 1px solid rgba(232,163,61,.16);
}
.tienda-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.tienda-ship {
  font: 400 10px var(--font-mono);
  color: rgba(239,237,230,.4);
  letter-spacing: .14em;
  margin: 0;
}
.products {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.product {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-items: center;
  background: var(--card);
  border: 1px solid rgba(232,163,61,.14);
  padding: 16px;
}
.product-img {
  background: var(--well);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-name {
  font: 400 24px var(--font-display);
  color: var(--chalk);
  margin: 0;
  letter-spacing: .04em;
}
.product-price {
  font: 400 12px var(--font-mono);
  color: var(--gold);
  margin: 0;
  letter-spacing: .1em;
}
.add-cart {
  align-self: flex-start;
  margin-top: 4px;
  background: none;
  border: 1px solid rgba(154,110,36,.6);
  color: var(--chalk);
  font: 400 14px var(--font-display);
  letter-spacing: .12em;
  padding: 10px 18px;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}
.add-cart:hover { border-color: var(--gold); color: var(--gold); }
.add-cart.added {
  border-color: var(--gold);
  color: var(--gold);
}
.shop-note {
  font: 400 9.5px var(--font-mono);
  color: rgba(239,237,230,.35);
  letter-spacing: .12em;
  margin: 22px 0 0;
}

/* ============ Patrocina (full gold) ============ */
.patro {
  padding: 64px 0 72px;
  background: var(--gold);
}
.patro .sec-label-dark { margin-bottom: 8px; }
.patro-pitch {
  font: 400 14.5px var(--font-body);
  color: rgba(16,18,17,.82);
  line-height: 1.7;
  margin: 0 0 30px;
}
.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: center;
  margin-bottom: 36px;
  padding: 22px 18px;
  border-top: 1px solid rgba(16,18,17,.3);
  border-bottom: 1px solid rgba(16,18,17,.3);
}
/* Per-logo treatment: the mock's uniform brightness(0) blacks out
   BetBoom's own solid-black mark and Mariguanol's yellow pill. */
.partners img { width: auto; }
.partners .p-monster { height: 30px; filter: brightness(0); }
.partners .p-yaoca { height: 34px; filter: brightness(0); }
.partners .p-betboom { height: 34px; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; }
.partners .p-mariguanol { height: 18px; filter: saturate(.85) contrast(1.05); mix-blend-mode: multiply; }

.patro-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.patro-form .form-row { display: flex; gap: 10px; }
.patro-form input,
.patro-form textarea {
  background: none;
  border: 1px solid rgba(16,18,17,.5);
  color: var(--carbon);
  font: 400 12px var(--font-mono);
  letter-spacing: .08em;
  padding: 14px 14px;
  width: 100%;
}
.patro-form .form-row input { flex: 1; min-width: 0; }
.patro-form textarea { resize: vertical; }
.patro-form input::placeholder,
.patro-form textarea::placeholder { color: rgba(16,18,17,.55); }
.patro-submit {
  background: var(--carbon);
  color: var(--gold);
  border: none;
  font: 400 17px var(--font-display);
  letter-spacing: .14em;
  padding: 16px 0;
  cursor: pointer;
}
.form-ok {
  margin: 4px 0 0;
  min-height: 1em;
  letter-spacing: .1em;
}
.form-ok-dark {
  font: 700 11px var(--font-mono);
  color: var(--carbon);
}
.form-ok-gold {
  font: 400 11px var(--font-mono);
  color: var(--gold);
  margin: 12px 0 0;
}

/* ============ Boletín ============ */
.boletin { padding: 64px 0; }
.boletin-h {
  font: 400 34px var(--font-display);
  color: var(--chalk);
  margin: 0 0 8px;
  line-height: 1;
}
.boletin-line {
  font: 400 13.5px var(--font-body);
  color: var(--chalk-dim);
  line-height: 1.6;
  margin: 0 0 22px;
}
.news-form { display: flex; gap: 10px; }
.news-form input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 1px solid rgba(154,110,36,.5);
  color: var(--chalk);
  font: 400 12px var(--font-mono);
  letter-spacing: .08em;
  padding: 14px 14px;
}
.news-form input::placeholder { color: rgba(239,237,230,.4); }
.news-form button {
  background: var(--gold);
  color: var(--carbon);
  border: none;
  font: 400 16px var(--font-display);
  letter-spacing: .14em;
  padding: 0 24px;
  cursor: pointer;
}

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid rgba(232,163,61,.16);
  padding: 44px 20px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-name {
  font: 400 18px var(--font-display);
  color: var(--chalk);
  letter-spacing: .16em;
  margin: 0;
}
.footer-social { display: flex; gap: 22px; align-items: center; }
.footer-legal {
  font: 400 9px var(--font-mono);
  color: rgba(239,237,230,.35);
  letter-spacing: .14em;
  margin: 8px 0 0;
  line-height: 1.8;
}

/* ============ Page grain (mock: fixed, .08, flicker + jitter) ==== */
.page-grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: .08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}
@media (prefers-reduced-motion: no-preference) {
  html[data-anim="on"] .page-grain {
    animation: flicker 1s both, grainJit 9s steps(6) 1s infinite;
  }
}

/* ============================================================
   DESKTOP ADAPTATION (≥1100px) — same DNA, real layout.
   Mobile remains the literal mock composition.
   ============================================================ */
@media (min-width: 1100px) {
  .site-header { padding: 0 44px; }

  .hero { max-height: 1000px; }

  .wall {
    top: 96px;
    padding: 0 44px;
  }
  .line-zell { font-size: clamp(220px, 30vw, 430px); line-height: .8; }
  .line-huber { font-size: clamp(180px, 24vw, 350px); line-height: .84; }
  .given { font-size: 15px; }
  .eyebrow { font-size: 12px; }

  /* figure rises large from the right; 1188 native, cap ≤1.25x:
     min(56vw, 1480px) => drawn scale ≤ 1480/1188 = 1.246 */
  .fig-frame {
    left: auto;
    right: -4vw;
    top: 6%;
    bottom: 0;
    width: min(56vw, 1480px);
  }
  .fig { height: 106%; }

  .hero-bottom {
    padding: 0 44px 44px;
    max-width: 640px;
    background: linear-gradient(180deg, rgba(16,18,17,0), rgba(16,18,17,.7) 45%);
  }
  .cta-row { max-width: 520px; }

  .marquee { padding: 12px 0; }
  .marquee-track span { font-size: 19px; }

  /* manifiesto: statement left, paragraph right */
  .manifiesto { padding: 120px 0 110px; }
  .mani-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 70px;
    align-items: end;
  }
  .statement { font-size: 54px; }
  .mani-body { font-size: 16px; }

  /* tienda: 3-column grid of the same card DNA */
  .tienda { padding: 110px 0; }
  .h2 { font-size: 72px; }
  .products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
  .product {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
    padding: 18px;
  }
  .product-img { width: 100%; }

  /* patrocina: pitch/logos left, form right */
  .patro { padding: 110px 0; }
  .patro-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 70px;
    align-items: start;
  }
  .patro-form { margin-top: 8px; }

  /* boletín inline row */
  .boletin { padding: 90px 0; }
  .boletin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
  }
  .boletin-line { margin-bottom: 0; }
}
