/* ============================================================
   TENEMOS TABLAS — Sistema editorial
   Paper #f2f0e9 · Verde agrícola #1f5c3d · Negro #1a1a17
   Archivo · Space Mono · Fraunces
   ============================================================ */

:root {
  /* Color */
  --paper: #f2f0e9;
  --paper-2: #e9e6dc;
  --paper-3: #e3dece;
  --green: #1f5c3d;
  --green-deep: #163f2a;
  --green-soft: #2e7d4f;
  --ink: #1a1a17;
  --ink-2: #3a3a34;
  --ink-soft: rgba(26, 26, 23, 0.62);
  --ink-faint: rgba(26, 26, 23, 0.40);
  --line: #c9c4b5;
  --line-soft: rgba(26, 26, 23, 0.09);
  --paper-line: rgba(242, 240, 233, 0.22);
  --paper-soft: rgba(242, 240, 233, 0.66);

  /* Type */
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --serif: "Fraunces", Georgia, serif;

  /* Scale */
  --container: 1240px;
  --container-narrow: 880px;
  --gutter: clamp(20px, 5vw, 72px);

  /* Section rhythm */
  --section-y: clamp(72px, 9vw, 150px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.62;
  font-weight: 400;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--green { background: var(--green); color: var(--paper); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--alt { background: var(--paper-2); }

/* ---------- Kicker / section head ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
}
.section--green .kicker, .section--ink .kicker { color: var(--paper-soft); }
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0 0 22px;
  text-wrap: balance;
}
.lede {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 29px);
  line-height: 1.26;
  letter-spacing: -0.008em;
  color: var(--ink-2);
  margin: 0 0 18px;
  max-width: 32ch;
}
.section--green .lede, .section--ink .lede { color: var(--paper-soft); }
.body { font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-soft); max-width: 64ch; }
.body p { margin: 0 0 1.05em; }
.section--green .body, .section--ink .body { color: var(--paper-soft); }
.body strong, .section .emphasis { color: var(--ink); font-weight: 600; }
.section--green .body strong { color: var(--paper); }

.section-head { max-width: 60ch; margin-bottom: clamp(40px, 5vw, 70px); }

/* ---------- Buttons / chips ---------- */
.tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 13px;
  display: inline-block;
}
.section--green .tag, .section--ink .tag { color: var(--paper); border-color: var(--paper-line); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 64px;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: transform 0.4s ease, background 0.3s ease;
}
/* Que el navbar fijo no tape los títulos al navegar por anclas */
section[id], header[id] { scroll-margin-top: 84px; }
/* Modo export/presentación: ocultar navbar para capturas limpias */
body.no-nav .nav, body.no-nav .scroll-top, body.no-nav .dotnav { display: none !important; }
.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav__brand span { color: var(--green); }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--green); background: var(--paper-3); }
.nav__cta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--green);
  color: var(--paper);
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 100px;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav__cta:hover { background: var(--green-deep); }
.nav__toggle { display: none; }

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--green);
  z-index: 61;
  width: 0;
  transition: width 0.1s linear;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--paper-2), var(--paper) 60%);
  overflow: hidden;
}
/* Composiciones de producto */
.cp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.cp-item { margin: 0; overflow: hidden; cursor: zoom-in; border: 1px solid var(--line); background: var(--paper-2); }
.cp-item img { width: 100%; height: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.cp-item:hover img { transform: scale(1.03); }

/* Casillero · Galería A (look & feel gráfico) — mosaico con pieza ancha */
.cs-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cs-item { margin: 0; overflow: hidden; cursor: zoom-in; border: 1px solid rgba(255,255,255,0.14); background: rgba(0,0,0,0.18); }
.cs-item--wide { grid-column: span 2; grid-row: span 2; }
.cs-item img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16/9; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.cs-item--wide img { aspect-ratio: 1/1; }
.cs-item:hover img { transform: scale(1.04); }

/* Casillero · Galería B (PR + experiencias) — hero grande + 2x2 */
.cs-exp { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: 1fr; gap: 16px; }
.cs-exp-item { margin: 0; overflow: hidden; cursor: zoom-in; border: 1px solid rgba(255,255,255,0.14); background: rgba(0,0,0,0.18); position: relative; }
.cs-exp-item--hero { grid-row: span 2; }
.cs-exp-item img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16/10; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.cs-exp-item--hero img { aspect-ratio: 4/5; }
.cs-exp-item:hover img { transform: scale(1.04); }

@media (max-width: 760px){
  .cp-grid, .cs-mosaic, .cs-exp { grid-template-columns: 1fr; }
  .cs-item--wide, .cs-exp-item--hero { grid-column: auto; grid-row: auto; }
  .cs-item img, .cs-item--wide img, .cs-exp-item img, .cs-exp-item--hero img { aspect-ratio: 16/9; }
}
/* Imagen única protagonista del portafolio */
.cp-hero { margin: 22px 0 0; overflow: hidden; cursor: zoom-in; border: 1px solid var(--line); background: var(--paper-2); }
.cp-hero img { width: 100%; height: auto; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.cp-hero:hover img { transform: scale(1.02); }
@media (max-width: 700px){
  .cv-grid, .cp-grid { grid-template-columns: 1fr; gap: 14px; }
  .cv-item img, .cp-item img { aspect-ratio: auto; }
}

/* Anexos · carrusel horizontal grande */
.ax-carousel-wrap { position: relative; margin-top: 36px; }
.ax-carousel {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 4px 4px 22px; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.ax-carousel::-webkit-scrollbar { height: 8px; }
.ax-carousel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.ax-carousel .gitem {
  flex: 0 0 clamp(340px, 46%, 620px); scroll-snap-align: start; margin: 0;
  border: 1px solid var(--line); overflow: hidden; cursor: zoom-in; background: var(--paper-2);
}
.ax-carousel .gitem img { width: 100%; height: auto; display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.ax-carousel .gitem:hover img { transform: scale(1.02); }
.ax-carousel .gitem.is-filtered-out { display: none; }
.ax-arrow {
  position: absolute; top: calc(50% - 22px); transform: translateY(-50%); z-index: 5;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.12);
  transition: all .2s;
}
.ax-arrow:hover { background: var(--green); color: var(--paper); border-color: var(--green); }
.ax-arrow--prev { left: -10px; }
.ax-arrow--next { right: -10px; }
@media (max-width: 700px){
  .ax-carousel .gitem { flex: 0 0 86%; }
  .ax-arrow { display: none; }
}

/* Opciones adicionales de empaque premium */
.emp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); margin-top: 8px; }
@media (max-width: 880px){ .emp-grid { grid-template-columns: repeat(2, 1fr); } }
.emp-item { margin: 0; cursor: zoom-in; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: 0 12px 30px rgba(26,26,23,0.08); transition: transform .3s ease, box-shadow .3s ease; }
.emp-item:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(26,26,23,0.12); }
.emp-item img { width: 100%; height: auto; display: block; transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }
.emp-item:hover img { transform: scale(1.02); }
.emp-cap { font-family: var(--mono); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); padding: 14px 16px; }
@media (max-width: 760px){ .emp-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* Galería de dirección visual */
.gv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 36px; }
.gv-item { margin: 0; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; background: var(--paper-2); }
.gv-item img { width: 100%; height: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }
.gv-item:hover img { transform: scale(1.03); }
.gv-item.is-hidden { display: none; }
.gv-actions { display: flex; justify-content: center; margin-top: 28px; }
.gv-toggle {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green); background: transparent; border: 1px solid var(--green);
  padding: 13px 24px; border-radius: 2px; cursor: pointer; transition: all 0.2s;
}
.gv-toggle:hover { background: var(--green); color: var(--paper); }
@media (max-width: 700px){
  .gv-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* Banda de portafolio (foto compo full-width) */
.portfolio-band { padding: 0; background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.portfolio-band__photo { margin: 0; }
.portfolio-band__photo img { width: 100%; height: auto; display: block; }
.portfolio-band__cap { padding: 28px 40px 40px; text-align: center; }
.portfolio-band__cap .kicker { justify-content: center; margin-bottom: 10px; }
.portfolio-band__cap .body { max-width: 64ch; margin: 0 auto; }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
}
.hero__eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 30px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero__eyebrow::before { content:""; width:34px; height:1px; background: var(--green); }
.hero h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(56px, 11vw, 152px);
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 26px;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
}
h1 em, h2 em, h3 em, .pullquote em { font-style: normal; font-family: inherit; font-weight: inherit; letter-spacing: inherit; }
.hero__sub {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(19px, 2.2vw, 27px);
  line-height: 1.24;
  letter-spacing: -0.005em;
  color: var(--ink-2);
  margin: 0 0 18px;
  max-width: 24ch;
}
.hero__desc { color: var(--ink-soft); max-width: 40ch; margin: 0 0 34px; font-size: 17px; }
.hero__meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.hero__bottles {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 0;
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.hero__bottles img {
  width: auto;
  height: clamp(280px, 36vw, 510px);
  max-width: none;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 30px 40px rgba(26,26,23,0.22));
  animation: float 6s ease-in-out infinite;
}
.hero__bottles img:nth-child(2) { animation-delay: -1.5s; }
.hero__bottles .bottle { position: relative; display: flex; align-items: flex-end; justify-content: center; outline: none; margin: 0 0 0 clamp(-44px, -3vw, -22px); flex: 0 0 auto; transition: transform 0.4s cubic-bezier(.2,.7,.2,1); }
.hero__bottles .bottle:first-child { margin-left: 0; }
.hero__bottles .bottle:nth-child(1) { z-index: 4; }
.hero__bottles .bottle:nth-child(2) { z-index: 3; }
.hero__bottles .bottle:nth-child(3) { z-index: 2; }
.hero__bottles .bottle:nth-child(4) { z-index: 1; }
.hero__bottles .bottle:hover, .hero__bottles .bottle:focus-visible { transform: translateY(-14px); z-index: 6; }
.hero__bottles .bottle img { width: auto; max-width: none; }
.hero__bottles .bottle:nth-child(2) img { animation-delay: -1.5s; }
.hero__bottles .bottle:nth-child(3) img { animation-delay: -3s; }
.hero__bottles .bottle:nth-child(4) img { animation-delay: -4.5s; }
.bottle__tip {
  position: absolute; left: 50%; bottom: calc(100% + 12px);
  transform: translate(-50%, 6px);
  background: var(--ink); color: var(--paper);
  padding: 11px 15px; border-radius: 4px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.03em; line-height: 1.5;
  text-align: center; width: max-content; max-width: 190px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
  z-index: 6; box-shadow: 0 14px 28px rgba(26,26,23,0.28);
}
.bottle__tip b { display: block; font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 0; text-transform: uppercase; margin-bottom: 4px; color: var(--paper); }
.bottle__tip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--ink); }
.bottle:hover .bottle__tip, .bottle:focus .bottle__tip, .bottle:focus-visible .bottle__tip { opacity: 1; transform: translate(-50%, 0); }
@keyframes float { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce){ .hero__bottles img{ animation: none; } }

