/* =========================================================
   LE AVORA — basado en DESIGN.md (Hungry Tiger)
   Estructura del sistema: lienzo monocromo + un solo acento,
   tipografía de póster, controles en píldora, divisores punteados,
   sin sombras. Colores sustituidos por la paleta de la marca:
   Ember Rust → Verde Andes · Tiger Gold → Oro mantequilla
   ========================================================= */

:root {
  /* Superficies (3 pasos, como Tandoor / Spice / Charred) */
  --canvas: #2c4511;      /* lienzo principal */
  --card: #1d300b;        /* tarjetas, inputs */
  --deep: #111c05;        /* lo más profundo */
  --line: #4a6a1c;        /* bordes sutiles */
  --olive: #8ba600;       /* acento secundario (rol Saffron Glow) */
  --olive-dim: #3d5c14;   /* disco detrás de la botella */
  --gold: #f3dc7a;        /* único acento cromático (rol Tiger Gold) */
  --gold-80: rgba(243, 220, 122, .82);
  --gold-60: rgba(243, 220, 122, .62);
  --gold-12: rgba(243, 220, 122, .12);
  --red: #d91023;         /* reservado: insignias "Perú" (rol Chili Red) */

  --f-display: 'Antonio', 'Bebas Neue', 'Arial Narrow', sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(80px, 10vw, 120px);
  --max: 1440px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--gold-80);
  font: 400 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; color: var(--gold); font-family: var(--f-display); font-weight: 700; text-transform: uppercase; }
em, i { font-style: italic; }
b { color: var(--gold); font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--gold); color: var(--deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--deep); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }

/* ---------- Tipografía ---------- */
.display {
  font: 700 clamp(76px, 21vw, 200px)/.8 var(--f-display);
  letter-spacing: -.02em; text-transform: uppercase; color: var(--gold); margin: 0;
}
.heading-lg { font-size: clamp(52px, 12.5vw, 120px); line-height: 1.02; letter-spacing: -.016em; max-width: 14ch; }
.heading { font-size: clamp(40px, 8vw, 72px); line-height: 1.04; letter-spacing: -.01em; }
.heading-sm { font-size: clamp(24px, 4.4vw, 32px); line-height: 1.1; letter-spacing: -.005em; margin-bottom: 14px; }
.eyebrow {
  font: 500 14px/1.2 var(--f-display); letter-spacing: .08em; text-transform: uppercase;
  color: var(--olive); margin: 0 0 18px;
}
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--gold); }
.source, .note { font-size: 13px; color: var(--gold-60); margin-top: 14px; }

/* ---------- Divisor punteado ---------- */
.dots { border: 0; border-top: 1px dotted var(--gold); margin: 0; opacity: .7; }

/* ---------- Botones (píldora) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--gold);
  font: 500 15px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap; user-select: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--gold); }
.btn--fill { background: var(--gold); color: var(--deep); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
@media (hover: hover) {
  .btn--ghost:hover { background: var(--gold); color: var(--deep); }
  .btn--fill:hover { background: transparent; color: var(--gold); }
}

/* ---------- Insignias ---------- */
.pill {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px;
  font: 500 12px/1.2 var(--f-display); letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold); color: var(--deep);
}
.pill--dark { background: var(--card); color: var(--gold); }
.pill--red { background: var(--red); color: var(--gold); font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 40px; }

/* ---------- Tarjetas ---------- */
.card { background: var(--card); border-radius: 6px; padding: clamp(18px, 3vw, 28px); }

/* ---------- Marca de agua botánica ---------- */
.watermark { position: absolute; color: var(--gold); opacity: .07; pointer-events: none; z-index: 0; }
.watermark--hero { width: min(80vw, 760px); height: min(80vw, 760px); right: -14%; top: 4%; }
.watermark--right { width: 520px; height: 520px; right: -160px; top: 40px; transform: scaleX(-1); }
.watermark--left { width: 560px; height: 560px; left: -200px; top: 120px; }
.watermark--footer { width: 480px; height: 480px; right: -120px; bottom: -80px; }
.section > .wrap, .hero > .wrap, .footer > .wrap { position: relative; z-index: 1; }

