/* =========================================================
   AGAR · sitio web
   Paleta, tipografías y recursos según el Manual de marca v1.0
   ========================================================= */

/* Fuentes de marca servidas desde el sitio (OFL, ver assets/fonts) */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/BricolageGrotesque-Variable.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/Newsreader-Variable.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/Newsreader-Italic-Variable.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}

/* Los tokens de tono se registran para poder interpolarlos:
   el fondo de la página cambia de color con el scroll. */
@property --bg   { syntax: "<color>"; inherits: true; initial-value: #1F5C3A; }
@property --fg   { syntax: "<color>"; inherits: true; initial-value: #F6F3EA; }
@property --soft { syntax: "<color>"; inherits: true; initial-value: rgba(246,243,234,.74); }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #D4F07A; }
@property --col-1 { syntax: "<color>"; inherits: true; initial-value: #D4F07A; }
@property --col-2 { syntax: "<color>"; inherits: true; initial-value: #E6D9F7; }
@property --btn-bg { syntax: "<color>"; inherits: true; initial-value: #D4F07A; }
@property --btn-fg { syntax: "<color>"; inherits: true; initial-value: #173D29; }
@property --line { syntax: "<color>"; inherits: true; initial-value: rgba(246,243,234,.22); }

:root {
  --crema: #F6F3EA;
  --clorofila: #1F5C3A;
  --noche: #173D29;
  --lavanda: #E6D9F7;
  --lima: #D4F07A;
  --antocianina: #6A2C91;

  --sans: "Bricolage Grotesque", Arial, sans-serif;
  --serif: "Newsreader", Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1400px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* z-index: contenido 1 · nav 50 · grain 60 · barra de edición 70 · intro 100 */
  --z-nav: 50;
  --z-grain: 60;
  --z-edit: 70;
  --z-intro: 100;

  transition: --bg .7s var(--ease-out), --fg .7s var(--ease-out), --soft .7s var(--ease-out),
              --accent .7s var(--ease-out), --col-1 .7s var(--ease-out), --col-2 .7s var(--ease-out),
              --btn-bg .7s var(--ease-out), --btn-fg .7s var(--ease-out), --line .7s var(--ease-out);
}

/* Tonos: fondos oscuros llevan crema y lima; fondos claros, verde noche y antocianina */
:root[data-tone="clorofila"], :root[data-tone="noche"] {
  --fg: #F6F3EA; --soft: rgba(246,243,234,.76); --accent: #D4F07A;
  --col-1: #D4F07A; --col-2: #E6D9F7;
  --btn-bg: #D4F07A; --btn-fg: #173D29; --line: rgba(246,243,234,.22);
}
:root[data-tone="clorofila"] { --bg: #1F5C3A; }
:root[data-tone="noche"]     { --bg: #173D29; }
:root[data-tone="crema"], :root[data-tone="lavanda"] {
  --fg: #173D29; --soft: rgba(23,61,41,.78); --accent: #6A2C91;
  --col-1: #6A2C91; --col-2: #1F5C3A;
  --btn-bg: #6A2C91; --btn-fg: #F6F3EA; --line: rgba(23,61,41,.2);
}
:root[data-tone="crema"]   { --bg: #F6F3EA; }
:root[data-tone="lavanda"] { --bg: #E6D9F7; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html.is-loading body { overflow: hidden; }

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
::selection { background: var(--lima); color: var(--noche); }

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

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent);
}

/* ---------- Botones: pastilla redonda + asa de siembra ---------- */
.btn {
  --pad: .95em 1.5em;
  display: inline-flex; align-items: center; gap: .7em;
  padding: var(--pad);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn .asa { width: 2.4em; height: 1em; overflow: visible; }
.btn .asa-line { transform-origin: 2px 10px; transition: transform .45s var(--ease-out); }
.btn .asa-dot { transform-origin: 38px 10px; transform: scale(0); transition: transform .45s var(--ease-out); }
.btn:hover .asa-line { transform: scaleX(1.18); }
.btn:hover .asa-dot { transform: scale(1); }
.btn--sm { --pad: .62em 1.1em; font-size: .9rem; }
.btn--xl { --pad: 1.15em 2em; font-size: clamp(1.05rem, 1rem + .5vw, 1.4rem); }

.link {
  font-family: var(--sans); font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: 2px;
  transition: background-size .45s var(--ease-out);
}
.link:hover { background-size: 0 1.5px; background-position: 100% 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  color: var(--fg);
  transition: transform .5s var(--ease-out), background-color .4s;
}
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 94%, transparent); }
/* El desenfoque solo en computadoras: en celulares es caro de pintar al scrollear */
@media (hover: hover) and (pointer: fine) {
  .nav.is-scrolled {
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo svg { width: 96px; height: auto; }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 36px); font-family: var(--sans); font-weight: 600; font-size: .95rem; }
.nav__links a { text-decoration: none; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); transform: translateX(-50%) scale(0); transition: transform .35s var(--ease-out);
}
.nav__links a:hover::after { transform: translateX(-50%) scale(1); }
@media (max-width: 900px) { .nav__links { display: none; } }
@media (max-width: 420px) { .nav .btn--sm .asa { display: none; } }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: var(--z-intro);
  background: var(--clorofila);
  display: grid; place-items: center; align-content: center; gap: 28px;
  clip-path: circle(150% at 50% 50%);
  cursor: pointer;
}
.intro__logo { width: min(64vw, 620px); height: auto; overflow: visible; }
.intro .ring { stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro__tag { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2.2vw, 1.6rem); color: var(--lavanda); }
html.no-intro .intro { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid; align-items: center;
  padding: 104px var(--gutter) 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero__agar { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; cursor: crosshair; }
.hero__dish {
  position: absolute; z-index: -1; pointer-events: none;
  width: min(84vw, 1040px); aspect-ratio: 1;
  right: max(-16vw, -220px); top: 50%;
  translate: 0 -44%;
  color: var(--crema);
}
.hero__dish svg { width: 100%; height: 100%; overflow: visible; will-change: transform; }
.hero__rotulo { transform-origin: 500px 500px; }
.hero__rotulo text {
  font-family: var(--sans); font-weight: 600; font-size: 19px; letter-spacing: .32em;
  font-stretch: 80%; fill: var(--lima);
}
.hero__inner { position: relative; max-width: var(--max); width: 100%; margin: 0 auto; pointer-events: none; }
.hero__inner a { pointer-events: auto; }
.hero__inner .eyebrow { margin-bottom: 28px; }
.hero__title { font-size: clamp(2.9rem, 6.6vw, 7rem); line-height: .98; letter-spacing: -.035em; }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line__in { display: inline-block; }
.grow {
  --wdth: 100; --wght: 700;
  display: inline-block;
  font-variation-settings: "wdth" var(--wdth), "wght" var(--wght);
  color: var(--lima);
}
.hero__lede {
  margin-top: 28px; max-width: 34ch;
  font-style: italic; font-size: clamp(1.15rem, 1rem + .7vw, 1.55rem); line-height: 1.4;
  color: var(--soft);
}
.hero__ctas { display: flex; align-items: center; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero__hint {
  position: absolute; right: var(--gutter); bottom: 28px;
  font-style: italic; font-size: .95rem; color: var(--soft); pointer-events: none;
}
@media (max-width: 767px) {
  .hero { align-items: end; padding-bottom: 96px; }
  .hero__dish { width: 120vw; right: -40vw; top: 26%; }
  .hero__hint { left: var(--gutter); right: auto; }
}

/* ---------- Problema: halos ---------- */
.problema { position: relative; padding: clamp(120px, 16vw, 220px) var(--gutter) 40px; }
.kinetic {
  max-width: var(--max); margin: 0 auto;
  font-size: clamp(2.4rem, 6.4vw, 6.6rem); line-height: 1; letter-spacing: -.035em;
}
.kw { display: inline-block; }
.yr-new { color: var(--accent); }
.kinetic br { display: block; }
@media (max-width: 767px) { .kinetic br { display: none; } }
.yr-old { position: relative; --wdth: 100; font-variation-settings: "wdth" var(--wdth); }
.strike { position: absolute; left: -4%; top: 34%; width: 108%; height: .4em; overflow: visible; pointer-events: none; }
.strike path { fill: none; stroke: var(--antocianina); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }

.field {
  position: relative; max-width: var(--max); margin: clamp(48px, 7vw, 100px) auto 0;
  height: clamp(980px, 112vw, 1200px);
}
.field__canvas { position: absolute; inset: 0 calc(-1 * var(--gutter)); width: calc(100% + 2 * var(--gutter)); height: 100%; }
.halo {
  position: absolute;
  width: clamp(280px, 30vw, 420px); aspect-ratio: 1;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 clamp(30px, 3.6vw, 56px);
}
.halo__disk { width: 22px; height: 22px; border-radius: 50%; background: var(--antocianina); margin-bottom: 22px; }
.halo h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem); margin-bottom: 14px; }
.halo p { color: var(--soft); font-size: 1.02rem; }
.halo--1 { left: 2%; top: 2%; }
.halo--2 { right: 3%; top: 26%; }
.halo--3 { left: 24%; top: 58%; }
@media (max-width: 767px) {
  .field { height: auto; display: flex; flex-direction: column; gap: 40px; padding: 20px 0 60px; }
  .halo { position: relative; inset: auto; width: min(88vw, 360px); align-self: center; }
  .halo--2 { align-self: flex-end; }
  .halo--1 { align-self: flex-start; }
}

/* ---------- Concepto (pin) ---------- */
.concepto__stage {
  height: 100dvh;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 5vw, 80px);
  max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter) 24px;
}
.concepto__dish { color: var(--crema); width: min(100%, 76vh); justify-self: center; }
.concepto__dish svg { width: 100%; height: auto; overflow: visible; }
.concepto__count {
  font-family: var(--sans); font-weight: 600; letter-spacing: .02em;
  font-size: 1.05rem; color: var(--lima); margin-bottom: 28px;
  font-variant-numeric: tabular-nums;
}
.concepto__n { display: inline-block; min-width: 1.4em; font-size: 2.6em; font-weight: 800; letter-spacing: -.04em; vertical-align: -.12em; }
.concepto__lines { display: grid; }
.cl { grid-area: 1 / 1; }
.cl h2 { font-size: clamp(2.1rem, 4.4vw, 4.6rem); }
.cl p { margin-top: 22px; font-style: italic; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); color: var(--soft); max-width: 36ch; }
.cl__logo { width: min(320px, 60%); height: auto; margin-top: 40px; color: var(--crema); }
@media (max-width: 767px) {
  .concepto__stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; padding-top: 88px; gap: 20px; }
  .concepto__dish { width: min(78vw, 44vh); }
  .concepto__count { margin-bottom: 12px; }
}

/* ---------- Entregables (paneo horizontal) ---------- */
.ent__pin { position: relative; height: 100dvh; overflow: hidden; display: flex; align-items: center; }
.ent__track {
  display: flex; align-items: center; gap: clamp(28px, 4vw, 64px);
  padding: 0 var(--gutter); width: max-content;
  will-change: transform;
}
.ent__head { width: clamp(300px, 34vw, 520px); flex-shrink: 0; }
.ent__head h2 { font-size: clamp(2.4rem, 5vw, 5rem); margin-top: 20px; }
.ent__sub { margin-top: 22px; font-style: italic; font-size: 1.25rem; color: var(--soft); max-width: 28ch; }
.ent {
  flex-shrink: 0; width: clamp(260px, 24vw, 340px);
  display: grid; gap: 10px;
}
.ent:nth-child(odd) { transform: translateY(6vh); }
.ent__plate { width: 100%; height: auto; overflow: visible; color: var(--noche); transition: rotate .8s var(--ease-out); }
.ent:hover .ent__plate { rotate: 24deg; }
.ent__n { font-family: var(--sans); font-weight: 600; font-size: .9rem; color: var(--antocianina); font-variant-numeric: tabular-nums; margin-top: 14px; }
.ent h3 { font-size: 1.75rem; }
.ent p { color: var(--soft); font-size: 1.05rem; max-width: 26ch; }
.ent__type { font-family: var(--sans); font-size: .82rem; font-weight: 600; text-transform: lowercase; color: var(--soft); }
.ent__count {
  position: absolute; left: var(--gutter); bottom: 32px;
  display: flex; align-items: center; gap: 16px;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
}
.ent__grid { display: grid; grid-template-columns: repeat(10, 14px); gap: 6px; }
.ent__grid i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--noche); position: relative; }
.ent__grid i::after {
  content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--antocianina);
  transform: scale(0); transition: transform .45s var(--ease-out);
}
.ent__grid i.on::after { transform: scale(1); }
@media (max-width: 767px) {
  .ent__pin { height: auto; display: block; padding: 120px 0 80px; overflow: visible; }
  .ent__track { width: auto; flex-direction: column; align-items: stretch; gap: 64px; }
  .ent__head { width: auto; }
  .ent { width: min(100%, 360px); }
  .ent:nth-child(odd) { transform: none; }
  .ent:nth-child(even) { align-self: flex-end; }
  .ent__count { display: none; }
}