.hero__logos {
  position: absolute;
  bottom: 34px; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.hero__logos img { height: 30px; width: auto; opacity: 0.8; }
.hero__logos .divider { width:1px; height: 26px; background: var(--line); }
/* Logos más grandes y visibles (Tablas × Break Point) */
.hero__logos--big { gap: 40px; }
.hero__logos--big img { height: 56px; opacity: 1; }
.hero__logos--big .divider { height: 48px; }
@media (max-width: 700px){ .hero__logos--big img { height: 42px; } }
.hero__sello {
  position: absolute;
  top: 96px; right: var(--gutter);
  height: 92px; width: auto;
  opacity: 0.9;
  animation: spin 38s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce){ .hero__sello{ animation: none; } }

/* ============================================================
   GENERIC GRID HELPERS
   ============================================================ */
.grid { display: grid; gap: clamp(20px, 2.4vw, 34px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

/* ---------- Card ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(22px, 2.4vw, 34px);
}
.section--alt .card { background: var(--paper); }
.section--green .card { background: var(--green-deep); border-color: var(--paper-line); }
.card__num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--green);
  display: block;
  margin-bottom: 16px;
}
.section--green .card__num { color: var(--paper-soft); }
.card h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  line-height: 1.12;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.section--green .card p { color: var(--paper-soft); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.stat { padding: 32px 28px 30px; border-bottom: 1px solid var(--line); }
.stat:not(:last-child) { border-right: 1px solid var(--line); }
.stat__fig {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--green);
  margin-bottom: 16px;
}
.stat__label { font-size: 15.5px; color: var(--ink-soft); line-height: 1.45; }

/* ---------- Pull quote ---------- */
.pullquote {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(23px, 3.1vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.pullquote.quote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.pullquote cite { display:block; font-family: var(--mono); font-size: 13px; font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 28px; }
.section--green .pullquote cite, .section--ink .pullquote cite { color: var(--paper-soft); }

/* ============================================================
   VIDEO SEPARATOR
   ============================================================ */
.vsep {
  position: relative;
  min-height: clamp(420px, 62vh, 660px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.vsep video, .vsep__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.vsep::after {
  content:""; position:absolute; inset:0; z-index:1;
  background: linear-gradient(180deg, rgba(15,15,13,0.15) 0%, rgba(15,15,13,0.30) 45%, rgba(15,15,13,0.86) 100%);
}
.vsep__inner { position: relative; z-index: 2; padding-bottom: clamp(48px, 7vw, 92px); padding-top: 120px; width:100%; }
.vsep__kicker {
  font-family: var(--mono);
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--paper-soft); margin: 0 0 22px;
}
.vsep h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(42px, 7.4vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.vsep h3 em { font-style: normal; }
.vsep p { max-width: 44ch; color: var(--paper-soft); font-size: clamp(17px, 1.6vw, 21px); margin: 0; }

/* ============================================================
   ACCORDION
   ============================================================ */
.accordion { border-top: 1px solid var(--line); }
.acc {
  border-bottom: 1px solid var(--line);
}
.acc__head {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  padding: 26px 0;
  display: flex;
  align-items: baseline;
  gap: 20px;
  font-family: inherit;
  color: inherit;
}
.acc__head:hover .acc__title { color: var(--green); }
.acc__idx { font-family: var(--mono); font-size: 13px; color: var(--green); letter-spacing: 0.08em; flex-shrink: 0; width: 30px; }
.acc__titles { flex: 1; display: flex; flex-direction: column; }
.acc__title, .acc__sub { display: block; }
.acc__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(19px, 2vw, 25px);
  letter-spacing: -0.01em;
  line-height: 1.12;
  transition: color 0.2s;
}
.acc__sub { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--ink-soft); margin-top: 6px; text-transform: uppercase; }
.acc__icon { flex-shrink: 0; width: 22px; height: 22px; position: relative; margin-top: 4px; }
.acc__icon::before, .acc__icon::after {
  content:""; position:absolute; background: var(--green); transition: transform 0.3s ease, opacity 0.3s;
}
.acc__icon::before { top: 10px; left: 0; width: 22px; height: 2px; }
.acc__icon::after { top: 0; left: 10px; width: 2px; height: 22px; }
.acc.is-open .acc__icon::after { transform: scaleY(0); opacity: 0; }
.acc__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s cubic-bezier(.4,0,.2,1);
}
.acc__inner { padding: 4px 0 38px 50px; }
@media (max-width: 640px){ .acc__inner { padding-left: 0; } }

/* ============================================================
   TABS
   ============================================================ */
.tabs__nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(28px, 3vw, 44px);
}
.tabs__btn {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  padding: 12px 14px;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.tabs__btn:hover { color: var(--ink); }
.tabs__btn.is-active { color: var(--green); border-color: var(--green); }
.tabs__panel { display: none; animation: fade 0.4s ease; }
.tabs__panel.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px);} to { opacity:1; transform:none; } }

/* ============================================================
   GALLERY + LIGHTBOX
   ============================================================ */
.gallery-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 34px; }
.gallery-filter button {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.gallery-filter button:hover { border-color: var(--green); color: var(--green); }
.gallery-filter button.is-active { background: var(--green); color: var(--paper); border-color: var(--green); }

.gallery { columns: 3; column-gap: 18px; }
.gallery .gitem { break-inside: avoid; margin-bottom: 18px; transition: opacity 0.3s, transform 0.3s; }
.gallery .gitem.is-hidden { display: none; }

.figure { position: relative; overflow: hidden; border-radius: 4px; background: var(--paper-3); cursor: zoom-in; border: 1px solid var(--line-soft); }
.figure img { width: 100%; transition: transform 0.6s cubic-bezier(.2,.6,.2,1); }
.figure:hover img { transform: scale(1.04); }
.figure__cap {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--ink-faint); padding: 10px 2px 2px; text-transform: uppercase;
}

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(18,18,15,0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
  padding: 4vw;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; border-radius: 4px; box-shadow: 0 40px 80px rgba(0,0,0,0.5); }