/* =========================================================
   NAVEGACIÓN
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px dotted transparent;
}
.nav.is-scrolled { background: rgba(44, 69, 17, .94); border-bottom-color: var(--gold-60); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nav__inner {
  max-width: var(--max); margin-inline: auto; padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav__brand { font: 700 26px/1 var(--f-display); letter-spacing: .02em; color: var(--gold); text-decoration: none; }
.nav__group { display: none; gap: 8px; align-items: center; }

@media (min-width: 1080px) {
  .nav__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav__group { display: flex; }
  .nav__group--right { justify-content: flex-end; }
  .nav__toggle { display: none; }
  .nav__brand { font-size: 30px; }
}

/* Menú móvil */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--deep);
  display: flex; flex-direction: column; padding: calc(12px + env(safe-area-inset-top)) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
.menu.is-open { animation: menuIn .35s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }
.menu__top { display: flex; justify-content: space-between; align-items: center; min-height: 38px; }
.menu__links { display: flex; flex-direction: column; margin: 32px 0; }
.menu__links a {
  display: flex; align-items: baseline; gap: 14px; padding: 14px 0;
  border-bottom: 1px dotted var(--gold-60); text-decoration: none;
  font: 700 clamp(34px, 10vw, 52px)/1 var(--f-display); text-transform: uppercase; color: var(--gold);
}
.menu__links a span { font: 500 13px/1 var(--f-display); color: var(--olive); letter-spacing: .08em; }
.menu .btn { margin-top: auto; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100svh; padding-top: 104px; display: flex; flex-direction: column; overflow: hidden; }
.hero__grid { display: grid; gap: 32px; flex: 1; align-items: center; }
.hero__eyebrow { color: var(--gold); }
.hero__title { font-size: max(72px, calc(25vw - 12px)); white-space: nowrap; }
.hero__title .line { display: block; overflow: hidden; padding: .12em 0 .04em; margin-top: -.12em; }
.hero__title .line > span { display: inline-block; }
.hero__lead { max-width: 46ch; margin: 28px 0 28px; font-size: 17px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }

.hero__bottle { position: relative; display: grid; place-items: center; padding: 24px 0 8px; }
.hero__disc {
  position: absolute; width: min(78vw, 420px); aspect-ratio: 1; border-radius: 50%;
  background: var(--olive-dim); left: 50%; top: 50%; transform: translate(-50%, -46%);
}
.hero__bottle img { position: relative; height: min(64svh, 560px); width: auto; }
.hero__badge { position: absolute; top: 18%; right: max(6%, calc(50% - 190px)); transform: rotate(8deg); }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: 22px;
  border-top: 1px dotted var(--gold-60); margin-top: 28px;
  font: 500 13px/1.2 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.3fr .7fr; gap: 24px; }
  .hero__title { font-size: min(200px, 14.2vw); }
  .hero__bottle img { height: min(76svh, 720px); }
  .hero__disc { width: min(34vw, 520px); }
  .hero__lead { font-size: 18px; }
}

/* Entrada del hero */
.js .hero__title .line > span { transform: translateY(135%); }
.js .hero__eyebrow, .js .hero__lead, .js .hero__ctas, .js .hero__meta { opacity: 0; transform: translateY(14px); }
.js .hero__bottle img { opacity: 0; transform: translateY(40px) rotate(-4deg); }
.js .hero__disc { transform: translate(-50%, -46%) scale(.6); opacity: 0; }
.js .hero__badge { opacity: 0; transform: rotate(8deg) scale(.6); }
.is-loaded .hero__title .line > span { transform: none; transition: transform 1s var(--ease); }
.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: .08s; }
.is-loaded .hero__title .line:nth-child(3) > span { transition-delay: .16s; }
.is-loaded .hero__eyebrow, .is-loaded .hero__lead, .is-loaded .hero__ctas, .is-loaded .hero__meta { opacity: 1; transform: none; transition: opacity .8s var(--ease) .35s, transform .8s var(--ease) .35s; }
.is-loaded .hero__bottle img { opacity: 1; transform: none; transition: opacity 1s var(--ease) .2s, transform 1.2s var(--ease) .2s; }
.is-loaded .hero__disc { opacity: 1; transform: translate(-50%, -46%) scale(1); transition: transform 1.2s var(--ease), opacity .8s var(--ease); }
.is-loaded .hero__badge { opacity: 1; transform: rotate(8deg) scale(1); transition: opacity .5s var(--ease) .9s, transform .6s cubic-bezier(.34, 1.56, .64, 1) .9s; }