/* ---------- Packs (placas apiladas) ---------- */
.packs { padding: clamp(120px, 14vw, 200px) var(--gutter); }
.packs__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); }
.packs__sticky { position: sticky; top: 12vh; height: 76vh; display: grid; place-items: center; }
.stack { width: 100%; max-width: 560px; height: auto; overflow: visible; }
.stack .plate { transition: opacity .6s var(--ease-out); }
.stack .plate .lift { transition: transform .8s var(--ease-out); }
.stack .plate.is-active .lift { transform: translateY(-26px); }
.stack.has-active .plate:not(.is-active) { opacity: .4; }
.stack text { font-family: var(--sans); font-weight: 700; font-size: 22px; letter-spacing: .08em; fill: var(--crema); }
.stack .plate.is-active text { fill: var(--lima); }
.packs__title { font-size: clamp(2.3rem, 4.6vw, 4.6rem); margin-bottom: 8vh; }
.pack { padding: 6vh 0; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--line); }
.pack[hidden] { display: none; }
/* Pestañas BENCH / PILOT / SCALE */
.pack-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: -4vh 0 4vh; }
.pack-tabs[hidden] { display: none; }
.pack-tab {
  font-family: var(--sans); font-weight: 700; font-size: 1.05rem; letter-spacing: .1em; font-stretch: 85%;
  padding: .75em 1.4em; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--fg); border: 1.5px solid var(--line);
  transition: background .25s, color .25s, border-color .25s;
}
.pack-tab:hover { border-color: var(--fg); }
.pack-tab[aria-selected="true"] { background: var(--lima); color: var(--noche); border-color: var(--lima); }
.pack-tab:focus-visible { outline: 3px solid var(--lima); outline-offset: 3px; }
.pack-tab--top::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: .6em; border-radius: 50%; background: var(--lima); vertical-align: .15em; }
.pack-tab--top[aria-selected="true"]::after { background: var(--antocianina); }
.pack-tabs:not([hidden]) ~ .pack { border-top: 0; padding-top: 0; }
.stack .plate { cursor: pointer; }
.pack__name { font-size: clamp(2.6rem, 5vw, 4.8rem); letter-spacing: .02em; font-stretch: 85%; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.tag {
  font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-stretch: 100%;
  background: var(--lima); color: var(--noche); padding: .5em 1em; border-radius: 999px;
}
.pack__price { font-family: var(--sans); font-weight: 600; font-size: clamp(1.4rem, 2vw, 2rem); margin-top: 16px; }
.pack__meta { font-style: italic; color: var(--soft); margin-top: 4px; font-size: 1.15rem; }
.pack__items { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.pack__items li { display: flex; align-items: center; gap: 14px; font-size: 1.15rem; }
.pack__items li::before {
  content: ""; width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%;
  border: 2px solid var(--crema);
  background: radial-gradient(circle, var(--lima) 0 3.5px, transparent 4px);
}
.pack__items li.pack__all { font-style: italic; color: var(--soft); }
.pack__items li.pack__all::before { background: none; border-style: dashed; }
.packs__terms { margin-top: 6vh; display: grid; gap: 10px; color: var(--soft); max-width: 46ch; }
.packs__terms strong { font-family: var(--sans); color: var(--fg); }
@media (max-width: 767px) {
  .packs__grid { grid-template-columns: 1fr; }
  .packs__sticky { position: relative; top: 0; height: auto; }
  .stack { max-width: 340px; }
  .pack { padding: 32px 0; }
  .pack-tabs { margin: 0 0 24px; gap: 8px; flex-wrap: nowrap; }
  .pack-tab { font-size: .9rem; padding: .7em 1em; letter-spacing: .06em; }
}

/* ---------- Velocidad ---------- */
.velocidad { padding: clamp(120px, 14vw, 200px) var(--gutter) clamp(60px, 8vw, 120px); max-width: var(--max); margin: 0 auto; }
.velocidad h2 { font-size: clamp(2.6rem, 6vw, 6rem); max-width: 12ch; }
.vel { margin-top: clamp(48px, 6vw, 88px); display: grid; gap: clamp(22px, 3vw, 36px); }
.vel__row { display: grid; grid-template-columns: minmax(120px, 1fr) 3fr minmax(110px, auto); align-items: center; gap: clamp(16px, 3vw, 40px); }
.vel__name { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; letter-spacing: .06em; }
.vel__row--agency .vel__name { font-weight: 500; letter-spacing: 0; color: var(--soft); }
.vel__dots { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(4px, 1vw, 12px); }
.vel__dots i {
  aspect-ratio: 1; border-radius: 50%;
  border: clamp(2px, .3vw, 3px) solid var(--noche);
  position: relative; opacity: .18;
}
.vel__dots i::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: var(--antocianina); transform: scale(0); }
.vel__row--agency .vel__dots i { border-color: var(--soft); }
.vel__row--agency .vel__dots i::after { background: var(--soft); }
.vel__dots i.on { opacity: 1; }
.vel__dots i.on::after { transform: scale(1); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.vel__dots i.maybe { border-style: dashed; }
.vel__num { font-family: var(--sans); font-weight: 600; font-size: 1.1rem; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vel__num b { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; }
.vel__row--agency .vel__num { color: var(--soft); }
.vel__row--agency .vel__num b { font-size: clamp(1.2rem, 2vw, 1.8rem); }
.vel__note { margin-top: 40px; font-style: italic; color: var(--soft); font-size: 1.2rem; }
@media (max-width: 767px) {
  .vel__row { grid-template-columns: 1fr auto; row-gap: 12px; }
  .vel__dots { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Proceso ---------- */
.proceso { padding: clamp(60px, 8vw, 120px) var(--gutter) clamp(120px, 14vw, 200px); max-width: var(--max); margin: 0 auto; }
.proceso h2 { font-size: clamp(2.3rem, 4.8vw, 4.8rem); max-width: 16ch; }
.steps { position: relative; margin-top: clamp(56px, 8vw, 110px); }
.steps__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.steps__path { fill: none; stroke: var(--noche); stroke-width: 3; stroke-linecap: round; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(64px, 9vw, 120px); }
.step { display: grid; grid-template-columns: 1fr 72px 1fr; align-items: center; gap: clamp(20px, 3vw, 48px); }
.step__node {
  grid-column: 2; grid-row: 1; justify-self: center;
  width: 56px; height: 56px; border-radius: 50%;
  border: 3px solid var(--noche); background: var(--bg);
  position: relative; z-index: 1;
  transition: transform .6s var(--ease-out);
}
.step__node::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px solid var(--noche); opacity: .35; }
.step__node::after {
  content: ""; position: absolute; inset: 17px; border-radius: 50%; background: var(--antocianina);
  transform: scale(0); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1);
}
.step.is-on .step__node { transform: scale(1.12); }
.step.is-on .step__node::after { transform: scale(1); }
.step > div { grid-row: 1; opacity: .25; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.step.is-on > div { opacity: 1; transform: none; }
.step:nth-child(odd) > div { grid-column: 1; text-align: right; justify-self: end; }
.step:nth-child(even) > div { grid-column: 3; }
.step h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.step p { color: var(--soft); margin-top: 8px; max-width: 30ch; }
.step:nth-child(odd) p { margin-left: auto; }
.step--last .step__node { background: var(--noche); }
.step--last .step__node::after { background: var(--lima); }
@media (max-width: 767px) {
  .step { grid-template-columns: 56px 1fr; }
  .step__node { grid-column: 1; }
  .step:nth-child(odd) > div, .step:nth-child(even) > div { grid-column: 2; text-align: left; justify-self: start; }
  .step:nth-child(odd) p { margin-left: 0; }
}

/* ---------- Equipo ---------- */
.equipo { padding: clamp(60px, 8vw, 120px) var(--gutter) clamp(120px, 14vw, 200px); max-width: var(--max); margin: 0 auto; }
.equipo h2 { font-size: clamp(2.3rem, 4.8vw, 4.8rem); max-width: 14ch; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 140px); margin-top: clamp(56px, 7vw, 100px); max-width: 1100px; }
.member { margin: 0; }
.member--b { margin-top: clamp(0px, 14vw, 200px); }
.member__frame { position: relative; width: min(100%, 420px); aspect-ratio: 1; }
.member__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: rotate 1.4s var(--ease-out); }
.member:hover .member__ring { rotate: 90deg; }
.member__ring text { font-family: var(--sans); font-weight: 600; font-size: 8.4px; letter-spacing: .3em; fill: var(--antocianina); }
.member__photo {
  position: absolute; inset: 12%; border-radius: 50%;
  border: 6px solid var(--noche);
  outline: 1.5px solid color-mix(in srgb, var(--noche) 35%, transparent); outline-offset: -18px;
  background:
    radial-gradient(circle at 34% 40%, var(--antocianina) 0 5%, transparent 5.5%),
    radial-gradient(circle at 62% 30%, var(--clorofila) 0 3%, transparent 3.5%),
    radial-gradient(circle at 58% 66%, var(--antocianina) 0 4%, transparent 4.5%),
    var(--lavanda);
  display: grid; place-items: center;
  font-family: var(--sans); font-weight: 600; color: var(--noche);
}
.member figcaption { margin-top: 28px; }
.member__role { font-family: var(--sans); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--antocianina); }
.member__name { font-family: var(--sans); font-weight: 700; font-size: 2rem; letter-spacing: -.02em; margin-top: 6px; }
.member__bio { margin-top: 10px; color: var(--soft); max-width: 36ch; }
@media (max-width: 767px) {
  .duo { grid-template-columns: 1fr; }
  .member--b { margin-top: 0; }
}

/* ---------- FAQ ---------- */
.faq { padding: clamp(120px, 14vw, 200px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.faq h2 { font-size: clamp(2.3rem, 4.8vw, 4.8rem); max-width: 14ch; }
.faq__list { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 80px); }
.qa { border-top: 1px solid var(--line); }
.qa__q {
  width: 100%; display: flex; align-items: center; gap: 18px;
  padding: 26px 0; background: none; border: 0; color: inherit; cursor: pointer; text-align: left;
  font-family: var(--sans); font-weight: 600; font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); letter-spacing: -.01em;
}
.qa__icon { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; border: 2.5px solid var(--noche); position: relative; transition: transform .6s var(--ease-out); }
.qa__icon::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px solid var(--noche); opacity: .35; }
.qa__icon::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--antocianina); transform: scale(0); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.qa__q[aria-expanded="true"] .qa__icon::after { transform: scale(1); }
.qa__q:hover .qa__icon { transform: rotate(90deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 0 28px 48px; color: var(--soft); max-width: 46ch; }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
@media (max-width: 767px) { .faq__list { grid-template-columns: 1fr; } }

/* ---------- Cierre ---------- */
.cierre { position: relative; min-height: 100dvh; display: grid; align-items: center; padding: 120px var(--gutter); overflow: hidden; isolation: isolate; }
.cierre__swarm { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cierre::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(23,61,41,.92) 0%, rgba(23,61,41,.6) 38%, rgba(23,61,41,0) 70%);
}
@media (max-width: 767px) {
  .cierre { align-items: end; }
  .cierre::after { background: linear-gradient(0deg, rgba(23,61,41,.95) 30%, rgba(23,61,41,0) 75%); }
}
.cierre__inner { max-width: var(--max); width: 100%; margin: 0 auto; }
.cierre h2 { font-size: clamp(2.8rem, 6.6vw, 7rem); max-width: 12ch; }
.cierre p { margin-top: 24px; font-style: italic; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); color: var(--soft); max-width: 34ch; }
.cierre .btn { margin-top: 48px; }
.cierre .cierre__contact { font-style: normal; font-family: var(--sans); font-size: 1rem; margin-top: 28px; }

