/* Chícharo Cabañas · demo de la web
   Identidad: la planta de arveja. "Chícharo" es la arveja, y de ahí sale todo el lenguaje visual:
   - Láminas botánicas: rótulos "Fig.", trazos de línea fina, zarcillos que se dibujan.
   - Sobres de semillas: fichas en papel con borde picado, campos "Variedad", "Rinde", "Cosecha".
   - Etiquetas de vivero: los botones tienen punta y ojal, como las que se clavan en la maceta.
   - La vaina con dos arvejas: las dos cabañas gemelas.
   Colores de su marca actual (verde oliva y crema) más el verde arveja. Instrument Serif para títulos,
   Jost para leer. */

@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('../fonts/caveat.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
/* Reemplazo con el ancho medio de Caveat: mientras carga, la palabra (todavía invisible) ocupa casi lo mismo y el título no salta */
@font-face { font-family: 'Caveat Reemplazo'; src: local('Georgia'), local('Times New Roman'); size-adjust: 74%; ascent-override: 130%; descent-override: 40%; line-gap-override: 0%; }
@font-face { font-family: 'Jost'; src: url('../fonts/jost-normal.woff2') format('woff2'); font-weight: 300 600; font-style: normal; font-display: swap; }

:root {
  --oliva: #3a3f28;
  --oliva-2: #4b5236;
  --oliva-osc: #262a19;
  --crema: #ded8ca;
  --crema-2: #e9e4d8;
  --papel: #f5f2ea;
  --sobre: #f1e9d6;
  --kraft: #d9c7a0;
  --blanco: #fbfaf6;
  --tinta: #22251a;
  --tinta-2: #4a4e3d;
  --tinta-3: #5a5e4a;
  --arveja: #8da24a;
  --arveja-osc: #5f7330;
  --arveja-claro: #c8d68f;
  --pileta: #3d9cc4;
  --linea: rgba(34, 37, 26, .14);
  --linea-clara: rgba(222, 216, 202, .2);
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --mano: 'Caveat', 'Caveat Reemplazo', cursive;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ancho: 1200px;
  --gutter: clamp(16px, 4.5vw, 48px);
  --radio: 4px;
  --radio-chico: 3px;
  --sombra: 0 1px 2px rgba(34, 37, 26, .06), 0 18px 40px -18px rgba(34, 37, 26, .35);
  --curva: cubic-bezier(.2, .7, .2, 1);
  --curva-telon: cubic-bezier(.76, 0, .24, 1);
  --vh: 1vh;
  --alto-enc: 64px;
  /* Grano de papel: ruido fino que se repite, una sola imagen para todo el sitio */
  --grano: 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .13 0 0 0 0 .14 0 0 0 0 .1 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Borde picado de los sobres (como cortado con tijera zigzag) */
  --picado: conic-gradient(from -45deg at 50% 100%, #0000, #000 1deg 89deg, #0000 90deg) 0 0 / 12px 7px repeat-x, linear-gradient(#000 0 0) 0 7px / 100% calc(100% - 7px) no-repeat;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papel) var(--grano);
  color: var(--tinta);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  counter-reset: fig;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1; margin: 0; letter-spacing: -.012em; text-wrap: balance; }
p { margin: 0; }
em { font-style: italic; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--arveja); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--arveja-claro); color: var(--oliva-osc); }

[hidden] { display: none !important; }
.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--oliva); color: var(--crema); padding: 10px 16px; border-radius: 4px; text-decoration: none; font-weight: 500; }
.saltar:focus { top: 12px; }
.contenedor { width: min(100% - var(--gutter) * 2, var(--ancho)); margin-inline: auto; }

/* ---------- Tipografía de sistema ----------
   Cada antetítulo es el rótulo de una lámina botánica: "Fig. 3 · Las cabañas". El número lo pone CSS. */