.lightbox__cap { position: absolute; bottom: 22px; left:0; right:0; text-align:center; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--paper-soft); text-transform: uppercase; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: none; border: 1px solid var(--paper-line);
  color: var(--paper); cursor: pointer; border-radius: 100px;
  width: 50px; height: 50px; font-size: 20px; display:flex; align-items:center; justify-content:center;
  transition: background 0.2s; font-family: var(--mono);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.12); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav.next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   IMAGE BLOCKS
   ============================================================ */
.media { border-radius: 4px; overflow: hidden; background: var(--paper-3); border: 1px solid var(--line-soft); }
.media img { width: 100%; }
.media-cap { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--ink-faint); margin-top: 12px; text-transform: uppercase; }
.section--green .media-cap { color: var(--paper-soft); }

/* ============================================================
   TABLE
   ============================================================ */
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; }
.tbl th, .tbl td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 400; border-bottom: 1px solid var(--ink);
}
.tbl td:last-child, .tbl th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .row-strong td { font-weight: 600; }
.tbl tbody tr:hover { background: var(--paper-2); }
.section--green .tbl th, .section--green .tbl td { border-color: var(--paper-line); }
.section--green .tbl thead th { color: var(--paper-soft); border-bottom-color: var(--paper); }

/* ============================================================
   PRICE
   ============================================================ */