/* ---------- Footer ---------- */
.footer {
  padding: 40px var(--gutter) 48px; background: var(--noche); color: var(--crema);
  --col-1: #D4F07A; --col-2: #E6D9F7;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  border-top: 1px solid rgba(246,243,234,.15);
}
.footer__logo { width: 120px; height: auto; }
.footer__tag { font-style: italic; color: rgba(246,243,234,.76); }
.footer__row { display: flex; gap: 24px; font-family: var(--sans); font-size: .95rem; }
.footer__row a { text-decoration: none; }
.footer__row a:hover { color: var(--lima); }
@media (max-width: 767px) { .footer { grid-template-columns: 1fr; } }

/* ---------- Modo edición ---------- */
.editbar {
  position: fixed; z-index: var(--z-edit);
  right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: min(420px, calc(100vw - 32px));
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  font-family: var(--sans);
}
.editbar__status {
  background: var(--noche); color: var(--crema);
  font-size: .9rem; line-height: 1.4; padding: .7em 1em; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(23, 61, 41, .25);
}
.editbar__status:empty { display: none; }
.editbar[hidden], .editbar [hidden] { display: none; }
.editbar__actions { display: flex; gap: 8px; }
.editbar__btn {
  font: 600 .95rem/1 var(--sans); cursor: pointer;
  padding: .85em 1.3em; border-radius: 999px; border: 2px solid var(--noche);
  background: var(--lima); color: var(--noche);
  box-shadow: 0 10px 30px rgba(23, 61, 41, .25);
  transition: transform .3s var(--ease-out);
}
.editbar__btn:active { transform: scale(.97); }
.editbar__btn:disabled { opacity: .6; cursor: progress; }
.editbar__btn--ghost { background: var(--crema); }
.editbar__btn:focus-visible { outline: 2px solid var(--antocianina); outline-offset: 3px; }