.antetitulo { font: 500 .75rem/1.3 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--tinta-3); display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .7em; }
.antetitulo::before { counter-increment: fig; content: 'Fig. ' counter(fig); font: italic 1.125rem/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--arveja-osc); }
.titulo { font-size: clamp(2.5rem, 7vw, 4.75rem); }
.titulo em, h1 em { font-style: italic; color: var(--arveja-osc); }
.bajada { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--tinta-2); max-width: 46ch; }
.seccion { padding-block: clamp(72px, 11vw, 144px); }
.cabecera { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.oscura { background: var(--oliva) var(--grano); color: var(--crema); }
.oscura .antetitulo { color: rgba(222, 216, 202, .7); }
.oscura .antetitulo::before { color: var(--arveja-claro); }
.oscura .titulo em, .oscura h2 em { color: var(--arveja-claro); }
.oscura .bajada { color: rgba(222, 216, 202, .82); }

/* Texto que se enciende palabra por palabra con el scroll (lo arma el JS) */
.ilumina .palabra-luz { opacity: calc(.2 + var(--luz, 0) * .8); transition: opacity .25s linear; }

/* ---------- Botones: etiquetas de vivero ----------
   Rectángulo con punta a la derecha (hacia donde vas) y un ojal a la izquierda. */
.boton {
  --fondo: var(--oliva); --texto: var(--crema);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 36px 12px 34px; border: 0; border-radius: 0;
  background: var(--fondo); color: var(--texto); text-decoration: none; cursor: pointer;
  font: 500 1rem/1 var(--sans); letter-spacing: .01em;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  transition: background .25s, color .25s, transform .4s var(--curva);
  will-change: transform;
}
.boton::before { content: ''; position: absolute; left: 13px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--papel); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .18); }
.boton:hover { background: var(--oliva-osc); }
.boton:active { transform: scale(.97); }
.boton svg { width: 20px; height: 20px; flex: none; }
.boton--claro { --fondo: var(--crema); --texto: var(--oliva-osc); }
.boton--claro::before { background: var(--oliva-osc); box-shadow: none; opacity: .55; }
.boton--claro:hover { background: var(--blanco); }
/* La versión de borde es un rótulo cosido: rectángulo con costura punteada */
.boton--borde { clip-path: none; padding-inline: 24px; background: transparent; color: var(--oliva); box-shadow: inset 0 0 0 1.5px currentColor; }
.boton--borde::before { inset: 4px; left: 4px; top: 4px; width: auto; height: auto; margin: 0; border-radius: 0; background: none; box-shadow: none; border: 1px dashed currentColor; opacity: .45; }
.boton--borde:hover { background: var(--oliva); color: var(--crema); }
.oscura .boton--borde, .boton--borde-claro { clip-path: none; padding-inline: 24px; color: var(--crema); box-shadow: inset 0 0 0 1.5px rgba(222, 216, 202, .6); background: transparent; }
.boton--borde-claro::before { inset: 4px; width: auto; height: auto; margin: 0; border-radius: 0; background: none; box-shadow: none; border: 1px dashed currentColor; opacity: .4; }
.oscura .boton--borde:hover, .boton--borde-claro:hover { background: var(--crema); color: var(--oliva-osc); }
.boton--chico { min-height: 44px; padding: 10px 30px 10px 28px; font-size: .9375rem; }
.boton--chico::before { left: 11px; width: 6px; height: 6px; margin-top: -3px; }
.boton--borde.boton--chico::before { inset: 4px; width: auto; height: auto; margin: 0; }
.enlace-flecha { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.enlace-flecha span { transition: transform .35s var(--curva); }
.enlace-flecha:hover span { transform: translateX(4px); }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Sobre de semillas ----------
   Papel con borde picado arriba, rótulo con doble filete y campos de catálogo. */
.sobre { position: relative; background: var(--sobre) var(--grano); color: var(--tinta); padding: 26px 24px 22px; -webkit-mask: var(--picado); mask: var(--picado); box-shadow: 0 1px 0 var(--linea); }
.sobre__rotulo { display: flex; justify-content: space-between; gap: 12px; font: 500 .6875rem/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--tinta-3); padding-bottom: 10px; border-bottom: 3px double rgba(34, 37, 26, .35); margin-bottom: 14px; }
.sobre__rotulo b { font-weight: 600; color: var(--arveja-osc); }