.price { font-family: var(--sans); font-weight: 800; font-size: clamp(54px, 8.4vw, 108px); line-height: 0.88; letter-spacing: -0.035em; color: var(--green); }
.section--green .price, .section--ink .price { color: var(--paper); }
.price small { font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; color: var(--ink-soft); display: block; margin-top: 14px; text-transform: uppercase; }
.section--green .price small { color: var(--paper-soft); }

/* ============================================================
   LIST
   ============================================================ */
.ulist { list-style: none; padding: 0; margin: 0; }
.ulist li { position: relative; padding: 11px 0 11px 26px; border-bottom: 1px solid var(--line-soft); font-size: 16.5px; color: var(--ink-2); }
.ulist li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 7px; height: 7px; background: var(--green); }
.section--green .ulist li { color: var(--paper-soft); border-color: var(--paper-line); }
.section--green .ulist li::before { background: var(--paper); }

/* ============================================================
   FOOTNOTE
   ============================================================ */
.foot {
  font-family: var(--mono); font-size: 13.5px; line-height: 1.65; letter-spacing: 0.02em;
  color: var(--ink-soft); max-width: 80ch; margin-top: clamp(28px, 4vw, 50px);
}
.section--green .foot, .section--ink .foot { color: var(--paper-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot-band { text-align: center; }
.foot-band .wordmark { height: 64px; width: auto; margin: 0 auto 30px; }
.foot-meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-soft); }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px){
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__bottles { order: -1; }
  .hero__bottles img { height: clamp(240px, 40vw, 380px); }
  .hero__sello { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .gallery { columns: 2; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  body { font-size: 16.5px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; }
  .gallery { columns: 1; }
  .tbl { font-size: 14.5px; }
  .tbl th, .tbl td { padding: 12px 10px; }
  .hero__logos { position: static; margin-top: 40px; }
  .vsep h3 { font-size: clamp(38px, 12vw, 64px); }
}

/* ============================================================
   TIMELINE (mapeo CDMX)
   ============================================================ */
.timeline { border-top: 1px solid var(--line); }
.tl-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.tl-month {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--green);
  padding-top: 4px;
  position: sticky;
  top: 84px;
  align-self: start;
}
.tl-events { display: grid; gap: 22px; }
.tl-event { position: relative; padding-left: 26px; }
.tl-event::before {
  content:""; position: absolute; left: 0; top: 8px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--green-soft);
}
.tl-event.is-key::before { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 4px rgba(31,92,61,0.14); }
.tl-date { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-faint); text-transform: uppercase; }
.tl-event h5 { font-family: var(--sans); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; margin: 5px 0 6px; line-height: 1.15; }
.tl-event.is-key h5 { color: var(--green); }
.tl-event p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ============================================================
   STEPS (próximos pasos)
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 28px 24px 30px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.step:nth-child(5n) { border-right: 0; }
.step__n { font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; color: var(--green); display: block; margin-bottom: 16px; }
.step p { margin: 0; font-size: 17px; color: var(--ink-2); line-height: 1.3; }
@media (max-width: 900px){ .steps { grid-template-columns: repeat(2, 1fr); } .step:nth-child(5n){ border-right: 1px solid var(--line); } .step:nth-child(2n){ border-right: 0; } }
@media (max-width: 540px){ .steps { grid-template-columns: 1fr; } .step { border-right: 0 !important; } .tl-row { grid-template-columns: 1fr; gap: 14px; } .tl-month { position: static; } }

/* ============================================================
   TERRITORY INDEX STRIP
   ============================================================ */
.terr-index {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: clamp(36px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.ti {
  padding: 24px 20px 22px 0;
  border-right: 1px solid var(--line-soft);
}
.ti:last-child { border-right: 0; }
.ti__n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--green); display: block; margin-bottom: 12px; }
.ti__t { font-family: var(--sans); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; display: block; margin-bottom: 5px; }
.ti__d { font-size: 14.5px; color: var(--ink-soft); display: block; line-height: 1.3; }
@media (max-width: 900px){ .terr-index { grid-template-columns: repeat(3, 1fr); } .ti:nth-child(3n){ border-right: 0; } }
@media (max-width: 540px){ .terr-index { grid-template-columns: repeat(2, 1fr); } .ti:nth-child(3n){ border-right: 1px solid var(--line-soft); } .ti:nth-child(2n){ border-right: 0; } }

/* ============================================================
   DOT NAV · BACK TO TOP · SCROLL CUE
   ============================================================ */
.dotnav {
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%);
  z-index: 55; display: flex; flex-direction: column; align-items: center; gap: 0;
  padding: 8px 6px; border-radius: 100px;
  background: color-mix(in srgb, var(--paper) 68%, transparent);
  backdrop-filter: blur(8px);
}
.dotnav a { position: relative; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; text-decoration: none; }
.dotnav__dot { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--ink-faint); background: transparent; transition: transform 0.25s, background 0.25s, border-color 0.25s; flex-shrink: 0; }
.dotnav__label {
  position: absolute; right: calc(100% + 6px); top: 50%;
  transform: translateY(-50%) translateX(6px);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--paper); background: var(--ink); padding: 5px 10px; border-radius: 4px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.22s, transform 0.22s;
  box-shadow: 0 8px 18px rgba(26,26,23,0.22);
}
.dotnav__label::after { content: ""; position: absolute; left: 100%; top: 50%; transform: translateY(-50%); border: 5px solid transparent; border-left-color: var(--ink); }
.dotnav a:hover .dotnav__label { opacity: 1; transform: translateY(-50%) translateX(0); }
.dotnav a:hover .dotnav__dot { border-color: var(--green); }
.dotnav a.is-active .dotnav__dot { background: var(--green); border-color: var(--green); transform: scale(1.3); }
@media (max-width: 1100px) { .dotnav { display: none; } }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 55;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); color: var(--green);
  font-size: 18px; cursor: pointer; opacity: 0; pointer-events: none;
  transform: translateY(10px); transition: all 0.3s;
  box-shadow: 0 8px 20px rgba(26,26,23,0.14);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--green); color: var(--paper); }

