/* Brasera. Letrero de picó: colores planos saturados, una sola display de rotulista (Bungee). */
:root {
  --magenta: #c8006b;
  --yellow: #ffe600;
  --suave: #ffc21a;
  --bravo: #ff5a1f;
  --candela: #160707;
  --red: #ff2a2a;
  --cyan: #19c3f0;
  --ink: #160707;
  --paper: #ffffff;

  --display: "Bungee", Impact, sans-serif;
  --text: "Work Sans", system-ui, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-ctl: 10px;
  --r-card: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
html.lenis, html.lenis body { height: auto; }
body { margin: 0; background: var(--magenta); color: var(--paper); font: 400 18px/1.55 var(--text); overflow-x: clip; }
::selection { background: var(--yellow); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; color: var(--ink); padding: 10px 14px; }
.skip:focus { top: 12px; background: var(--yellow); }

#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 5; pointer-events: none; }
.scene-on .anchor img { visibility: hidden; }
.anchor { position: relative; display: grid; place-items: center; }
.anchor img { height: 100%; width: auto; object-fit: contain; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Nav: barra negra de lado a lado, como el cabezote de un picó. */
.nav {
  position: fixed; z-index: 20; inset: 0 0 auto 0; height: 60px; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 28px; background: var(--ink); color: var(--paper);
  border-bottom: 4px solid var(--yellow);
}
.brand { font: 400 24px/1 var(--display); color: var(--yellow); text-decoration: none; }
.nav nav { display: flex; gap: 24px; margin-left: auto; font-weight: 600; font-size: 14px; }
.nav nav a { text-decoration: none; padding: 10px 0; }
.nav nav a:hover { color: var(--yellow); }
.nav-cta { background: var(--yellow); color: var(--ink); font: 400 14px/1 var(--display); text-decoration: none; height: 40px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: var(--r-ctl); }
.nav-cta:hover { background: var(--paper); }
.nav-cta:active { transform: scale(.97); }

.sec { position: relative; padding: clamp(96px, 11vw, 150px) 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(40px, 5.6vw, 80px); line-height: .95; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px;
  background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); border-radius: var(--r-ctl);
  font: 400 16px/1.15 var(--display); text-decoration: none; cursor: pointer; text-align: center;
  box-shadow: 5px 5px 0 var(--ink); transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.text-link { font-weight: 600; font-size: 16px; padding: 12px 4px; }

/* Hero: titular centrado arriba, la botella acostada atraviesa la página como un letrero. */
.hero { min-height: 100dvh; padding: 100px 0 48px; display: flex; align-items: center; }
.hero-inner { width: 100%; display: flex; flex-direction: column; align-items: center; }
.hero-title { font-size: clamp(40px, 7.4vw, 112px); line-height: .98; text-align: center; color: var(--yellow); text-transform: uppercase; text-wrap: balance; }
.hero-anchor { height: min(30vh, 280px, 27vw); width: 100%; margin: clamp(20px, 4vh, 40px) 0 clamp(36px, 7vh, 72px); }
.hero-anchor img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 900px); height: auto; max-width: none; }
.hero-foot { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.lead { max-width: 34em; font-size: 18px; }
.cta-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* Picómetro: sección fija, la botella se desliza por la escala y el fondo cambia por nivel. */
.hold { height: 380vh; position: relative; --bg: var(--suave); --fg: #2a1200; --acc: var(--magenta); background: var(--bg); color: var(--fg); transition: background-color .45s var(--ease), color .45s var(--ease); }
.hold[data-level="bravo"] { --bg: var(--bravo); --fg: #1f0a00; --acc: #1f0a00; }
.hold[data-level="candela"] { --bg: var(--candela); --fg: var(--yellow); --acc: var(--red); }
.hold-stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: clip; padding-top: 64px; }
.hold-inner { height: 100%; display: grid; grid-template-rows: auto auto minmax(0, 1fr); padding-top: clamp(20px, 4vh, 40px); padding-bottom: clamp(16px, 3vh, 32px); }
.hold-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.levels { display: flex; gap: 8px; }
.levels button {
  min-height: 46px; padding: 0 18px; border: 3px solid var(--fg); border-radius: var(--r-ctl); background: transparent; color: var(--fg);
  font: 400 16px/1 var(--display); cursor: pointer; transition: background-color .2s var(--ease);
}
.levels button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.levels button:active { transform: scale(.96); }
.level-info { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); grid-template-areas: "num desc" "name desc" "chile shu"; column-gap: 40px; margin-top: clamp(16px, 3vh, 32px); align-items: end; }
.lv-num { grid-area: num; font-weight: 600; font-size: 14px; }
.lv-name { grid-area: name; font: 400 clamp(52px, 5.6vw, 84px)/.9 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.lv-chile { grid-area: chile; font-weight: 600; font-size: 18px; margin-top: 10px; }
.lv-desc { grid-area: desc; max-width: 30em; }
.lv-shu { grid-area: shu; font-size: 16px; }
.lv-shu b { font: 400 28px/1 var(--display); }
.track-wrap { position: relative; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.hold-anchor { position: absolute; bottom: 92px; height: min(46vh, 440px); width: 240px; transform: translateX(-50%); }
.scale { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; align-items: end; height: 64px; }
.scale li { height: calc(18px + var(--i, 0) * 4.6px); background: color-mix(in oklab, var(--fg) 20%, transparent); font: 400 14px/1 var(--display); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; color: var(--fg); border-radius: 3px 3px 0 0; transition: background-color .3s var(--ease); }
.scale li.on { background: var(--acc); color: var(--bg); }
.scale li:nth-child(1) { --i: 0 } .scale li:nth-child(2) { --i: 1 } .scale li:nth-child(3) { --i: 2 } .scale li:nth-child(4) { --i: 3 } .scale li:nth-child(5) { --i: 4 }
.scale li:nth-child(6) { --i: 5 } .scale li:nth-child(7) { --i: 6 } .scale li:nth-child(8) { --i: 7 } .scale li:nth-child(9) { --i: 8 } .scale li:nth-child(10) { --i: 9 }
.scale-cap { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-top: 8px; }

/* Con qué va: cian de picó, la botella sirviendo encima. */
.con-que { background: var(--cyan); color: var(--ink); }
.cq-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); grid-template-rows: auto auto; column-gap: 40px; }
.cq-head h2 { grid-column: 1; }
.cq-head p { grid-column: 1; margin-top: 20px; max-width: 30em; }
.cq-anchor { grid-column: 2; grid-row: 1 / 3; height: 380px; }
.pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.pair { border: 3px solid var(--ink); border-radius: var(--r-card); background: var(--paper); overflow: hidden; }
.pair h3 { font-size: 28px; padding: 18px 22px; text-transform: uppercase; }
.p-suave h3 { background: var(--suave); color: #2a1200; }
.p-bravo h3 { background: var(--bravo); color: #1f0a00; }
.p-candela h3 { background: var(--candela); color: var(--yellow); }
.pair ul { list-style: none; margin: 0; padding: 8px 22px 18px; }
.pair li { padding: 12px 0; border-bottom: 2px solid color-mix(in oklab, var(--ink) 14%, transparent); font-weight: 600; }
.pair li:last-child { border-bottom: 0; }

/* Dónde comprar. */
.donde { background: var(--paper); color: var(--ink); }
.donde-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.donde h2 { max-width: 12em; }
.cities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.cities h3 { font-size: 28px; color: var(--magenta); padding-bottom: 12px; border-bottom: 3px solid var(--ink); }
.cities ul { list-style: none; margin: 0; padding: 0; }
.cities li { padding: 16px 0; border-bottom: 2px solid color-mix(in oklab, var(--ink) 14%, transparent); display: flex; flex-direction: column; }
.cities b { font-weight: 600; font-size: 18px; }
.cities span { font-size: 16px; color: #4a3a3a; }

/* Pedido. */
.pedir { background: var(--ink); color: var(--paper); }
.pedir-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.pedir-anchor { height: min(74vh, 620px); }
.order { background: var(--yellow); color: var(--ink); border-radius: var(--r-card); padding: clamp(22px, 3.2vw, 42px); border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--magenta); }
.order h2 { font-size: clamp(36px, 4vw, 56px); margin-bottom: 22px; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
legend { font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border: 3px solid var(--ink); border-radius: var(--r-ctl); cursor: pointer; margin-top: 8px; background: var(--paper); transition: background-color .2s var(--ease); }
.opt:first-of-type { margin-top: 0; }
.opt:has(input:checked) { background: var(--ink); color: var(--yellow); }
.opt:has(input:checked) small { color: #f3e7b0; }
.opt input { accent-color: var(--magenta); width: 20px; height: 20px; margin: 0; }
.opt span { display: flex; flex-direction: column; }
.opt b { font-weight: 600; }
.opt small { font-size: 14px; color: #4a3a3a; }
.opt i { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.level-pick[disabled] { opacity: .45; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; min-height: 44px; align-items: center; padding: 0 16px; border: 3px solid var(--ink); border-radius: var(--r-ctl); font: 400 14px/1 var(--display); background: var(--paper); }
.chips input:checked + span { background: var(--magenta); color: var(--paper); }
.chips input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: end; margin-bottom: 16px; }
.qty > span, .field { font-weight: 600; font-size: 14px; }
.stepper { display: flex; align-items: center; margin-top: 8px; border: 3px solid var(--ink); border-radius: var(--r-ctl); background: var(--paper); }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font: 600 22px/1 var(--text); cursor: pointer; color: var(--ink); }
.stepper button:active { background: rgb(0 0 0 / .08); }
.stepper output { min-width: 30px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field input, .field select { height: 50px; border: 3px solid var(--ink); border-radius: var(--r-ctl); padding: 0 12px; font: 400 16px var(--text); background: var(--paper); color: var(--ink); caret-color: var(--magenta); min-width: 0; width: 100%; }
.field input[aria-invalid="true"] { border-color: #b3003b; background: #fff0f4; }
.error { color: #8a0030; font-weight: 600; font-size: 14px; margin-top: 8px; }
.total { margin: 20px 0; padding-top: 14px; border-top: 3px solid var(--ink); }
.total p { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.total .sum { font: 400 28px/1.3 var(--display); margin-top: 4px; }
.total .note { display: block; font-size: 14px; color: #4a3a3a; margin-top: 6px; }
.btn-big { width: 100%; min-height: 58px; background: var(--magenta); color: var(--paper); }
.status { margin-top: 14px; font-weight: 600; min-height: 1.5em; }

.foot { background: var(--magenta); color: var(--paper); padding: 40px 0 48px; overflow: clip; position: relative; z-index: 6; }
.foot-mark { font: 400 clamp(64px, 15.5vw, 230px)/.9 var(--display); letter-spacing: -.02em; text-align: center; color: var(--ink); margin-bottom: 32px; }
.foot-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; font-size: 14px; }
.foot-row p { max-width: 60ch; }

@media (max-width: 1024px) {
  .pedir-grid, .donde-grid { grid-template-columns: minmax(0, 1fr); }
  .pedir-anchor { height: 50vh; }
  .pairs { grid-template-columns: minmax(0, 1fr); }
  .level-info { grid-template-columns: minmax(0, 1fr); grid-template-areas: "num" "name" "chile" "desc" "shu"; }
  .lv-desc { margin-top: 10px; }
  .lv-shu { margin-top: 6px; }
}
@media (max-width: 820px) {
  .nav nav { display: none; }
  .nav { justify-content: space-between; }
  .hero-foot { grid-template-columns: minmax(0, 1fr); }
  /* En móvil el contenido es más corto que la pantalla: centrarlo dejaba un hueco magenta arriba del titular. */
  .hero { min-height: auto; padding-top: 104px; align-items: flex-start; }
  .cta-col { align-items: stretch; }
  .cq-head { grid-template-columns: minmax(0, 1fr); }
  .cq-anchor { grid-column: 1; grid-row: auto; height: 220px; margin-top: 20px; }
  .cities { grid-template-columns: minmax(0, 1fr); }
  .foot-row { grid-template-columns: minmax(0, 1fr); }
  .hold-anchor { height: min(34vh, 300px); bottom: 84px; }
  .lv-desc { display: none; }
}
@media (max-width: 480px) {
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
  .levels { width: 100%; }
  .levels button { flex: 1; padding: 0 8px; font-size: 14px; }
  .lead { font-size: 16px; }
  .hold-head h2 { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