/* ---------- Marquesina ---------- */
.marquee { overflow: hidden; border-block: 1px dotted var(--gold-60); padding-block: 14px; }
.marquee__track { display: flex; width: max-content; gap: 28px; align-items: center; animation: marquee 38s linear infinite; }
.marquee span { font: 700 clamp(26px, 5vw, 44px)/1 var(--f-display); text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.marquee i { font-style: normal; color: var(--olive); font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cifras ---------- */
.stats { padding-block: clamp(56px, 8vw, 96px); }
.stats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 20px; }
.stat b { display: block; font: 700 clamp(40px, 9vw, 84px)/.9 var(--f-display); letter-spacing: -.01em; margin-bottom: 10px; white-space: nowrap; }
.stat span { display: block; font-size: 14px; line-height: 1.45; max-width: 26ch; }
@media (min-width: 900px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }

/* =========================================================
   HISTORIA
   ========================================================= */
.story .heading-lg { margin-bottom: 40px; }
.story__grid { display: grid; gap: 40px; }
.story__text p:not(.lead) { max-width: 60ch; }
.story__photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
figcaption { font-size: 13px; color: var(--gold-60); margin-top: 12px; }
@media (min-width: 960px) {
  .story__grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .story__photo { position: sticky; top: 100px; }
  .story__photo img { aspect-ratio: 4/5; }
}

/* ---------- Banda de foto ---------- */
.photo-band img { width: 100%; height: clamp(260px, 52vw, 640px); object-fit: cover; }

/* =========================================================
   MISIÓN / VALORES
   ========================================================= */
.values { overflow: hidden; }
.mv { display: grid; gap: 48px; margin-bottom: clamp(64px, 9vw, 110px); }
.mv__item .heading { margin-bottom: 18px; }
.mv__item p { font-size: clamp(17px, 1.9vw, 20px); line-height: 1.55; color: var(--gold); max-width: 46ch; }
@media (min-width: 900px) { .mv { grid-template-columns: 1fr 1fr; gap: 64px; } }
.values__title { margin-bottom: 8px; }

.rows li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 22px 0; border-top: 1px dotted var(--gold-60); }
.rows li:last-child { border-bottom: 1px dotted var(--gold-60); }
.rows__n { font: 500 15px/1.6 var(--f-display); color: var(--olive); letter-spacing: .06em; }
.rows h3 { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.05; margin-bottom: 8px; }
.rows p { margin: 0; max-width: 62ch; }
@media (min-width: 900px) {
  .rows:not(.rows--compact) li { grid-template-columns: 80px minmax(0, 1fr); }
  .rows:not(.rows--compact) li > div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: baseline; }
}

/* =========================================================
   EQUIPO
   ========================================================= */
.team__intro { max-width: 60ch; margin-top: 28px; }
.team__scroller { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; margin-top: 40px; }
.team__scroller::-webkit-scrollbar { display: none; }
.team__grid { display: flex; gap: 14px; padding-inline: var(--gutter); width: max-content; }
.member { width: 72vw; max-width: 300px; scroll-snap-align: start; scroll-margin-inline: var(--gutter); }
.member__photo {
  position: relative; aspect-ratio: 4/5; border-radius: 6px; overflow: hidden;
  background: var(--card); display: grid; place-items: center; margin-bottom: 16px;
}
.member__photo::before {
  content: attr(data-initials);
  font: 700 clamp(72px, 9vw, 110px)/1 var(--f-display); color: var(--gold); letter-spacing: -.02em;
}
.member__photo::after {
  content: ""; position: absolute; inset: 14px; border: 1px dotted var(--gold-60); border-radius: 4px; pointer-events: none;
}
.member__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.member h3 { font-size: 22px; line-height: 1.05; margin-bottom: 8px; }
.member p { font-size: 14px; line-height: 1.5; margin: 0; }
@media (min-width: 1100px) {
  .team__scroller { overflow: visible; }
  .team__grid { display: grid; grid-template-columns: repeat(5, 1fr); width: auto; max-width: var(--max); margin-inline: auto; gap: 20px; }
  .member { width: auto; max-width: none; }
}