html.is-editing .hero__inner { pointer-events: auto; }
html.is-editing [data-edit] {
  outline: 1.5px dashed color-mix(in srgb, currentColor 55%, transparent);
  outline-offset: 4px; border-radius: 4px; cursor: text;
}
html.is-editing [data-edit]:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
html.is-editing [data-edit]:focus { outline: 2px solid var(--accent); background: color-mix(in srgb, currentColor 6%, transparent); }
html.is-editing .step > div, html.is-editing .halo > * { opacity: 1 !important; transform: none !important; }

/* ---------- Grano ---------- */
.grain {
  position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Movimiento reducido (o sin GSAP): sin pins, todo visible ---------- */
html.reduce .concepto__stage { height: auto; padding-top: 120px; padding-bottom: 120px; }
html.reduce .cl { grid-area: auto; margin-bottom: 56px; }
html.reduce .ent__pin { height: auto; overflow-x: auto; padding: 120px 0 100px; }
html.reduce .ent__count { display: none; }
html.reduce .step > div { opacity: 1; transform: none; }
html.reduce .strike path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .strike path { stroke-dashoffset: 0; }
  .step > div { opacity: 1; transform: none; }
}

/* =========================================================
   V2 · Web de varias páginas
   ========================================================= */

/* ---------- Nav: página activa y menú en celular ---------- */
.nav__links a[aria-current="page"]::after { transform: translateX(-50%) scale(1); }
.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__menu {
  display: none; align-items: center; gap: 10px;
  font: 600 .9rem/1 var(--sans); color: var(--fg);
  background: none; border: 1.5px solid currentColor; border-radius: 999px;
  padding: .62em 1em; cursor: pointer;
}
.nav__menu i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transition: transform .4s var(--ease-out); }
.nav__menu[aria-expanded="true"] i { transform: scale(1.6); }
@media (max-width: 900px) {
  .nav__menu { display: inline-flex; }
  html.menu-open .nav { transform: none; background: var(--bg); }
  html.menu-open .nav__links {
    display: flex; position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; gap: 6px;
    padding: 16px var(--gutter) 36px; background: var(--bg);
    font-size: clamp(1.6rem, 7vw, 2.2rem); letter-spacing: -.02em;
    border-bottom: 1px solid var(--line);
  }
  html.menu-open .nav__links a { padding: 8px 0; }
  html.menu-open .nav__links a::after { left: auto; right: 0; bottom: 50%; transform: translateY(50%) scale(0); width: 10px; height: 10px; }
  html.menu-open .nav__links a[aria-current="page"]::after { transform: translateY(50%) scale(1); }
}
@media (max-width: 420px) { .nav .btn--sm { display: none; } }