/* ---------- Chip de calificación ---------- */
.nota-google { display: inline-flex; align-items: center; gap: 10px; font-size: .9375rem; color: inherit; text-decoration: none; }
.nota-google__num { font-family: var(--serif); font-size: 1.75rem; line-height: 1; }
.nota-google__estrellas { color: #e2b64a; letter-spacing: .08em; font-size: .9rem; }
.nota-google small { opacity: .8; font-size: .875rem; }

/* ---------- Banda de demo ---------- */
.demo-banda { background: var(--oliva-osc); color: rgba(222, 216, 202, .86); font-size: .8125rem; }
.demo-banda .contenedor { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 6px 18px; flex-wrap: wrap; text-align: center; padding-block: 6px; }
.demo-banda a { color: var(--arveja-claro); font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(200, 214, 143, .5); white-space: nowrap; }
.demo-banda a:hover { border-color: var(--arveja-claro); }
.demo-banda a[aria-current='page'] { display: none; }
.demo-banda__largo { display: none; }
@media (min-width: 640px) { .demo-banda__largo { display: inline; } }

/* ---------- Encabezado ---------- */
.encabezado { position: sticky; top: 0; z-index: 50; background: rgba(245, 242, 234, .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow .3s; }
.encabezado.con-sombra { box-shadow: 0 10px 30px -22px rgba(34, 37, 26, .5); }
.encabezado__fila { height: var(--alto-enc); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.marca { display: block; color: var(--oliva); text-decoration: none; view-transition-name: marca; }
.marca__logo { width: 112px; height: auto; }
.nav { display: none; }
.nav__lista { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav__lista a:not(.boton) { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; font-weight: 500; font-size: .9688rem; color: var(--tinta-2); transition: color .2s; }
.nav__lista a:not(.boton):hover { color: var(--tinta); }
.nav__lista a:not(.boton)::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 1.5px; background: var(--arveja); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--curva); }
.nav__lista a:not(.boton):hover::after, .nav__lista a[aria-current='page']:not(.boton)::after { transform: none; }
.nav__lista a[aria-current='page']:not(.boton) { color: var(--oliva); }
.nav__lista li:last-child { margin-left: 10px; }
.menu-boton { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 12px; border: 0; background: none; cursor: pointer; font-weight: 500; position: relative; z-index: 60; }
.menu-boton__icono { width: 26px; height: 12px; position: relative; display: block; }
.menu-boton__icono span { position: absolute; left: 0; right: 0; height: 1.75px; background: currentColor; border-radius: 2px; transition: transform .45s var(--curva), top .45s var(--curva); }
.menu-boton__icono span:first-child { top: 1px; }
.menu-boton__icono span:last-child { top: 9px; }
.menu-abierto .menu-boton__icono span:first-child { top: 5px; transform: rotate(45deg); }
.menu-abierto .menu-boton__icono span:last-child { top: 5px; transform: rotate(-45deg); }
@media (min-width: 960px) { .nav { display: block; } .menu-boton { display: none; } .marca__logo { width: 124px; } .planta { margin-right: 6px; } }

/* La arveja que rueda: un tallo bajo el encabezado que crece con el scroll; la arveja va adelante
   rodando y a su paso brotan tres hojitas. */
.tallo { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; overflow-x: clip; overflow-y: visible; }
.tallo__linea { position: absolute; inset: 0; background: var(--arveja); transform-origin: left; transform: scaleX(var(--avance, 0)); }
.tallo__arveja { position: absolute; left: 0; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #dbe7a6 0 18%, var(--arveja) 46%, var(--arveja-osc) 100%); box-shadow: 0 1px 2px rgba(34, 37, 26, .35); }
.tallo__arveja::after { content: ''; position: absolute; left: 7px; top: 5px; width: 3px; height: 1.5px; border-radius: 2px; background: rgba(38, 42, 25, .55); }
.tallo__hoja { position: absolute; left: var(--x); bottom: 1px; width: 11px; height: 7px; border-radius: 0 100% 0 100%; background: var(--arveja); transform-origin: 0 100%; transform: scale(0) rotate(-20deg); transition: transform .5s var(--curva); }
.tallo__hoja.brotada { transform: scale(1) rotate(-20deg); }
.menu-abierto .tallo { opacity: 0; }

/* Menú del celular: un panel oliva que baja como telón */
.menu-movil {
  position: fixed; inset: 0; z-index: 45; background: var(--oliva) var(--grano); color: var(--crema);
  padding: calc(var(--alto-enc) + 34px + 28px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--curva-telon), visibility 0s .7s;
}
.menu-abierto .menu-movil { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--curva-telon), visibility 0s; }
.menu-abierto .encabezado { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.menu-abierto .encabezado .marca, .menu-abierto .menu-boton { color: var(--crema); }
.menu-abierto body { overflow: hidden; }
.menu-movil ul { list-style: none; display: grid; gap: 2px; }
.menu-movil a { display: flex; align-items: baseline; gap: 16px; text-decoration: none; font-family: var(--serif); font-size: clamp(2.5rem, 11vw, 3.5rem); line-height: 1.15; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--curva); }
.menu-movil a span { font: italic 1.125rem var(--serif); color: var(--arveja-claro); min-width: 3.2em; }
.menu-movil a[aria-current='page'] { font-style: italic; color: var(--arveja-claro); }
.menu-abierto .menu-movil a { opacity: 1; transform: none; }
.menu-abierto .menu-movil li:nth-child(1) a { transition-delay: .18s; }
.menu-abierto .menu-movil li:nth-child(2) a { transition-delay: .23s; }
.menu-abierto .menu-movil li:nth-child(3) a { transition-delay: .28s; }
.menu-abierto .menu-movil li:nth-child(4) a { transition-delay: .33s; }
.menu-abierto .menu-movil li:nth-child(5) a { transition-delay: .38s; }
.menu-movil__pie { display: grid; gap: 10px; }
.menu-movil__frase { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: rgba(222, 216, 202, .7); }
.menu-movil .brote { width: 200px; margin: 0; color: var(--arveja-claro); }
.menu-movil .brote .brote__hoja { fill: var(--arveja); }
.js.menu-abierto .menu-movil .brote path { stroke-dashoffset: 0; transition-delay: .35s; }
.js.menu-abierto .menu-movil .brote .brote__hoja { fill-opacity: .35; transition-delay: 1.1s; }
@media (min-width: 960px) { .menu-movil { display: none; } }

/* ---------- Zarcillo divisor: se dibuja al aparecer ---------- */
.brote { width: min(520px, 78%); margin: 0 auto; color: var(--arveja-osc); overflow: visible; }
.brote path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.brote .brote__hoja { fill: var(--arveja-claro); fill-opacity: .55; }
.oscura .brote { color: var(--arveja-claro); }
.oscura .brote .brote__hoja { fill: var(--arveja); fill-opacity: .35; }
.js .brote path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--curva), fill-opacity .8s .9s; }
.js .brote .brote__hoja { fill-opacity: 0; }
.js .brote.visto path { stroke-dashoffset: 0; }
.js .brote.visto .brote__hoja { fill-opacity: .55; }
.js .oscura .brote.visto .brote__hoja { fill-opacity: .35; }
.brote-fila { padding-block: clamp(28px, 5vw, 56px) 0; }