/* =========================================================
   PRODUCTO
   ========================================================= */
.product { overflow: hidden; }
.product__grid { display: grid; gap: 32px; margin-top: 40px; }
.product__bottle { position: relative; display: grid; place-items: center; padding-block: 24px; }
.product__bottle .hero__disc { transform: translate(-50%, -50%); background: var(--card); }
.product__bottle img { position: relative; height: min(70svh, 600px); width: auto; }
@media (min-width: 960px) {
  .product__grid { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .product__bottle { position: sticky; top: 90px; }
}

.spec > div { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 14px 0; border-top: 1px dotted var(--gold-60); }
.spec > div:last-child { border-bottom: 1px dotted var(--gold-60); }
.spec dt { font: 500 13px/1.3 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }
.spec dd { margin: 0; color: var(--gold); }
@media (min-width: 640px) { .spec > div { grid-template-columns: 170px 1fr; gap: 20px; } }
.spec--tight > div { padding: 11px 0; }
.spec--tight dd { font-size: 15px; }

/* Proceso */
.process { margin-top: clamp(80px, 10vw, 120px); }
.process__photo img { width: 100%; height: clamp(240px, 46vw, 560px); object-fit: cover; }
.process .heading { margin: 48px 0 28px; }
.steps { display: grid; gap: 0; counter-reset: s; }
.steps li { padding: 20px 0; border-top: 1px dotted var(--gold-60); display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; }
.steps b { grid-row: span 2; font: 500 15px/1.6 var(--f-display); color: var(--olive); }
.steps h4 { font-size: 26px; line-height: 1.1; margin-bottom: 6px; }
.steps p { margin: 0; font-size: 15px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .steps li { display: block; border-top: 1px dotted var(--gold); }
  .steps b { display: block; margin-bottom: 18px; }
}

.views { margin-top: clamp(64px, 8vw, 100px); }
.views img { width: 100%; }

/* =========================================================
   PARTIDA / FICHA / NUTRICIÓN
   ========================================================= */
.tariff { background: var(--canvas); }
.tariff__code {
  font: 700 clamp(64px, 17vw, 213px)/.8 var(--f-display); letter-spacing: -.02em; color: var(--gold);
  margin: 0 0 clamp(24px, 4vw, 48px); white-space: nowrap;
}
.tariff__code span { color: var(--olive); }
.tariff__desc { max-width: 60ch; color: var(--gold); }
.tariff__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 48px; }
@media (min-width: 1100px) {
  .tariff__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tariff__grid > .spec { grid-column: 1 / -1; }
}
.datasheet .spec > div:first-child, .nutrition table { border-top: 0; }

.nutrition table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nutrition th, .nutrition td { text-align: left; padding: 9px 6px 9px 0; border-bottom: 1px dotted var(--gold-60); font-weight: 400; }
.nutrition thead th { font: 500 12px/1.2 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }
.nutrition tbody th { color: var(--gold); font-weight: 500; }
.nutrition td { color: var(--gold); }
@media (max-width: 520px) { .nutrition table { font-size: 13px; } .nutrition thead th { font-size: 11px; } }
.nutrition tr.sub th { padding-left: 14px; font-weight: 400; color: var(--gold-80); }

.label { display: grid; gap: 32px; margin-top: clamp(64px, 8vw, 100px); align-items: center; }
.label__img img { width: min(70vw, 320px); margin-inline: auto; }
.checks li { position: relative; padding: 9px 0 9px 28px; border-top: 1px dotted var(--gold-60); color: var(--gold); }
.checks li::before { content: "✦"; position: absolute; left: 0; top: 9px; color: var(--olive); font-size: 14px; }
@media (min-width: 900px) { .label { grid-template-columns: .8fr 1.2fr; gap: 64px; } }

/* =========================================================
   ORIGEN
   ========================================================= */