/* ---------- Encabezado de página interna ---------- */
.phero {
  position: relative; min-height: 78vh;
  display: grid; align-items: end;
  padding: 150px var(--gutter) clamp(64px, 8vw, 110px);
  overflow: hidden; isolation: isolate;
}
.phero__inner { max-width: var(--max); width: 100%; margin: 0 auto; }
.phero .eyebrow { margin-bottom: 24px; }
.phero h1 { font-size: clamp(2.8rem, 7vw, 7.2rem); line-height: .98; letter-spacing: -.035em; max-width: 13ch; }
.phero__lede { margin-top: 28px; max-width: 40ch; font-style: italic; font-size: clamp(1.15rem, 1rem + .7vw, 1.55rem); line-height: 1.4; color: var(--soft); }
.phero__art {
  position: absolute; z-index: -1; pointer-events: none;
  right: max(-10vw, -140px); top: 50%; translate: 0 -50%;
  width: min(62vw, 760px); aspect-ratio: 1; color: var(--fg);
}
.phero__art svg { width: 100%; height: 100%; overflow: visible; }
.phero__art .rotulo { font-family: var(--sans); font-weight: 600; font-size: 19px; letter-spacing: .32em; font-stretch: 80%; fill: var(--accent); }
@media (max-width: 767px) {
  .phero { min-height: 0; padding-top: 120px; }
  .phero__art { width: 90vw; right: -40vw; top: 32%; opacity: .55; }
}