/* ---------- Portadilla de las páginas internas ---------- */
.portadilla { position: relative; min-height: calc(var(--vh) * 72); display: grid; align-items: end; color: var(--crema); background: var(--oliva-osc); overflow: hidden; isolation: isolate; }
.portadilla__foto { position: absolute; inset: 0; z-index: -2; }
.portadilla__foto img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--curva); }
.cargada .portadilla__foto img { transform: none; }
.portadilla::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22, 24, 14, .15) 0%, rgba(22, 24, 14, 0) 35%, rgba(22, 24, 14, .72) 100%); }
.portadilla__texto { padding-block: 120px clamp(40px, 7vw, 88px); display: grid; gap: 18px; }
.portadilla .antetitulo { color: rgba(245, 242, 234, .8); }
.portadilla .antetitulo::before { color: var(--arveja-claro); }
.portadilla h1 { font-size: clamp(3rem, 11vw, 7rem); max-width: 14ch; view-transition-name: titulo; }
.portadilla h1 em { color: var(--arveja-claro); }
.portadilla .bajada { color: rgba(245, 242, 234, .88); }
.portadilla--simple { min-height: 0; background: transparent; color: var(--tinta); }
.portadilla--simple::after { display: none; }
.portadilla--simple .antetitulo { color: var(--tinta-3); }
.portadilla--simple .antetitulo::before { color: var(--arveja-osc); }
.portadilla--simple h1 em { color: var(--arveja-osc); }
.portadilla--simple .bajada { color: var(--tinta-2); }
.portadilla--simple .portadilla__texto { padding-block: clamp(56px, 9vw, 112px) clamp(28px, 4vw, 48px); }