.origin__photo img { width: 100%; height: clamp(300px, 60vw, 760px); object-fit: cover; }
.origin__grid { display: grid; gap: 48px; margin-top: 36px; }
.origin__nums { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
.origin__nums b { display: block; font: 700 clamp(36px, 6vw, 56px)/1 var(--f-display); }
.origin__nums span { font-size: 14px; }
@media (min-width: 600px) { .origin__nums { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .origin__grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } }

.bars__title { font: 500 13px/1.3 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--olive); margin-bottom: 18px; }
.bar { display: grid; grid-template-columns: 96px 1fr 56px; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px dotted var(--gold-60); }
.bar span { font-size: 14px; color: var(--gold); }
.bar i { display: block; height: 14px; border-radius: 999px; background: var(--card); position: relative; overflow: hidden; }
.bar i::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px; background: var(--olive);
  transform-origin: left; transform: scaleX(calc(var(--v) / 25.2)); transition: transform 1.1s var(--ease);
}
.bar.is-main i::after { background: var(--gold); }
.bar b { font: 600 15px/1 var(--f-display); text-align: right; }
.js .bars:not(.is-in) .bar i::after { transform: scaleX(0); }

/* =========================================================
   PROPUESTA DE VALOR
   ========================================================= */
.value__grid { display: grid; gap: 40px; margin-top: 40px; }
.value__photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (min-width: 960px) {
  .value__grid { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
  .value__photo { position: sticky; top: 100px; }
  .value__photo img { aspect-ratio: 3/4; }
}
.rows--compact li { padding: 18px 0; }
.rows--compact h3 { font-size: clamp(21px, 2.6vw, 26px); }

.compare__title { margin-top: clamp(64px, 8vw, 100px); }
.compare { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.compare table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px dotted var(--gold-60); }
.compare thead th { font: 600 16px/1.2 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--gold); }
.compare tbody th { font: 500 13px/1.4 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--olive); width: 150px; }
.compare td { color: var(--gold-80); }
.compare .is-us { color: var(--gold); font-weight: 500; }
.compare thead .is-us { color: var(--deep); background: var(--gold); padding-left: 12px; border-radius: 6px 6px 0 0; }
.compare tbody .is-us { background: var(--gold-12); padding-left: 12px; }

/* =========================================================
   MERCADO
   ========================================================= */
.market { overflow: hidden; }
.market__intro { display: grid; gap: 32px; margin: 36px 0 56px; }
.market__photo img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
@media (min-width: 960px) { .market__intro { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: end; } }

.market__grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .market__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

.chart__cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; height: 300px; border-bottom: 1px dotted var(--gold); }
.col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.col b { font: 600 clamp(13px, 2.6vw, 16px)/1 var(--f-display); color: var(--gold-80); }
.col i { display: block; width: 100%; max-width: 64px; height: calc(var(--v) / 255.2 * 78%); background: var(--olive); border-radius: 6px 6px 0 0; transform-origin: bottom; transition: transform 1.1s var(--ease); }
.col.is-main i { background: var(--gold); }
.col.is-main b { color: var(--gold); }
.col span { font: 500 13px/1 var(--f-display); letter-spacing: .06em; color: var(--gold); margin-bottom: -26px; }
.chart .source { margin-top: 40px; }
.js .chart:not(.is-in) .col i { transform: scaleY(0); }
.chart .col:nth-child(2) i { transition-delay: .06s; } .chart .col:nth-child(3) i { transition-delay: .12s; }
.chart .col:nth-child(4) i { transition-delay: .18s; } .chart .col:nth-child(5) i { transition-delay: .24s; }

.facts { display: grid; gap: 0; }
.fact { padding: 18px 0; border-top: 1px dotted var(--gold-60); }
.fact:last-child { border-bottom: 1px dotted var(--gold-60); }
.fact b { display: block; font: 700 clamp(28px, 4vw, 40px)/1 var(--f-display); margin-bottom: 8px; }
.fact p { margin: 0; font-size: 15px; }