.scroll-cue {
  position: absolute; bottom: 92px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  text-decoration: none; color: var(--ink-faint); z-index: 3; transition: opacity 0.4s;
}
.scroll-cue.hide { opacity: 0; pointer-events: none; }
.scroll-cue__txt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; }
.scroll-cue__line { width: 1px; height: 40px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; top: -45%; left: 0; width: 1px; height: 45%; background: var(--green); animation: cue 1.9s ease-in-out infinite; }
@keyframes cue { 0% { top: -45%; } 100% { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue__line::after { animation: none; } }
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* ============================================================
   INVESTMENT COMPARATOR
   ============================================================ */
.invest-compare { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 28px); margin-bottom: 20px; }
.ic { background: var(--green-deep); border: 1px solid var(--paper-line); border-radius: 4px; padding: clamp(24px, 2.6vw, 38px); display: flex; flex-direction: column; }
.ic__tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-soft); }
.ic__who { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-soft); margin-top: 6px; }
.ic__price { font-family: var(--sans); font-weight: 800; font-size: clamp(40px, 5vw, 62px); letter-spacing: -0.03em; color: var(--paper); margin: 18px 0 22px; line-height: 0.9; }
.ic__price small { display: block; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.05em; color: var(--paper-soft); margin-top: 13px; text-transform: uppercase; }
.ic__line { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.03em; color: var(--paper-soft); margin: 0 0 18px; }
/* Acordeón de inversión · tubo abrible con barrita de color sobre fondo oscuro */
.invest-acc .acc { border: 1px solid rgba(255,255,255,0.14); border-left: 3px solid var(--green); border-radius: 6px; margin-bottom: 14px; background: rgba(255,255,255,0.03); }
.invest-acc .acc__head { padding: 22px clamp(18px,2vw,28px); }
.invest-acc .acc__title { color: var(--paper); font-size: clamp(17px,1.6vw,21px); }
.invest-acc .acc__sub { color: var(--green-soft); font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; }
.invest-acc .acc__idx { color: var(--green); }
.invest-acc .acc__inner { padding: 0 clamp(18px,2vw,28px) clamp(20px,2.4vw,30px); }
.invest-acc .acc__head:hover { background: rgba(255,255,255,0.05); }
.ic__list { flex: 1; margin: 0; }
.ic__list li { color: var(--paper-soft); border-color: var(--paper-line); }
.ic__list li::before { background: var(--green-soft); }
.ic__foot { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--paper-soft); margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--paper-line); text-transform: uppercase; }
.invest-total { display: flex; flex-direction: column; gap: 7px; align-items: center; text-align: center; padding: clamp(26px, 3vw, 40px); border: 1px solid var(--paper-line); border-radius: 4px; margin-bottom: clamp(44px, 5vw, 72px); background: linear-gradient(var(--green-deep), transparent); }
.invest-total__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-soft); }
.invest-total__fig { font-family: var(--sans); font-weight: 800; font-size: clamp(36px, 5.2vw, 66px); letter-spacing: -0.03em; color: var(--paper); }
.invest-total__fig em { font-style: normal; font-family: var(--mono); font-size: 14px; letter-spacing: 0.05em; color: var(--paper-soft); display: inline-block; margin-left: 8px; text-transform: uppercase; vertical-align: middle; }
.invest-total__note { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.03em; color: var(--paper-soft); }
@media (max-width: 720px) { .invest-compare { grid-template-columns: 1fr; } }

/* ============================================================
   TAB BADGE · ACCORDION CONTROL · LIGHTBOX COUNT · IMG FADE · A11Y
   ============================================================ */
.t-badge { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.02em; background: var(--paper-3); color: var(--green); border-radius: 100px; padding: 2px 7px; margin-left: 8px; vertical-align: middle; }
.tabs__btn.is-active .t-badge { background: var(--green); color: var(--paper); }
.acc-control { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.acc-control button { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; background: none; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-soft); padding: 7px 14px; cursor: pointer; transition: all 0.2s; }
.acc-control button:hover { border-color: var(--green); color: var(--green); }
.lightbox__count { position: absolute; top: 30px; left: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--paper-soft); }
.js .media img, .js .figure img { transition: opacity 0.6s ease; }
.js .media img:not(.is-loaded), .js .figure img:not(.is-loaded) { opacity: 0; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.section--ink a:focus-visible, .section--green a:focus-visible, .section--ink button:focus-visible, .section--green button:focus-visible, .vsep a:focus-visible { outline-color: var(--paper); }
@media (max-width: 640px) { .tabs__nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; } .tabs__btn { flex-shrink: 0; white-space: nowrap; } }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 64px 0 auto 0; z-index: 59;
  background: var(--paper); border-bottom: 1px solid var(--line);
  display: none; flex-direction: column; padding: 12px var(--gutter) 22px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding: 13px 0; border-bottom: 1px solid var(--line-soft);
}
.nav__toggle {
  background: none; border: 1px solid var(--line); border-radius: 6px;
  width: 42px; height: 38px; cursor: pointer; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
.nav__toggle span { width: 18px; height: 1.6px; background: var(--ink); display: block; }

/* ============================================================
   POLISH PASS
   ============================================================ */
:root { --section-y: clamp(84px, 9vw, 158px); }

::selection { background: var(--green); color: var(--paper); }
::-moz-selection { background: var(--green); color: var(--paper); }

html { scroll-padding-top: 80px; }
.section, header, .vsep { scroll-margin-top: 78px; }

/* readability */
.body, .body p { text-wrap: pretty; }
.lede, .hero__sub, .h2, .pullquote, .vsep h3, .card h4, .tl-event h5 { text-wrap: balance; }
.body { color: rgba(26, 26, 23, 0.66); }

/* tabular numerals where numbers matter */
.tbl, .stat__fig, .price, .ic__price, .invest-total__fig, .tl-date, .card__num, .step__n { font-variant-numeric: tabular-nums; }

/* nav refinement on scroll */
.nav.scrolled { box-shadow: 0 1px 0 var(--line-soft), 0 10px 30px rgba(26, 26, 23, 0.06); }

/* card life */
.card { transition: transform 0.4s cubic-bezier(.2,.7,.2,1), border-color 0.4s ease, box-shadow 0.4s ease; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--green) 38%, var(--line)); box-shadow: 0 18px 40px rgba(26, 26, 23, 0.08); }
.section--green .card:hover { border-color: var(--green-soft); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22); }
.section--ink .card:hover { border-color: var(--green-soft); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); }
.ic { transition: border-color 0.4s ease, box-shadow 0.4s ease; }
.ic:hover { border-color: var(--green-soft); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); }