/* ---------- Foto ---------- */
.foto { margin: 0; border-radius: var(--radio); overflow: hidden; background: var(--crema-2); }
.foto img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Opiniones: notas en papel con borde picado ---------- */
.citas { list-style: none; display: grid; gap: 14px; }
.cita { background: var(--blanco) var(--grano); padding: 30px 26px 22px; display: grid; gap: 16px; -webkit-mask: var(--picado); mask: var(--picado); }
.cita blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.375rem, 2.2vw, 1.625rem); line-height: 1.2; }
.cita__pie { font-size: .8125rem; color: var(--tinta-3); display: flex; gap: 8px; align-items: center; padding-top: 12px; border-top: 1px dashed var(--linea); }
.cita__pie::before { content: '★★★★★'; color: #c99a2e; letter-spacing: .06em; }
.oscura .cita { background: rgba(222, 216, 202, .09); }
.oscura .cita__pie { color: rgba(222, 216, 202, .7); border-color: var(--linea-clara); }
@media (min-width: 900px) { .citas { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Llamado final ---------- */
.llamado { position: relative; color: var(--crema); background: var(--oliva-osc); overflow: hidden; isolation: isolate; text-align: center; }
.llamado__foto { position: absolute; inset: 0; z-index: -2; }
.llamado__foto img { width: 100%; height: 100%; object-fit: cover; object-position: var(--encuadre, 50% 50%); }
.llamado::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(28, 31, 18, .58); }
.llamado__texto { padding-block: clamp(96px, 14vw, 180px); display: grid; justify-items: center; gap: 22px; }
.llamado h2 { font-size: clamp(3.25rem, 12vw, 8rem); }
.llamado h2 em { color: var(--arveja-claro); }
.llamado p { max-width: 42ch; color: rgba(245, 242, 234, .88); font-size: 1.125rem; }
.llamado .acciones { justify-content: center; }

/* ---------- Botón flotante: etiqueta de vivero colgando ---------- */
.flotante {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 30px 0 34px;
  background: var(--oliva); color: var(--crema); text-decoration: none; font-weight: 500;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  filter: drop-shadow(0 12px 20px rgba(22, 24, 14, .45));
  transform: translateY(140%); transition: transform .55s var(--curva), background .2s;
}
.flotante::before { content: ''; position: absolute; left: 13px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--papel); }
.flotante svg { width: 24px; height: 24px; color: var(--arveja-claro); }
.flotante:hover { background: var(--oliva-osc); }
.flotante.visible { transform: none; }
.menu-abierto .flotante { transform: translateY(140%); }

/* ---------- La planta que crece con la visita ----------
   Abajo a la izquierda. Cada página nueva que visitás le suma una etapa: brote, hojas, zarcillo,
   flor y vaina. */
.planta { position: relative; flex: none; margin-left: auto; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: var(--sobre) var(--grano); box-shadow: inset 0 0 0 1px var(--linea); cursor: pointer; display: grid; place-items: center; transition: transform .4s var(--curva); }
.planta[hidden] { display: none; }
.planta:hover { transform: translateY(-2px); }
.planta svg { width: 32px; height: 32px; overflow: visible; }
.planta path, .planta circle, .planta ellipse { stroke: var(--arveja-osc); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.planta .pl-tierra { stroke: var(--tinta-3); }
.planta .pl-hoja { fill: var(--arveja-claro); }
.planta .pl-flor { fill: #f4eef8; stroke: #9a86b5; }
.planta .pl-vaina { fill: var(--arveja); }
.planta .pl-tallo, .planta .pl-zarcillo { fill: none; }
.planta [class*='pl-e'] { opacity: 0; transform: scale(.3); transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .5s, transform .9s var(--curva); }
.planta[data-etapa='1'] .pl-e1,
.planta[data-etapa='2'] :is(.pl-e1, .pl-e2),
.planta[data-etapa='3'] :is(.pl-e1, .pl-e2, .pl-e3),
.planta[data-etapa='4'] :is(.pl-e1, .pl-e2, .pl-e3, .pl-e4),
.planta[data-etapa='5'] :is(.pl-e1, .pl-e2, .pl-e3, .pl-e4, .pl-e5) { opacity: 1; transform: none; }
.planta.crecio { animation: planta-crece 1s var(--curva); }
@keyframes planta-crece { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.2); } 60% { transform: scale(.96); } }
.planta__cuenta { position: absolute; right: -6px; top: -3px; min-width: 20px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--oliva); color: var(--crema); font: 600 .5625rem/16px var(--sans); text-align: center; }
.planta__globo { position: absolute; right: var(--gutter); top: calc(100% + 10px); z-index: 41; width: min(300px, calc(100vw - 32px)); padding: 18px 18px 16px; background: var(--sobre) var(--grano); color: var(--tinta); filter: drop-shadow(0 18px 30px rgba(22, 24, 14, .35)); display: grid; gap: 10px; font-size: .9375rem; line-height: 1.45; -webkit-mask: var(--picado); mask: var(--picado); }
.planta__globo[hidden] { display: none; }
.planta__globo strong { font: italic 1.375rem/1.1 var(--serif); font-weight: 400; }
.planta__globo ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.planta__globo a { display: inline-block; padding: 5px 10px; border: 1px dashed rgba(34, 37, 26, .35); text-decoration: none; font-size: .875rem; font-weight: 500; }
.planta__globo a:hover { background: var(--blanco); }
.planta__cerrar { position: absolute; right: 6px; top: 8px; width: 34px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 1rem; color: var(--tinta-3); }
.menu-abierto .planta, .menu-abierto .planta__globo { opacity: 0; pointer-events: none; }