/* ---------- Secciones de páginas internas ---------- */
.sec { padding: clamp(96px, 12vw, 180px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.sec__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(48px, 6vw, 90px); }
.sec__head h2 { font-size: clamp(2.3rem, 4.8vw, 4.8rem); max-width: 14ch; }
.sec__head p { font-style: italic; color: var(--soft); font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); max-width: 40ch; }
@media (max-width: 767px) { .sec__head { grid-template-columns: 1fr; } }
.full { max-width: none; }

/* ---------- Home: accesos a cada página ---------- */
.teasers { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.teaser {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 340px;
  padding: 28px 26px 30px; border-radius: 28px; border: 1.5px solid var(--line);
  text-decoration: none; color: inherit; overflow: hidden;
  transition: border-color .4s, transform .6s var(--ease-out), background-color .4s;
}
.teaser:hover { border-color: var(--fg); transform: translateY(-6px); }
.teaser__n { font-family: var(--sans); font-weight: 600; font-size: .85rem; letter-spacing: .14em; color: var(--accent); }
.teaser h3 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); }
.teaser p { color: var(--soft); max-width: 26ch; }
.teaser .asa { margin-top: auto; width: 54px; height: 22px; overflow: visible; color: var(--fg); }
.teaser .asa-dot { transform-origin: 38px 10px; transform: scale(0); transition: transform .45s var(--ease-out); }
.teaser:hover .asa-dot { transform: scale(1); }
.teaser__plate { position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; opacity: .18; color: var(--fg); transition: rotate 1s var(--ease-out), opacity .4s; }
.teaser:hover .teaser__plate { rotate: 60deg; opacity: .35; }
@media (max-width: 1100px) { .teasers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .teasers { grid-template-columns: 1fr; } .teaser { min-height: 0; } }