/* timeline + step + list hover */
.tl-event { transition: transform 0.3s ease; }
.tl-event:hover { transform: translateX(3px); }
.step { transition: background 0.3s ease; }
.step:hover { background: var(--paper); }
.section--alt .step:hover { background: var(--paper-3); }
.ulist li { transition: color 0.25s ease; }
.ulist li:hover { color: var(--ink); }
.section--green .ulist li:hover, .section--ink .ulist li:hover { color: var(--paper); }

/* misc refinement */
.kicker { font-weight: 700; }
.section-head { margin-bottom: clamp(46px, 5.5vw, 78px); }
.figure__cap { transition: color 0.25s ease; }
.figure:hover .figure__cap { color: var(--green); }
.reveal { transform: translateY(22px); }
.media { box-shadow: 0 10px 30px rgba(26, 26, 23, 0.05); }
.section--green .media, .section--ink .media { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.20); }
.vsep__inner { padding-bottom: clamp(54px, 7vw, 96px); }
.pullquote { margin-block: 0; }

/* ============================================================
   CONTRAST FIX · dark-section table hover
   ============================================================ */
.section--ink .tbl tbody tr:hover,
.section--green .tbl tbody tr:hover,
.section--talavera .tbl tbody tr:hover { background: rgba(255, 255, 255, 0.06); }

/* ============================================================
   PILARES · resumen ejecutivo didáctico
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.pillar { border: 1px solid var(--line); border-radius: 8px; padding: clamp(24px, 2.6vw, 38px); background: var(--paper); display: flex; flex-direction: column; gap: 10px; transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.pillar:hover { border-color: var(--green); transform: translateY(-4px); box-shadow: 0 16px 38px rgba(26,26,23,0.07); }
.pillar__icon { font-size: clamp(30px, 3.4vw, 44px); line-height: 1; color: var(--green); }
.pillar__n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.pillar__title { font-family: var(--sans); font-weight: 700; font-size: clamp(19px, 1.7vw, 24px); letter-spacing: -0.01em; color: var(--ink); line-height: 1.1; }
.pillar__desc { font-size: clamp(14px, 1.1vw, 16px); color: var(--ink-soft); line-height: 1.45; }
.pillar--connect { grid-column: 1 / -1; background: var(--green); border-color: var(--green); color: var(--paper); flex-direction: row; align-items: center; gap: clamp(20px,3vw,44px); flex-wrap: wrap; }
.pillar--connect .pillar__title, .pillar--connect .pillar__big { color: var(--paper); }
.pillar--connect .pillar__desc { color: rgba(242,240,233,0.86); max-width: 62ch; font-size: clamp(15px,1.3vw,18px); }
.pillar--connect .pillar__big { font-family: var(--sans); font-weight: 800; font-size: clamp(22px,2.4vw,30px); letter-spacing: -0.015em; white-space: nowrap; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } .pillar--connect { flex-direction: column; align-items: flex-start; gap: 12px; } }

/* ============================================================
   VOLUMEN · infográfico de piezas mensuales
   ============================================================ */
.vol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 26px); }
.vol-card { border: 1px solid var(--line); border-radius: 6px; padding: clamp(20px, 2.2vw, 30px); background: var(--paper); display: flex; flex-direction: column; gap: 6px; transition: border-color .25s ease, transform .25s ease; }
.vol-card:hover { border-color: var(--green); transform: translateY(-3px); }
.vol-card__num { font-family: var(--sans); font-weight: 800; font-size: clamp(40px, 5vw, 68px); line-height: 0.92; letter-spacing: -0.02em; color: var(--green); }
.vol-card__unit { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.vol-card__label { font-family: var(--sans); font-weight: 600; font-size: clamp(15px, 1.3vw, 18px); color: var(--ink); margin-top: 4px; }
.vol-card__desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; }
.vol-card--wide { grid-column: span 2; background: var(--paper-2); border-left: 2px solid var(--green); }
.vol-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-top: clamp(28px,3vw,40px); padding-top: clamp(24px,2.6vw,34px); border-top: 1px solid var(--line); }
.vol-total__big { font-family: var(--sans); font-weight: 800; font-size: clamp(30px,3.4vw,46px); color: var(--ink); letter-spacing: -0.02em; }
.vol-total__big em { color: var(--green); font-style: normal; }
.vol-total__note { font-size: 14px; color: var(--ink-soft); max-width: 52ch; }
@media (max-width: 860px) { .vol-grid { grid-template-columns: repeat(2, 1fr); } .vol-card--wide { grid-column: span 2; } }
@media (max-width: 480px) { .vol-grid { grid-template-columns: 1fr; } .vol-card--wide { grid-column: span 1; } }