/* ---------- Pie ---------- */
.pie { background: var(--oliva-osc) var(--grano); color: rgba(222, 216, 202, .85); padding-block: clamp(56px, 8vw, 96px) 28px; font-size: .9688rem; }
.pie__grilla { display: grid; gap: 36px; }
.marca--pie { color: var(--crema); }
.marca--pie .marca__logo { width: 168px; }
.pie__frase { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.2; color: var(--crema); margin-top: 22px; max-width: 18ch; }
.pie__col { display: grid; gap: 10px; align-content: start; }
.pie__rotulo { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--arveja-claro); font-weight: 500; }
.pie__enlace { color: var(--crema); text-decoration: none; border-bottom: 1px solid rgba(222, 216, 202, .35); justify-self: start; }
.pie__enlace:hover { border-color: var(--crema); }
.pie__legal { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--linea-clara); font-size: .8125rem; color: rgba(222, 216, 202, .6); display: grid; gap: 8px; }
.pie__legal a { color: inherit; }
@media (min-width: 760px) { .pie__grilla { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.pie { padding-bottom: calc(28px + 84px); }

/* ---------- Apariciones ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--curva), transform 1s var(--curva); transition-delay: var(--delay, 0ms); }
.js [data-reveal].visto { opacity: 1; transform: none; }
.js [data-reveal='foto'] { opacity: 1; transform: none; clip-path: inset(12% 0 0 0); transition: clip-path 1.2s var(--curva); }
.js [data-reveal='foto'] img { transform: scale(1.12); transition: transform 1.6s var(--curva); }
.js [data-reveal='foto'].visto { clip-path: inset(0 0 0 0); }
.js [data-reveal='foto'].visto img { transform: none; }

/* ---------- Visor de fotos ---------- */
.visor { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 22, 13, .95); color: var(--crema); }
.visor[open] { display: grid; grid-template-rows: auto 1fr auto; animation: visor-entra .35s var(--curva); }
.visor::backdrop { background: transparent; }
.visor__barra, .visor__pie { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter); }
.visor__cuenta { font-size: .875rem; letter-spacing: .1em; opacity: .8; }
.visor__cerrar, .visor__flecha { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(222, 216, 202, .12); color: var(--crema); cursor: pointer; font-size: 1.125rem; transition: background .2s; }
.visor__cerrar:hover, .visor__flecha:hover { background: rgba(222, 216, 202, .24); }
.visor__escena { display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.visor__escena img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 2px; }
.visor__texto { font-family: var(--serif); font-style: italic; font-size: 1.25rem; text-align: center; }
@keyframes visor-entra { from { opacity: 0; } }