/* ---------- Servicios: fichas ---------- */
.fichas { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 80px); }
.ficha { display: grid; grid-template-columns: clamp(92px, 9vw, 130px) 1fr; gap: clamp(18px, 2.4vw, 32px); padding: 36px 0; border-top: 1px solid var(--line); align-items: start; }
.ficha__plate { width: 100%; height: auto; overflow: visible; color: var(--noche); transition: rotate .8s var(--ease-out); }
.ficha:hover .ficha__plate { rotate: 30deg; }
.ficha__n { font-family: var(--sans); font-weight: 600; font-size: .82rem; color: var(--antocianina); letter-spacing: .04em; }
.ficha h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-top: 6px; }
.ficha__desc { margin-top: 10px; color: var(--soft); max-width: 46ch; }
.ficha__packs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.ficha__packs span { font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .12em; padding: .45em .9em; border-radius: 999px; border: 1.5px solid var(--fg); }
@media (max-width: 900px) { .fichas { grid-template-columns: 1fr; } }

.extras { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 80px); padding-top: 40px; border-top: 1px solid var(--line); margin-top: clamp(48px, 6vw, 80px); }
.extras h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.extras p { color: var(--soft); max-width: 50ch; }
@media (max-width: 767px) { .extras { grid-template-columns: 1fr; } }