/* ============================================================
   GALLERY-GRID · galerías en cuadrícula (sin carrusel/corte)
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
}
.gallery-grid .figure { margin: 0; }
.gallery-grid .figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
}
.gallery-grid .figure__cap { padding: 10px 2px 0; }
@media (max-width: 820px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }

/* 5 imágenes: 3 arriba + 2 abajo centradas, sin hueco */
.gallery-grid--5 { grid-template-columns: repeat(6, 1fr); }
.gallery-grid--5 .figure { grid-column: span 2; }
.gallery-grid--5 .figure:nth-child(4) { grid-column: 2 / span 2; }
.gallery-grid--5 .figure:nth-child(5) { grid-column: 4 / span 2; }
@media (max-width: 820px) {
  .gallery-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid--5 .figure,
  .gallery-grid--5 .figure:nth-child(4),
  .gallery-grid--5 .figure:nth-child(5) { grid-column: auto; }
}
@media (max-width: 520px) {
  .gallery-grid--5 { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION-HEAD · separadores de sección más legibles
   ============================================================ */
.section-head .kicker {
  font-size: 14px;
  letter-spacing: 0.2em;
  padding: 6px 0 6px 16px;
  border-left: 3px solid var(--green);
  position: relative;
}
.section-head .kicker::before { display: none; }
.section--green .section-head .kicker,
.section--ink .section-head .kicker { border-left-color: var(--paper-soft); }
.section--talavera .section-head .kicker { border-left-color: var(--talavera-accent); }

/* ============================================================
   CHAPTER DIVIDERS
   ============================================================ */
.chapter { position: relative; min-height: 52vh; display: flex; align-items: center; padding-block: clamp(78px, 12vh, 165px); overflow: hidden; scroll-margin-top: 78px; }
.chapter__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.5; }
img.chapter__bg { animation: chapterZoom 22s ease-in-out infinite alternate; transform-origin: center; will-change: transform; }
@keyframes chapterZoom { from { transform: scale(1); } to { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { img.chapter__bg { animation: none; } }
.chapter--green .chapter__bg { opacity: 0.32; mix-blend-mode: luminosity; }
.chapter__bg + .chapter__overlay,
.chapter__overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.chapter--ink .chapter__overlay { background: linear-gradient(90deg, rgba(20,20,18,0.86) 0%, rgba(20,20,18,0.55) 60%, rgba(20,20,18,0.35) 100%); }
/* Cap Social: imagen clara (3 botellas verde) → overlay verde más suave para legibilidad */
#cap-social .chapter__overlay { background: linear-gradient(90deg, rgba(20,40,30,0.82) 0%, rgba(25,50,38,0.50) 55%, rgba(25,50,38,0.30) 100%); }
#cap-social .chapter__bg { opacity: 0.85; }
.chapter--green .chapter__overlay { background: linear-gradient(90deg, rgba(31,92,61,0.88) 0%, rgba(31,92,61,0.62) 60%, rgba(31,92,61,0.40) 100%); }
.chapter--green { background: var(--green); color: var(--paper); }
.chapter--ink { background: var(--ink); color: var(--paper); }
.chapter__inner { position: relative; z-index: 2; }
.chapter__kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-soft); display: flex; align-items: center; gap: 12px; margin: 0 0 20px; }
.chapter__kicker::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: 0.6; }
.chapter__title { font-family: var(--sans); font-weight: 800; font-size: clamp(46px, 8.5vw, 128px); line-height: 0.9; letter-spacing: -0.025em; text-transform: uppercase; margin: 0; }
.chapter__sub { font-family: var(--mono); font-size: clamp(14px,1.5vw,17px); letter-spacing: 0.03em; color: var(--paper-soft); margin: 20px 0 0; }
.chapter__brand { height: 64px; width: auto; margin-top: 34px; display: block; }
@media (max-width: 700px){ .chapter__brand { height: 48px; } }
.chapter__ghost { position: absolute; right: clamp(-8px, 2vw, 48px); top: 50%; transform: translateY(-50%); font-family: var(--sans); font-weight: 800; font-size: clamp(190px, 33vw, 440px); line-height: 0.7; color: rgba(255, 255, 255, 0.06); z-index: 1; pointer-events: none; user-select: none; }
@media (max-width: 640px) { .chapter__ghost { font-size: 42vw; } }

/* ============================================================
   CASILLERO · TALAVERA #1b2a52
   ============================================================ */
:root { --talavera: #1b2a52; --talavera-deep: #131f3e; --talavera-accent: #8fa0d8; --talavera-text: #eef0f6; --talavera-soft: rgba(238, 240, 246, 0.68); --talavera-line: rgba(238, 240, 246, 0.18); }
.section--talavera { background: var(--talavera); color: var(--talavera-text); }
.section--talavera .kicker { color: var(--talavera-accent); }
.section--talavera .lede, .section--talavera .body, .section--talavera .foot, .section--talavera .media-cap { color: var(--talavera-soft); }
.section--talavera .body strong, .section--talavera .h2 { color: var(--talavera-text); }
.section--talavera .tag { color: var(--talavera-text); border-color: var(--talavera-line); }
.section--talavera .card { background: var(--talavera-deep); border-color: var(--talavera-line); }
.section--talavera .card p { color: var(--talavera-soft); }
.section--talavera .card__num { color: var(--talavera-accent); }
.section--talavera .card:hover { border-color: var(--talavera-accent); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.30); }
.section--talavera .accordion, .section--talavera .acc { border-color: var(--talavera-line); }
.section--talavera .acc__idx { color: var(--talavera-accent); }
.section--talavera .acc__icon::before, .section--talavera .acc__icon::after { background: var(--talavera-accent); }
.section--talavera .acc__head:hover .acc__title { color: var(--talavera-accent); }
.section--talavera .acc__sub { color: var(--talavera-soft); }
.section--talavera .ulist li { color: var(--talavera-soft); border-color: var(--talavera-line); }
.section--talavera .stat__label { color: var(--talavera-soft); }
.section--talavera .stat { border-color: var(--talavera-line); }
.section--talavera .ulist li::before { background: var(--talavera-accent); }
.section--talavera .ulist li:hover { color: var(--talavera-text); }
.section--talavera .tbl th, .section--talavera .tbl td { border-color: var(--talavera-line); }
.section--talavera .tbl thead th { color: var(--talavera-soft); border-bottom-color: var(--talavera-text); }
.section--talavera .acc-control button { border-color: var(--talavera-line); color: var(--talavera-soft); }
.section--talavera .acc-control button:hover { border-color: var(--talavera-accent); color: var(--talavera-accent); }
.section--talavera .media { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28); }
.section--talavera a:focus-visible, .section--talavera button:focus-visible { outline-color: var(--talavera-accent); }