/* ---------- Nota de demo ---------- */
.nota-demo { border: 0; padding: 0; max-width: min(460px, calc(100% - 32px)); background: var(--sobre) var(--grano); color: var(--tinta); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.nota-demo::backdrop { background: rgba(20, 22, 13, .6); backdrop-filter: blur(4px); }
.nota-demo__cuerpo { padding: 30px; display: grid; gap: 14px; justify-items: start; }
.nota-demo h2 { font-size: 2.25rem; }
.nota-demo__texto { color: var(--tinta-2); }
.nota-demo .boton { margin-top: 8px; }

/* ---------- Transiciones entre páginas: la página nueva brota ----------
   La página que llega aparece a través de un ramo de hojas de arveja que crece desde abajo hasta
   cubrir la pantalla; la que se va se achica y oscurece un poco. */
@view-transition { navigation: auto; }
::view-transition-group(root) { animation-duration: .9s; }
::view-transition-old(root) { animation: vt-sale .9s var(--curva-telon) both; }
::view-transition-new(root) {
  -webkit-mask: url('../img/hojas-mascara.svg') 50% 88% / 4% auto no-repeat;
  mask: url('../img/hojas-mascara.svg') 50% 88% / 4% auto no-repeat;
  animation: vt-brota .9s var(--curva-telon) both;
}
::view-transition-group(marca) { animation-duration: .6s; }
::view-transition-group(titulo) { animation-duration: .7s; animation-timing-function: var(--curva); }
@keyframes vt-sale { to { transform: scale(.94); filter: brightness(.6); } }
@keyframes vt-brota {
  from { -webkit-mask-size: 4% auto; mask-size: 4% auto; }
  to { -webkit-mask-size: 720% auto; mask-size: 720% auto; }
}


/* ---------- Palabras escritas a mano ----------
   Una palabra clave por página, en letra manuscrita. Al aparecer se "escribe": una máscara de borde
   blando avanza de izquierda a derecha y después se dibuja el subrayado. Es texto real (lo lee el lector
   de pantalla y se puede copiar). Sin JS o con "reducir movimiento" ya está escrita. */
@property --tinta-avance { syntax: '<percentage>'; inherits: false; initial-value: 120%; }
.a-mano {
  font-family: var(--mano); font-style: normal; font-weight: 500; font-size: 1.16em; line-height: .8; letter-spacing: 0;
  /* --ancho lo anota scripts/medir-a-mano.mjs: el lugar queda reservado antes de que llegue la letra */
  display: inline-block; width: var(--ancho, auto); white-space: nowrap; rotate: -2.5deg; padding: 0 .1em .12em; margin: 0 -.04em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9c40-5 90-7 150-5 16 .5 30 1.6 44 3' fill='none' stroke='%238da24a' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") 0 100% / 100% .26em no-repeat;
  -webkit-mask: linear-gradient(90deg, #000 calc(var(--tinta-avance) - 14%), transparent var(--tinta-avance));
  mask: linear-gradient(90deg, #000 calc(var(--tinta-avance) - 14%), transparent var(--tinta-avance));
}
.js .a-mano { --tinta-avance: 0%; }
.js .a-mano.escrito { --tinta-avance: 120%; transition: --tinta-avance var(--dur-mano, 1s) cubic-bezier(.45, .1, .4, 1) .1s; }

/* ---------- Etiquetas que se hamacan ----------
   Los botones cuelgan del ojal: al pasar el mouse o tocarlos se balancean y se frenan solos. Usa la
   propiedad rotate, que no pisa el transform del efecto imán ni el de apretar. */
.boton { transform-origin: 17px 50%; }
.boton.hamaca { animation: hamaca 1.15s cubic-bezier(.3, .6, .4, 1); }
@keyframes hamaca {
  0% { rotate: 0deg; } 16% { rotate: -6.5deg; } 36% { rotate: 4.2deg; } 56% { rotate: -2.4deg; } 76% { rotate: 1deg; } 100% { rotate: 0deg; }
}

/* ---------- Cursor de hoja (escritorio) ----------
   La punta de la hoja es el punto exacto del puntero (no se atrasa); solo el giro sigue al movimiento.
   Sobre enlaces y botones crece y se pone verde; sobre fotos que se agrandan es una lupa; sobre lo que se
   arrastra muestra las flechas. En campos de texto vuelve el cursor del sistema. */
.con-cursor, .con-cursor * { cursor: none !important; }
.con-cursor input:not([type='checkbox']):not([type='radio']), .con-cursor textarea, .con-cursor select { cursor: auto !important; }
.cursor-hoja { position: fixed; left: 0; top: 0; z-index: 400; width: 30px; height: 30px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.cursor-hoja.visible { opacity: 1; }
.cursor-hoja svg { width: 100%; height: 100%; overflow: visible; transform-origin: 2px 2px; transition: transform .35s var(--curva); }
.cursor-hoja .ch-hoja { fill: var(--arveja-claro); stroke: var(--oliva-osc); stroke-width: 1.4; stroke-linejoin: round; transition: fill .25s; }
.cursor-hoja .ch-nervio { fill: none; stroke: var(--oliva-osc); stroke-width: 1.1; stroke-linecap: round; }
.cursor-hoja .ch-lupa, .cursor-hoja .ch-flechas { opacity: 0; transition: opacity .2s; fill: none; stroke: var(--oliva-osc); stroke-width: 1.6; stroke-linecap: round; }
.cursor-hoja .ch-lupa circle { fill: rgba(245, 242, 234, .85); }
.cursor-hoja.enlace svg { transform: scale(1.3) rotate(-12deg); }
.cursor-hoja.enlace .ch-hoja { fill: var(--arveja); }
.cursor-hoja.lupa .ch-hoja, .cursor-hoja.lupa .ch-nervio, .cursor-hoja.arrastra .ch-nervio { opacity: 0; }
.cursor-hoja.lupa .ch-lupa { opacity: 1; }
.cursor-hoja.arrastra .ch-hoja { fill: var(--crema); }
.cursor-hoja.arrastra .ch-flechas { opacity: 1; }
.cursor-hoja.apretado svg { transform: scale(.82); }

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js [data-reveal='foto'], .js [data-reveal='foto'] img { opacity: 1; transform: none; clip-path: none; }
  .js .brote path { stroke-dashoffset: 0; }
  .js .brote .brote__hoja { fill-opacity: .55; }
  .ilumina .palabra-luz { opacity: 1; }
  .js .a-mano { --tinta-avance: 120%; }
  @view-transition { navigation: none; }
}