/* ---------- Packs: tabla comparativa ---------- */
.compare-wrap { overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-family: var(--sans); }
.compare th, .compare td { padding: 18px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; padding-left: 0; }
.compare thead th { font-weight: 700; font-size: clamp(1.1rem, 1.6vw, 1.5rem); letter-spacing: .06em; vertical-align: bottom; }
.compare thead small { display: block; font-weight: 600; font-size: .85rem; letter-spacing: 0; color: var(--soft); margin-top: 6px; }
.compare thead .is-top { color: var(--accent); }
.compare tbody td:first-child { font-family: var(--serif); font-size: 1.1rem; }
.compare .si::before { content: ""; display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--fg); background: radial-gradient(circle, var(--accent) 0 4px, transparent 4.5px); vertical-align: middle; }
.compare .no::before { content: ""; display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1.5px dashed var(--line); vertical-align: middle; }
.compare tfoot td { font-weight: 700; font-size: 1.15rem; border-bottom: 0; padding-top: 26px; }
.terms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(48px, 6vw, 80px); }
.term { border-top: 1.5px solid var(--fg); padding-top: 18px; }
.term h3 { font-size: 1.35rem; }
.term p { color: var(--soft); margin-top: 8px; }
@media (max-width: 767px) { .terms-grid { grid-template-columns: 1fr; } }

/* ---------- Método: fases y principios ---------- */
.fases { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); counter-reset: fase; }
.fase { padding: 30px 28px 34px; border-radius: 28px; background: color-mix(in srgb, var(--fg) 6%, transparent); border: 1.5px solid var(--line); }
.fase__node { display: block; width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--fg); position: relative; margin-bottom: 22px; }
.fase__node::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--accent); }
.fase__n { font-family: var(--sans); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.fase h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-top: 6px; }
.fase p { color: var(--soft); margin-top: 10px; }
@media (max-width: 1000px) { .fases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .fases { grid-template-columns: 1fr; } }

.principios { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 80px); }
.principio { display: grid; grid-template-columns: 22px 1fr; gap: 20px; }
.principio::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--antocianina); margin-top: .35em; }
.principio h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
.principio p { color: var(--soft); margin-top: 8px; max-width: 44ch; }
@media (max-width: 767px) { .principios { grid-template-columns: 1fr; } }

/* ---------- Estudio ---------- */
.manifiesto { font-family: var(--sans); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 3.4rem); line-height: 1.12; letter-spacing: -.025em; max-width: 26ch; }
.manifiesto em { font-style: normal; color: var(--accent); }
.dos-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); margin-top: clamp(40px, 5vw, 64px); }
.dos-col p { color: var(--soft); font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); }
@media (max-width: 767px) { .dos-col { grid-template-columns: 1fr; } }

/* ---------- Pie con dos filas y utilidades ---------- */
.footer { grid-template-columns: auto 1fr auto; row-gap: 18px; }
.footer__row { flex-wrap: wrap; justify-content: flex-end; }
.footer__row--small { grid-column: 1 / -1; font-size: .85rem; opacity: .72; padding-top: 18px; border-top: 1px solid rgba(246,243,234,.12); }
@media (max-width: 767px) { .footer__row, .footer__row--small { justify-content: flex-start; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Acceso al formulario dentro del menú de celular (en computadora está el botón) */
.nav__links .nav__cta { display: none; }
@media (max-width: 900px) {
  html.menu-open .nav__links .nav__cta {
    display: inline-flex; align-self: flex-start; margin-top: 14px;
    padding: .55em 1.1em; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg);
    font-size: 1.1rem; letter-spacing: 0;
  }
  html.menu-open .nav__links .nav__cta::after { display: none; }
}
.phero__art { width: min(54vw, 660px); }