/* ============================================================
   TEXTURE BACKDROPS · sello + piedra / mármol
   ============================================================ */
body {
  background-color: var(--paper);
  background-image: linear-gradient(rgba(242, 240, 233, 0.42), rgba(242, 240, 233, 0.42)), url("assets/fondos/99_FONDO_light_sello_textura.webp");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
/* light/paper sections reveal the marble backdrop */
.section:not(.section--green):not(.section--ink):not(.section--talavera) { background-color: transparent; }
.section--alt { background-color: rgba(227, 222, 206, 0.5); }
/* dark stone texture on negro sections */
.section--ink, .chapter--ink, footer.section--ink {
  background-color: var(--ink);
  background-image: linear-gradient(rgba(20, 20, 17, 0.74), rgba(20, 20, 17, 0.74)), url("assets/fondos/99_FONDO_dark_sello_textura.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (max-width: 900px) {
  body { background-attachment: scroll; background-size: 150% auto; }
}

/* ============================================================
   MODO PRESENTACIÓN
   ============================================================ */
.present-launch {
  position: fixed; left: 20px; bottom: 20px; z-index: 120;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  background: #1f5c3d; color: #f2f0e9; border: 0; border-radius: 100px;
  padding: 11px 18px; cursor: pointer; box-shadow: 0 10px 24px rgba(26, 26, 23, 0.16);
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
}
.present-launch:hover { background: var(--green-deep); }
.present-launch.hide { opacity: 0; pointer-events: none; transform: translateY(8px); }

.present-bar {
  position: fixed; right: 20px; bottom: 22px; z-index: 120;
  display: flex; align-items: center; gap: 8px; padding: 9px 11px;
  background: var(--ink); color: var(--paper); border-radius: 100px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  transform: translateY(150%); opacity: 0; pointer-events: none;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), opacity 0.3s;
}
.present-bar.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.present-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(242,240,233,0.4);
  background: rgba(255,255,255,0.06); color: #f2f0e9; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.present-btn:hover { background: rgba(255, 255, 255, 0.12); }
.present-now { display: flex; flex-direction: column; align-items: center; min-width: 180px; padding: 0 6px; }
.present-now__label { font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap; max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
.present-now__count { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--paper-soft); margin-top: 2px; }
.present-toggle { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; background: none; border: 1px solid var(--paper-line); color: var(--paper-soft); border-radius: 100px; padding: 8px 12px; cursor: pointer; transition: all 0.2s; }
.present-toggle:hover { color: var(--paper); border-color: var(--paper); }
.present-toggle.is-on { background: var(--green); color: var(--paper); border-color: var(--green); }
.present-menu {
  position: absolute; bottom: calc(100% + 12px); right: 0; left: auto; transform: none;
  width: 304px; max-height: 52vh; overflow: auto; background: var(--ink);
  border: 1px solid var(--paper-line); border-radius: 12px; padding: 8px; display: none;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}
.present-menu.is-open { display: block; }
.present-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--paper-soft); font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; padding: 9px 12px; border-radius: 7px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.present-menu button:hover { background: rgba(255, 255, 255, 0.08); color: var(--paper); }
.present-menu button.is-current { color: var(--green-soft); }

body.present-focus .hero, body.present-focus section { transition: opacity 0.4s ease; }
body.present-focus .hero:not(.is-current-stop), body.present-focus section:not(.is-current-stop) { opacity: 0.16; }
body.presenting .to-top { opacity: 0; pointer-events: none; }

@media (max-width: 640px) {
  .present-now { min-width: 110px; }
  .present-now__label { max-width: 120px; }
  .present-toggle { padding: 8px 9px; }
  .present-bar { gap: 6px; padding: 8px; }
}

/* ============================================================
   SCROLLER GALLERY · editorial premium
   ============================================================ */
.scroller-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.scroller-hint { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.section--green .scroller-hint, .section--ink .scroller-hint { color: var(--paper-soft); }
.scroller-hint::after { content: "→"; font-size: 14px; }
.scroller {
  display: flex; gap: clamp(14px, 1.6vw, 22px);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 18px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scrollbar-width: thin; cursor: grab; -webkit-overflow-scrolling: touch;
}
.scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.scroller::-webkit-scrollbar { height: 4px; }
.scroller::-webkit-scrollbar-track { background: var(--line-soft); }
.scroller::-webkit-scrollbar-thumb { background: var(--green); border-radius: 4px; }
.scroller .figure {
  flex: 0 0 auto; scroll-snap-align: start;
  width: clamp(240px, 30vw, 380px); margin: 0;
}
.scroller .figure.is-tall { width: clamp(190px, 23vw, 290px); }
.scroller .figure.is-wide { width: clamp(340px, 44vw, 580px); }
.scroller .figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.scroller .figure.is-tall img { aspect-ratio: 9 / 16; }
.scroller .figure.is-wide img { aspect-ratio: 16 / 10; }
.scroller .figure__cap { padding: 10px 2px 0; }
@media (prefers-reduced-motion: reduce) { .scroller { scroll-behavior: auto; } }