.market__sub { margin: clamp(64px, 8vw, 100px) 0 28px; }
.segment { display: grid; gap: 14px; }
.segment__item { background: var(--card); border-radius: 6px; padding: 22px; }
.segment__item p { margin: 14px 0 0; }
@media (min-width: 700px) { .segment { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .segment { grid-template-columns: repeat(4, 1fr); } }

.channels { display: grid; gap: 32px; margin-top: 56px; }
.channels p { max-width: 56ch; }
@media (min-width: 900px) { .channels { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* =========================================================
   TLC
   ========================================================= */
.fta { border-top: 1px dotted var(--gold-60); }
.fta__lead { max-width: 56ch; margin-top: 28px; }
.fta__compare { display: grid; gap: 14px; margin: 44px 0 32px; }
.fta__box { background: var(--card); border-radius: 6px; padding: 24px; }
.fta__box b { display: block; font: 700 clamp(72px, 20vw, 120px)/1 var(--f-display); letter-spacing: -.02em; margin: 14px 0 12px; white-space: nowrap; }
@media (min-width: 900px) { .fta__box b { font-size: min(9vw, 140px); } }
.fta__box p { margin: 0; }
.fta__box--muted b { color: var(--gold-60); }
@media (min-width: 900px) { .fta__compare { grid-template-columns: 1.3fr 1fr 1fr; } }
.fta__note { max-width: 70ch; font-size: 15px; color: var(--gold-80); border-left: 2px solid var(--olive); padding-left: 16px; }

/* =========================================================
   RUTA
   ========================================================= */
.route__photo img { width: 100%; height: clamp(260px, 50vw, 620px); object-fit: cover; }
.route__steps { display: grid; gap: 0; margin-top: 32px; }
.route__steps li { position: relative; padding: 18px 0 18px 36px; border-left: 1px dotted var(--gold); margin-left: 8px; }
.route__steps li::before { content: ""; position: absolute; left: -7px; top: 22px; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); }
.route__steps b { display: block; font: 700 clamp(32px, 5vw, 48px)/1 var(--f-display); text-transform: uppercase; }
.route__steps span { font-size: 15px; }
@media (min-width: 900px) {
  .route__steps { grid-template-columns: repeat(4, 1fr); }
  .route__steps li { border-left: 0; border-top: 1px dotted var(--gold); padding: 30px 16px 0 0; margin-left: 0; }
  .route__steps li::before { left: 0; top: -7px; }
}
.route__facts { display: grid; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px dotted var(--gold-60); }
.route__facts p { margin: 0; font-size: 15px; }
@media (min-width: 900px) { .route__facts { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

/* =========================================================
   CERTIFICADOS
   ========================================================= */
.seals { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 40px; }
.seals img { height: 72px; width: auto; border-radius: 6px; }
.certs__grid { display: grid; gap: 14px; }
.cert .heading-sm { margin: 16px 0 10px; }
.cert p { margin: 0; font-size: 15px; }
@media (min-width: 760px) { .certs__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .certs__grid { grid-template-columns: repeat(4, 1fr); } }
.certs__sub { margin: clamp(56px, 7vw, 88px) 0 16px; }
.spec--codes dt { font-size: 15px; color: var(--gold); }
@media (min-width: 640px) { .spec--codes > div { grid-template-columns: 90px 1fr; } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; overflow: hidden; padding: var(--section) 0 calc(40px + env(safe-area-inset-bottom)); background: var(--deep); }
.footer .footer__brand { font-size: clamp(88px, 24vw, 260px); }
.footer .footer__tag { font: 500 clamp(20px, 3vw, 28px)/1 var(--f-display); text-transform: uppercase; letter-spacing: .08em; color: var(--olive); margin: 14px 0 48px; }
.footer__grid { display: grid; gap: 32px; padding-top: 40px; }
.footer h3 { font-size: 15px; letter-spacing: .08em; color: var(--olive); margin-bottom: 12px; }
.footer p { font-size: 15px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr 1fr; gap: 48px; } }
.footer__legal { font-size: 13px; color: var(--gold-60); margin-top: 40px; }

/* ---------- Botón flotante ---------- */
.to-top {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold); background: rgba(17, 28, 5, .88);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: hover) { .to-top:hover { background: var(--gold); color: var(--deep); } }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .js .reveal, .js .hero__title .line > span, .js .hero__eyebrow, .js .hero__lead, .js .hero__ctas,
  .js .hero__meta, .js .hero__bottle img, .js .hero__disc, .js .hero__badge { opacity: 1 !important; transition: none !important; }
  .js .hero__title .line > span, .js .reveal, .js .hero__bottle img, .js .hero__eyebrow, .js .hero__lead, .js .hero__ctas, .js .hero__meta { transform: none !important; }
  .js .bars .bar i::after, .js .chart .col i { transition: none !important; }
}
