/* ==========================================================================
   Lucía Arredondo · Nutrición integral (plantilla demo)
   Dirección de arte: docs/design-dna.json · Textos: docs/contenido.md

   PERSONALIZAR: los colores y tipografías de la marca viven en :root.
   Cambiar esos tokens cambia toda la página.
   ========================================================================== */

/* ---------- Fuentes (autoalojadas, licencia OFL) ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/newsreader-normal-400-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/newsreader-italic-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Paleta: oliva, papel, salvia y jitomate */
  --olive-950: #161d12;
  --olive-900: #1c2416;
  --olive-800: #222d1b;
  --olive-700: #2e3a25;
  --olive-600: #4a5a3a;
  --olive-300: #b9c2a8;
  --sage-200: #d9dfcb;
  --sage-300: #c5cfb3;
  --paper-50: #f8f9f3;
  --paper-100: #f1f2ea;
  --paper-200: #e3e5d9;
  --blush-100: #f4e3da;
  --tomato-700: #9e3820;
  --tomato-600: #ad3e24;
  --tomato-500: #c04a2d;
  --tomato-300: #ee8b67;
  --error: #a3261b;
  --error-on-dark: #ffb59c;

  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Tipografía fluida */
  --t-display: clamp(4.25rem, 0.6rem + 15.2vw, 17rem);
  --t-h1: clamp(2.6rem, 1.3rem + 4.4vw, 5.6rem);
  --t-h2: clamp(2.15rem, 1.3rem + 2.9vw, 4rem);
  --t-h3: clamp(1.45rem, 1.15rem + 1vw, 2.1rem);
  --t-lead: clamp(1.125rem, 1.02rem + 0.35vw, 1.3rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-caption: 0.8125rem;
  --t-over: 0.75rem;

  /* Espaciado (base 4px) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px; --s-11: 160px;
  --section: clamp(4.5rem, 3rem + 7vw, 10rem);
  --margin: clamp(20px, 5vw, 72px);
  --gutter: clamp(16px, 2.5vw, 32px);
  --max: 1360px;
  --measure: 62ch;
  --header-h: 64px;

  /* Forma */
  --r-s: 6px; --r-m: 12px; --r-l: 24px; --r-pill: 999px;

  /* Profundidad (sombras teñidas de oliva) */
  --e1: 0 1px 2px rgb(28 36 22 / 0.06), 0 2px 6px rgb(28 36 22 / 0.05);
  --e2: 0 6px 16px -4px rgb(28 36 22 / 0.14), 0 2px 4px rgb(28 36 22 / 0.06);
  --e3: 0 28px 56px -16px rgb(28 36 22 / 0.3), 0 10px 20px -10px rgb(28 36 22 / 0.16);

  /* Movimiento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --d-micro: 160ms;
  --d-normal: 260ms;
  --d-macro: 700ms;

  /* Capas */
  --z-cover-far: 1;
  --z-cover-mid: 2;
  --z-cover-near: 3;
  --z-cover-copy: 4;
  --z-float: 40;
  --z-header: 50;
  --z-grain: 60;
}

/* Cada capítulo define su fondo; los tokens de tinta cambian con él y se reasigna `color`. */
[data-ground="sage"]  { --ground: var(--sage-200);  --ink: var(--olive-900); --ink-soft: var(--olive-600); --accent: var(--tomato-600); --accent-text: var(--tomato-700); --on-accent: var(--paper-100); --rule: rgb(28 36 22 / 0.18); --field: rgb(248 249 243 / 0.55); color: var(--ink); }
[data-ground="paper"] { --ground: var(--paper-100); --ink: var(--olive-900); --ink-soft: var(--olive-600); --accent: var(--tomato-600); --accent-text: var(--tomato-700); --on-accent: var(--paper-100); --rule: rgb(28 36 22 / 0.16); --field: var(--paper-50); color: var(--ink); }
[data-ground="blush"] { --ground: var(--blush-100); --ink: var(--olive-900); --ink-soft: var(--olive-600); --accent: var(--tomato-600); --accent-text: var(--tomato-700); --on-accent: var(--paper-100); --rule: rgb(28 36 22 / 0.16); --field: var(--paper-50); color: var(--ink); }
[data-ground="olive"] { --ground: var(--olive-800); --ink: var(--paper-100); --ink-soft: var(--olive-300); --accent: var(--tomato-300); --accent-text: var(--tomato-300); --on-accent: var(--olive-950); --rule: rgb(241 242 234 / 0.18); --field: rgb(241 242 234 / 0.06); color: var(--ink); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--paper-100);
  color: var(--olive-900);
  font-family: var(--font-text);
  font-size: var(--t-body);
  line-height: 1.6;
  font-kerning: normal;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Grano de papel: fijo, sin eventos, nunca sobre contenedores que hacen scroll */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  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%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
}
h2 { font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.022em; }
h3 { font-size: var(--t-h3); line-height: 1.12; letter-spacing: -0.012em; }
p, li { text-wrap: pretty; }
em { font-style: italic; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
strong { font-weight: 600; }
::selection { background: var(--tomato-600); color: var(--paper-100); }
:focus-visible {
  outline: 2px solid var(--accent, var(--tomato-600));
  outline-offset: 3px;
  border-radius: 4px;
}
input, select, textarea, button { font: inherit; color: inherit; }
button { cursor: pointer; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: var(--s-3); left: var(--s-3);
  z-index: calc(var(--z-header) + 1);
  padding: var(--s-3) var(--s-4);
  background: var(--olive-900);
  color: var(--paper-100);
  border-radius: var(--r-s);
  transform: translateY(-160%);
  transition: transform var(--d-normal) var(--ease-out);
}
.skip:focus-visible { transform: none; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.icon--lg { width: 32px; height: 32px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--margin) * 2);
  margin-inline: auto;
  padding-inline: var(--margin);
}
.chapter {
  position: relative;
  background: var(--ground);
  padding-block: var(--section);
  overflow-x: clip; /* las capas del plato y los ingredientes entran desde fuera: nunca ensanchan la página */
}
.label {
  font-family: var(--font-text);
  font-size: var(--t-over);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.sample { color: var(--ink-soft); font-size: 0.85em; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 52px;
  padding: 0 var(--s-6);
  border: 0;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: var(--e1);
  transition: background-color var(--d-micro) var(--ease-out), transform var(--d-micro) var(--ease-out), box-shadow var(--d-normal) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --btn-bg: color-mix(in srgb, var(--accent) 88%, var(--olive-950)); box-shadow: var(--e2); }
}
.btn--sm { min-height: 40px; padding: 0 var(--s-5); font-size: 0.875rem; }
.btn--lg { min-height: 58px; padding: 0 var(--s-7); font-size: 1.0625rem; }
.btn--light { --btn-bg: var(--accent); --btn-fg: var(--on-accent); }
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .btn--outline:hover { --btn-bg: var(--ink); --btn-fg: var(--ground); box-shadow: none; }
}
.btn .icon { width: 1.3em; height: 1.3em; }

/* ---------- Folio (navegación fija) ---------- */
.folio {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-4);
  padding-inline: var(--margin);
  color: var(--ink);
  background: transparent;
  transition: background-color var(--d-normal) var(--ease-out), color var(--d-normal) var(--ease-out), box-shadow var(--d-normal) var(--ease-out);
}
.folio.is-solid {
  background: var(--ground);
  box-shadow: 0 1px 0 var(--rule);
}
.folio__brand {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-3);
  text-decoration: none;
  justify-self: start;
}
.folio__name { font-family: var(--font-display); font-size: 1.375rem; line-height: 1; letter-spacing: -0.01em; }
.folio__role { font-size: var(--t-caption); color: var(--ink-soft); letter-spacing: 0.02em; }
.folio__chapter {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.folio__chapter span { display: inline-block; transition: opacity var(--d-normal) var(--ease-out), transform var(--d-normal) var(--ease-out); }
.folio__chapter.is-changing span { opacity: 0; transform: translateY(6px); }
.folio__actions { display: flex; align-items: center; gap: var(--s-3); justify-self: end; }
.folio__index {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 40px;
  padding: 0 var(--s-4);
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--rule);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color var(--d-micro) var(--ease-out), transform var(--d-micro) var(--ease-out);
}
.folio__index:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .folio__index:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
}
@media (max-width: 899px) {
  :root { --header-h: 56px; }
  .folio { grid-template-columns: 1fr auto; }
  .folio__chapter, .folio__cta { display: none; }
  .folio__role { display: none; }
}

/* ---------- Índice (dialog) ---------- */
.indice {
  --ground: var(--olive-800);
  --ink: var(--paper-100);
  --ink-soft: var(--olive-300);
  --accent: var(--tomato-300);
  --on-accent: var(--olive-950);
  --rule: rgb(241 242 234 / 0.18);
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ground);
  color: var(--ink);
}
.indice::backdrop { background: rgb(22 29 18 / 0.4); }
.indice[open] { animation: indice-in 420ms var(--ease-out); }
@keyframes indice-in {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}
.indice__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--s-7);
  padding: var(--s-4) var(--margin) var(--s-8);
  max-width: calc(var(--max) + var(--margin) * 2);
  margin-inline: auto;
}
.indice__top { display: flex; justify-content: space-between; align-items: center; min-height: calc(var(--header-h) - var(--s-4)); }
.indice__title { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--ink-soft); }
.indice__close {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 40px; padding: 0 var(--s-4);
  border: 0; border-radius: var(--r-pill);
  background: transparent; box-shadow: inset 0 0 0 1px var(--rule);
  font-size: 0.875rem; font-weight: 600;
}
.indice__list { display: grid; }
.indice__list a {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  align-items: baseline;
  gap: var(--s-4);
  padding-block: clamp(10px, 1.6vh, 18px);
  border-top: 1px solid var(--rule);
  text-decoration: none;
}
.indice__list li:last-child a { border-bottom: 1px solid var(--rule); }
.indice__num { font-size: var(--t-caption); color: var(--ink-soft); letter-spacing: 0.04em; }
.indice__name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  transition: transform var(--d-normal) var(--ease-out), color var(--d-micro) var(--ease-out);
}
.indice__list a[aria-current="true"] .indice__name { color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .indice__list a:hover .indice__name { transform: translateX(10px); font-style: italic; }
}
.indice .btn { align-self: flex-start; }

/* ---------- Animación al aparecer ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--d-macro) var(--ease-out), transform var(--d-macro) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* El recorte va en la imagen: un contenedor recortado al 100% no lo detecta IntersectionObserver */
.js [data-reveal="clip"] { opacity: 1; transform: none; background: transparent; }
.js [data-reveal="clip"] img {
  clip-path: inset(100% 0 0 0);
  transform: scale(1.08);
  transition: clip-path 1000ms var(--ease-out), transform 1400ms var(--ease-out);
}
.js [data-reveal="clip"].is-in img { clip-path: inset(0); transform: none; }

.media { overflow: hidden; border-radius: var(--r-s); background: color-mix(in srgb, var(--ink) 8%, var(--ground)); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   0. Portada: revista en capas (titular detrás de Lucía, ingredientes delante)
   ========================================================================== */
.cover {
  --p: 0;
  --mx: 0;
  --my: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  overflow: clip;
  isolation: isolate;
}
.cover__strip {
  position: absolute;
  top: calc(var(--header-h) + var(--s-4));
  left: 50%;
  translate: -50% 0;
  z-index: var(--z-cover-copy);
  font-size: var(--t-over);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.cover__title { font-weight: 400; }
.cover__mast {
  position: absolute;
  top: calc(var(--header-h) + clamp(2.6rem, 5.5vh, 4.5rem));
  left: 50%;
  z-index: var(--z-cover-far);
  translate: -50% 0;
  font-size: var(--t-display);
  line-height: 0.82;
  letter-spacing: -0.045em;
  white-space: nowrap;
  color: var(--olive-900);
  transform: translate3d(calc(var(--mx) * -6px), calc(var(--p) * 26vh + var(--my) * -4px), 0) scale(calc(1 - var(--p) * 0.05));
  transform-origin: 50% 0;
}
.cover__subject {
  position: absolute;
  bottom: 0;
  left: 58%;
  z-index: var(--z-cover-mid);
  height: min(76svh, 980px);
  aspect-ratio: 618 / 1016;
  translate: -50% 0;
  transform: translate3d(calc(var(--mx) * 8px), calc(var(--p) * 10vh), 0);
}
.cover__subject img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.cover__fg {
  position: absolute;
  inset: 0;
  z-index: var(--z-cover-near);
  pointer-events: none;
  transform: translate3d(calc(var(--mx) * 18px), calc(var(--p) * -34vh + var(--my) * 10px), 0);
}
.fg {
  position: absolute;
  width: var(--w);
  height: auto;
  rotate: var(--r, 0deg);
  filter: drop-shadow(0 22px 26px rgb(28 36 22 / 0.28)) drop-shadow(0 4px 6px rgb(28 36 22 / 0.16));
}
.fg--jitomate { --w: clamp(96px, 10.5vw, 190px); --r: -8deg; left: 9vw; top: 44%; }
.fg--limon { --w: clamp(70px, 7.2vw, 132px); --r: 14deg; right: 9vw; top: 21%; }
.fg--chile { --w: clamp(110px, 12vw, 220px); --r: -24deg; left: 63%; bottom: 7%; }
.fg--aguacate { --w: clamp(130px, 15vw, 270px); --r: 10deg; right: -1.5vw; bottom: 16%; }
.cover {
  display: grid;
  grid-template-rows: 1fr auto auto;
  padding: 0 var(--margin) clamp(2.5rem, 7vh, 5.5rem);
}
.cover__title { grid-row: 2; }
.cover__tail {
  position: relative;
  z-index: var(--z-cover-copy);
  display: block;
  max-width: 9.5em;
  font-size: var(--t-h1);
  font-style: italic;
  line-height: 1.04;
  letter-spacing: -0.02em;
  padding-bottom: 0.08em;
}
.cover__copy {
  grid-row: 3;
  position: relative;
  z-index: var(--z-cover-copy);
  display: grid;
  justify-items: start;
  gap: var(--s-5);
  margin-top: var(--s-4);
  max-width: min(29rem, 36vw);
}
.cover__lede { font-size: var(--t-lead); line-height: 1.5; color: var(--ink); max-width: 26em; }

/* Entrada: espera a que todas las capas estén listas (clase .is-ready la pone JS) */
.js .cover .cover__mast,
.js .cover .cover__subject,
.js .cover .fg,
.js .cover .cover__tail,
.js .cover .cover__copy,
.js .cover .cover__strip { opacity: 0; }
.js .cover.is-ready .cover__mast { animation: rise 1100ms var(--ease-out) both; }
.js .cover.is-ready .cover__subject { animation: rise-soft 1300ms var(--ease-out) 120ms both; }
.js .cover.is-ready .fg { animation: drop 1200ms var(--ease-out) both; animation-delay: calc(380ms + var(--d, 0) * 110ms); }
.js .cover.is-ready .cover__strip,
.js .cover.is-ready .cover__tail,
.js .cover.is-ready .cover__copy { animation: fade-up 900ms var(--ease-out) 520ms both; }
.fg--jitomate { --d: 0; } .fg--limon { --d: 1; } .fg--chile { --d: 2; } .fg--aguacate { --d: 3; }
@keyframes rise { from { opacity: 0; clip-path: inset(100% 0 -10% 0); } to { opacity: 1; clip-path: inset(-10% 0 -10% 0); } }
@keyframes rise-soft { from { opacity: 0; translate: -50% 36px; } to { opacity: 1; translate: -50% 0; } }
@keyframes drop { from { opacity: 0; scale: 1.18; } to { opacity: 1; scale: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 899px) {
  .cover__strip { top: calc(var(--header-h) + var(--s-3)); font-size: 0.6875rem; letter-spacing: 0.12em; }
  .cover__mast {
    top: calc(var(--header-h) + 2.6rem);
    font-size: clamp(3.5rem, 18.5vw, 10rem);
    letter-spacing: -0.04em;
  }
  .cover__subject {
    left: 50%;
    height: min(80svh, 900px);
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 66%);
    mask-image: linear-gradient(to bottom, #000 40%, transparent 66%);
  }
  .cover { padding-bottom: var(--s-6); }
  .cover__tail { font-size: clamp(2.3rem, 9.6vw, 3.4rem); max-width: none; }
  .cover__copy { max-width: none; gap: var(--s-4); margin-top: var(--s-3); }
  .cover__lede { font-size: 1.0625rem; max-width: 30em; }
  .fg--jitomate { --w: 22vw; left: -3vw; top: 47%; }
  .fg--limon { --w: 16vw; right: 2vw; top: 33%; }
  .fg--chile { display: none; }
  .fg--aguacate { --w: 26vw; right: -6vw; top: 52%; bottom: auto; }
}
@media (max-width: 899px) and (max-height: 700px) {
  .cover__lede { display: none; }
}

/* ==========================================================================
   1. ¿Te suena? (silencio antes del clímax: solo tipografía)
   ========================================================================== */
.suena { padding-block: calc(var(--section) * 1.1); }
.suena__title { font-size: var(--t-h1); line-height: 0.98; letter-spacing: -0.03em; margin-bottom: var(--s-8); }
.suena__list {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(var(--s-6), 5vh, var(--s-8));
}
.suena__q {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--t-h3);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 20ch;
}
.suena__q--1 { grid-column: 1 / span 6; }
.suena__q--2 { grid-column: 8 / span 5; }
.suena__q--3 { grid-column: 3 / span 6; }
.suena__q--4 { grid-column: 7 / span 6; max-width: 24ch; }
.suena__q--5 { grid-column: 1 / span 6; }
.suena__q--6 { grid-column: 6 / span 6; }
.suena__bridge {
  margin-top: clamp(var(--s-9), 14vh, var(--s-11));
  max-width: 22em;
  margin-left: auto;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.suena__bridge em { color: var(--accent-text); }
@media (max-width: 767px) {
  .suena__list { grid-template-columns: 1fr; }
  .suena__q { grid-column: 1 !important; }
  .suena__q:nth-child(even) { justify-self: end; text-align: right; }
}

/* ==========================================================================
   2. El método: el plato que se arma (clímax)
   ========================================================================== */
.metodo { padding-bottom: var(--section); }
.metodo__head { max-width: 40rem; display: grid; gap: var(--s-5); }
.metodo__head h2 { font-size: var(--t-h1); line-height: 0.98; letter-spacing: -0.03em; }
.metodo__lede { font-size: var(--t-lead); color: var(--ink-soft); max-width: 34em; }

.metodo__scrolly {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  margin-top: var(--s-8);
}
.metodo__stage {
  grid-column: 6 / -1;
  grid-row: 1;
  position: sticky;
  top: var(--header-h);
  align-self: start;
  height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--s-5);
}
.metodo__steps { grid-column: 1 / span 5; grid-row: 1; padding-block: 18svh 30svh; }
.plate {
  position: relative;
  width: min(100%, calc(100svh - var(--header-h) - 9rem));
  aspect-ratio: 1;
}
.plate img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.plate__base {
  -webkit-mask-image: radial-gradient(closest-side, #000 76%, transparent 99%);
  mask-image: radial-gradient(closest-side, #000 76%, transparent 99%);
}
.plate__layer {
  --e: 1;
  --dx: 0%; --dy: 0%; --rot: 0deg;
  transform: translate3d(calc((1 - var(--e)) * var(--dx)), calc((1 - var(--e)) * var(--dy)), 0) rotate(calc((1 - var(--e)) * var(--rot))) scale(calc(1 + (1 - var(--e)) * 0.08));
  opacity: clamp(0, calc(var(--e) * 2.5), 1);
  filter: drop-shadow(0 calc((1 - var(--e)) * 30px + 2px) calc((1 - var(--e)) * 24px + 3px) rgb(10 14 8 / 0.35));
  will-change: transform, opacity;
}
.js .plate__layer { --e: 0; }
.plate__layer[data-layer="verduras"] { --dx: -46%; --dy: 8%; --rot: -14deg; }
.plate__layer[data-layer="cereales"] { --dx: 34%; --dy: -40%; --rot: 12deg; }
.plate__layer[data-layer="leguminosas"] { --dx: 42%; --dy: 30%; --rot: 9deg; }
.plate__layer[data-layer="animal"] { --dx: 8%; --dy: 52%; --rot: -8deg; }
.plate__layer[data-layer="aguacate"] { --dx: 0%; --dy: -34%; --rot: 22deg; }
.plate__layer[data-layer="agua"] { --dx: 30%; --dy: -30%; --rot: 0deg; }

.plate-legend {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: var(--s-2) var(--s-6);
  font-size: var(--t-small);
  color: var(--ink-soft);
}
.plate-legend li { display: flex; align-items: center; gap: var(--s-2); transition: color var(--d-normal) var(--ease-out); }
.plate-legend .icon {
  width: 18px; height: 18px;
  color: var(--accent);
  opacity: 0.2;
  transform: scale(0.7);
  transition: opacity var(--d-normal) var(--ease-out), transform var(--d-normal) var(--ease-out);
}
.plate-legend li.is-in { color: var(--ink); }
.plate-legend li.is-in .icon { opacity: 1; transform: none; }

.step {
  min-height: 62svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-4);
  max-width: 30rem;
  transition: opacity var(--d-macro) var(--ease-out);
}
.js .step { opacity: 0.6; }
.js .step.is-active { opacity: 1; }
.step__title { font-size: var(--t-h2); line-height: 1.04; letter-spacing: -0.02em; }
.step p { font-size: var(--t-lead); line-height: 1.55; color: var(--ink); }

.metodo__close {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--s-6);
  padding-top: var(--s-9);
}
.metodo__resolve { font-family: var(--font-display); font-size: var(--t-h1); line-height: 1; letter-spacing: -0.03em; }
.metodo__resolve em { color: var(--accent); display: inline-block; padding-bottom: 0.08em; }
.metodo__source { max-width: 40em; font-size: var(--t-caption); color: var(--ink-soft); }

@media (max-width: 899px) {
  .metodo__scrolly { grid-template-columns: 1fr; margin-top: var(--s-6); }
  .metodo__stage {
    grid-column: 1;
    height: auto;
    z-index: 2;
    padding-block: var(--s-3) var(--s-4);
    background: var(--ground);
    margin-inline: calc(var(--margin) * -1);
    box-shadow: 0 18px 18px -12px var(--ground);
  }
  .plate { width: min(82vw, 40svh); }
  .plate-legend { grid-template-columns: repeat(2, auto); gap: 2px var(--s-5); font-size: 0.75rem; padding-inline: var(--margin); white-space: nowrap; }
  .plate-legend .icon { width: 14px; height: 14px; }
  .metodo__steps { grid-column: 1; grid-row: 2; padding-block: 4svh 18svh; }
  .step { min-height: 46svh; }
  .step__title { font-size: clamp(1.75rem, 7.2vw, 2.4rem); }
  .step p { font-size: 1.0625rem; }
}

/* ==========================================================================
   3. Quién soy (retrato + detalle superpuesto)
   ========================================================================== */
.sobre__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
}
.sobre__portrait { grid-column: 1 / span 5; grid-row: 1; }
.sobre__portrait .media { aspect-ratio: 896 / 1200; }
.sobre__portrait figcaption { margin-top: var(--s-3); font-size: var(--t-caption); color: var(--ink-soft); }
.sobre__detail {
  grid-column: 4 / span 3;
  grid-row: 1;
  align-self: end;
  aspect-ratio: 1;
  margin-bottom: -4rem;
  border-radius: var(--r-s);
  box-shadow: var(--e3);
  outline: 8px solid var(--ground);
  z-index: 1;
}
.sobre__text {
  grid-column: 8 / span 5;
  grid-row: 1;
  display: grid;
  gap: var(--s-5);
  padding-top: var(--s-8);
}
.sobre__text h2 { font-size: var(--t-h1); line-height: 0.98; letter-spacing: -0.03em; margin-bottom: var(--s-2); }
.sobre__text > p { font-size: var(--t-lead); line-height: 1.55; max-width: var(--measure); }
.sobre__quote {
  margin-block: var(--s-4);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--t-h3);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--accent-text);
  max-width: 18em;
}
.sobre__creds { display: grid; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--rule); }
.sobre__creds ul { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2) var(--s-5); font-size: var(--t-small); }
.sobre__text .btn { justify-self: start; margin-top: var(--s-3); }
@media (max-width: 899px) {
  .sobre__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sobre__text { grid-column: 1 / -1; grid-row: 1; padding-top: 0; margin-bottom: var(--s-7); }
  .sobre__portrait { grid-column: 1 / span 5; grid-row: 2; }
  .sobre__detail { grid-column: 4 / span 3; grid-row: 2; margin-bottom: 2.6rem; outline-width: 6px; }
  .sobre__creds ul { grid-template-columns: 1fr; }
}

/* ==========================================================================
   4. Paquetes (lista de revista, no tarjetas iguales) + proceso
   ========================================================================== */
.paquetes__head { display: grid; gap: var(--s-4); max-width: 40rem; }
.paquetes__head h2 { font-size: var(--t-h1); line-height: 0.98; letter-spacing: -0.03em; }
.paquetes__head p { font-size: var(--t-lead); color: var(--ink-soft); }
.paquetes__photo { margin-top: var(--s-8); aspect-ratio: 21 / 9; }
.paquetes__photo img { object-position: 50% 45%; }
.paquetes__note { margin-top: var(--s-7); font-size: var(--t-caption); color: var(--ink-soft); }
.plans { margin-top: var(--s-4); }
.plan {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: var(--s-5) var(--gutter);
  padding-block: var(--s-7);
  border-top: 1px solid var(--rule);
  align-items: start;
}
.plan--featured {
  margin-inline: calc(var(--s-6) * -1);
  padding-inline: var(--s-6);
  background: var(--paper-50);
  border-top-color: transparent;
  border-radius: var(--r-m);
  box-shadow: var(--e2);
}
.plan--featured + .plan { border-top-color: transparent; }
.plan__id { display: grid; gap: var(--s-3); }
.plan__name { font-size: clamp(1.9rem, 1.15rem + 1.9vw, 3rem); line-height: 1; letter-spacing: -0.022em; overflow-wrap: break-word; }
.plan__for { color: var(--ink-soft); max-width: 24em; }
.plan__tag {
  justify-self: start;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--t-caption);
  font-weight: 600;
}
.plan__includes { display: grid; gap: var(--s-2); padding-top: var(--s-2); }
.plan__includes li { position: relative; padding-left: var(--s-5); }
.plan__includes li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 10px; height: 1.5px;
  background: var(--accent);
}
.plan__buy { display: grid; justify-items: start; gap: var(--s-3); }
.plan__price { font-family: var(--font-display); font-size: var(--t-h2); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.plan__price span { font-family: var(--font-text); font-size: var(--t-small); letter-spacing: 0; color: var(--ink-soft); }
.plan__save { font-size: var(--t-small); color: var(--ink-soft); }
.paquetes__extra { padding-top: var(--s-5); border-top: 1px solid var(--rule); font-size: var(--t-small); color: var(--ink-soft); }
.paquetes__extra strong { color: var(--ink); }

.proceso { margin-top: var(--s-10); }
.proceso__title { font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.022em; }
.proceso__lede { margin-top: var(--s-3); font-size: var(--t-lead); color: var(--ink-soft); }
.proceso__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: var(--s-7);
  counter-reset: paso;
}
.proceso__steps li { display: grid; gap: var(--s-2); align-content: start; padding-top: var(--s-4); border-top: 1px solid var(--rule); }
.proceso__n { font-family: var(--font-display); font-size: 3.25rem; line-height: 1; color: var(--accent-text); font-variant-numeric: lining-nums; }
.proceso__steps h4 { font-size: 1.125rem; font-weight: 600; margin: 0; }
.proceso__steps p { color: var(--ink-soft); }
.modalidades {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  margin-top: var(--s-8);
}
.modalidad { display: grid; grid-template-columns: auto 1fr; gap: var(--s-1) var(--s-4); align-items: start; }
.modalidad .icon { grid-row: span 2; color: var(--accent-text); }
.modalidad h4 { font-family: var(--font-display); font-size: var(--t-h3); font-weight: 400; line-height: 1.1; margin: 0; }
.modalidad p { color: var(--ink-soft); max-width: 30em; }
@media (max-width: 899px) {
  .paquetes__photo { aspect-ratio: 4 / 3; }
  .plan { grid-template-columns: 1fr; padding-block: var(--s-6); }
  .plan--featured { margin-inline: calc(var(--s-4) * -1); padding-inline: var(--s-4); }
  .proceso__steps { grid-template-columns: 1fr 1fr; row-gap: var(--s-6); }
  .modalidades { grid-template-columns: 1fr; gap: var(--s-6); }
}
@media (max-width: 520px) {
  .proceso__steps { grid-template-columns: 1fr; }
}

/* ==========================================================================
   5. Calculadora (formulario + panel de instrumento)
   ========================================================================== */
.calc__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--s-8);
  align-items: start;
}
.calc__intro { grid-column: 1 / span 6; display: grid; gap: var(--s-4); }
.calc__intro h2 { font-size: var(--t-h1); line-height: 0.98; letter-spacing: -0.03em; }
.calc__intro > p { font-size: var(--t-lead); max-width: 30em; }
.calc__aclara { color: var(--ink-soft); font-size: var(--t-small) !important; }
.calc__form { display: grid; gap: var(--s-5); margin-top: var(--s-5); }
.calc__form .btn { justify-self: start; }
.calc__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.field { display: grid; gap: var(--s-2); margin: 0; padding: 0; border: 0; min-width: 0; }
.field__label { font-size: var(--t-small); font-weight: 600; padding: 0; }
.field__help { font-size: var(--t-caption); color: var(--ink-soft); }
.field__error { font-size: var(--t-caption); font-weight: 600; color: var(--error); }
[data-ground="olive"] .field__error { color: var(--error-on-dark); }

.unit, .select {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  border-radius: var(--r-s);
  background: var(--field);
  box-shadow: inset 0 0 0 1px var(--rule);
  transition: box-shadow var(--d-micro) var(--ease-out);
}
.unit:focus-within, .select:focus-within { box-shadow: inset 0 0 0 2px var(--accent-text); }
.unit input, .select select {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 var(--s-4);
  border: 0;
  background: transparent;
  outline: none;
  font-size: 1.125rem;
  appearance: none;
  -moz-appearance: textfield;
}
.unit input::-webkit-outer-spin-button, .unit input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.unit input::placeholder { color: var(--ink-soft); opacity: 0.8; }
.unit span { padding-right: var(--s-4); color: var(--ink-soft); font-size: var(--t-small); }
.select::after {
  content: "";
  position: absolute;
  right: var(--s-4);
  width: 9px; height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  pointer-events: none;
}
.select select { padding-right: var(--s-8); cursor: pointer; }
.field.is-invalid .unit, .field.is-invalid .select { box-shadow: inset 0 0 0 2px var(--error); }

.segmented { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-pill); background: var(--field); box-shadow: inset 0 0 0 1px var(--rule); justify-self: start; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: inline-flex; align-items: center;
  min-height: 42px; padding: 0 var(--s-5);
  border-radius: var(--r-pill);
  font-weight: 600; font-size: var(--t-small);
  transition: background-color var(--d-micro) var(--ease-out), color var(--d-micro) var(--ease-out);
}
.segmented input:checked + span { background: var(--olive-900); color: var(--paper-100); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.field.is-invalid .segmented { box-shadow: inset 0 0 0 2px var(--error); }

.calc__panel { grid-column: 8 / span 5; position: sticky; top: calc(var(--header-h) + var(--s-6)); display: grid; gap: var(--s-4); }
.calc__result {
  --ground: var(--paper-50);
  display: grid;
  gap: var(--s-5);
  padding: clamp(var(--s-5), 3vw, var(--s-7));
  border-radius: var(--r-m);
  background: var(--paper-50);
  box-shadow: var(--e3);
}
.calc__empty { font-family: var(--font-display); font-style: italic; font-size: var(--t-h3); line-height: 1.2; color: var(--ink-soft); }
.calc__result[data-state="filled"] .calc__empty { display: none; }
.calc__numbers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.calc__numbers dt { font-size: var(--t-caption); font-weight: 600; color: var(--ink-soft); }
.calc__numbers dd { font-family: var(--font-display); font-size: clamp(2.6rem, 1.6rem + 2.6vw, 4rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; }
.calc__numbers small { font-family: var(--font-text); font-size: var(--t-small); letter-spacing: 0; color: var(--ink-soft); }
/* vacío: solo los números de muestra se atenúan (son decorativos); las etiquetas se leen */
.calc__result[data-state="empty"] .calc__numbers dd { opacity: 0.3; }
.calc__result[data-state="empty"] .imc-scale__marker { display: none; }
.calc__result[data-state="empty"] .calc__category,
.calc__result[data-state="empty"] .calc__msg,
.calc__result[data-state="empty"] .calc__note,
.calc__result[data-state="empty"] .calc__cta { display: none; }
.calc__category { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.1; color: var(--accent-text); }
.calc__msg { font-size: var(--t-body); }
.calc__note { font-size: var(--t-small); color: var(--ink-soft); }
.calc__cta { justify-self: start; }
.calc__disclaimer { font-size: var(--t-caption); color: var(--ink-soft); }

.imc-scale { display: grid; gap: var(--s-2); }
.imc-scale__bar { position: relative; display: flex; gap: 3px; padding-top: 22px; }
.imc-scale__seg {
  flex: 0 0 calc(var(--w) - 3px);
  padding-top: 10px;
  border-top: 6px solid var(--seg);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.imc-scale__seg:nth-child(1) { --seg: #c9d4b3; }
.imc-scale__seg:nth-child(2) { --seg: #7f9662; }
.imc-scale__seg:nth-child(3) { --seg: #e3a585; }
.imc-scale__seg:nth-child(4) { --seg: #c0563a; }
.imc-scale__marker {
  position: absolute;
  top: 0;
  left: calc(var(--pos, 0) * 1%);
  width: 2px;
  height: 34px;
  background: var(--olive-900);
  transform: translateX(-1px);
  transition: left 900ms var(--ease-out);
}
.imc-scale__marker::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--olive-900);
  transform: translate(-50%, -2px);
}
.imc-scale__ticks { position: relative; height: 1em; font-size: 0.6875rem; color: var(--ink-soft); }
.imc-scale__ticks span { position: absolute; left: var(--x); transform: translateX(-50%); }
@media (max-width: 899px) {
  .calc__intro, .calc__panel { grid-column: 1 / -1; }
  .calc__panel { position: static; }
}
@media (max-width: 520px) {
  .calc__row { grid-template-columns: 1fr 1fr; }
  .calc__row .field:first-child { grid-column: 1 / -1; }
  .calc__numbers { grid-template-columns: 1fr; gap: var(--s-4); }
  .imc-scale__seg { font-size: 0.6875rem; letter-spacing: -0.01em; }
}

/* ==========================================================================
   6. Lo que dicen + preguntas frecuentes
   ========================================================================== */
.dicen__title { font-size: var(--t-h1); line-height: 0.98; letter-spacing: -0.03em; max-width: 14em; }
.dicen__note { margin-top: var(--s-4); font-size: var(--t-caption); color: var(--ink-soft); }
.quotes {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--s-7);
  margin-top: var(--s-8);
}
.quote { display: grid; gap: var(--s-4); align-content: start; }
.quote blockquote p { font-family: var(--font-display); font-style: italic; font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.01em; }
.quote figcaption { font-size: var(--t-small); color: var(--ink-soft); display: grid; }
.quote figcaption strong { color: var(--ink); }
.quote--lead { grid-column: 1 / span 7; grid-row: 1 / span 2; }
.quote--lead blockquote p { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.1rem); line-height: 1.15; letter-spacing: -0.02em; }
.quote:nth-child(2) { grid-column: 9 / span 4; }
.quote:nth-child(3) { grid-column: 9 / span 4; padding-top: var(--s-6); border-top: 1px solid var(--rule); }

.faq {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  margin-top: var(--s-10);
}
.faq__title { grid-column: 1 / span 4; font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.022em; }
.faq__list { grid-column: 6 / span 7; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-5);
  padding-block: var(--s-5);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; transition: transform var(--d-normal) var(--ease-out); color: var(--accent-text); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--s-5); max-width: var(--measure); color: var(--ink-soft); }
.faq details[open] p { animation: fade-up 360ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover { color: var(--accent-text); }
}
@media (max-width: 899px) {
  .quotes { grid-template-columns: 1fr; }
  .quote--lead, .quote:nth-child(2), .quote:nth-child(3) { grid-column: 1; grid-row: auto; }
  .faq { grid-template-columns: 1fr; row-gap: var(--s-5); }
  .faq__title, .faq__list { grid-column: 1; }
}

/* ==========================================================================
   7. Escríbele a Lucía (formulario en forma de mensaje) + colofón
   ========================================================================== */
.contacto { padding-bottom: 0; }
.contacto__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--s-8);
  align-items: start;
}
.contacto__main { grid-column: 1 / span 7; display: grid; gap: var(--s-5); min-width: 0; }
.contacto__main h2 { font-size: var(--t-h1); line-height: 0.98; letter-spacing: -0.03em; }
.contacto__lede { font-size: var(--t-lead); color: var(--ink-soft); max-width: 30em; }
.carta {
  min-width: 0;
  display: grid;
  gap: var(--s-5);
  margin-top: var(--s-5);
  padding: clamp(var(--s-5), 3.5vw, var(--s-8));
  border-radius: var(--r-m);
  background: var(--paper-50);
  box-shadow: var(--e3);
  --ground: var(--paper-50);
}
.carta > * { min-width: 0; }
.carta__frase {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1rem + 1.7vw, 2.35rem);
  line-height: 1.75;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.blank { display: inline-block; position: relative; max-width: 100%; vertical-align: baseline; }
.blank input, .blank select {
  max-width: 100%;
  padding: 0 0.15em 0.02em;
  border: 0;
  border-bottom: 2px solid var(--olive-600);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1em;
  line-height: 1.3;
  color: var(--accent-text);
  outline: none;
  transition: border-color var(--d-micro) var(--ease-out), background-color var(--d-micro) var(--ease-out);
}
.blank input { width: 7.5em; field-sizing: content; min-width: 5em; }
.blank input::placeholder { color: var(--olive-600); opacity: 1; }
.blank select {
  appearance: none;
  text-overflow: ellipsis;
  padding-right: 1.1em;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239E3820' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.15em center;
  background-size: 0.45em;
}
.blank select:invalid, .blank select option[value=""] { color: var(--olive-600); }
.blank select option { font-style: normal; font-family: var(--font-text); font-size: 1rem; color: var(--olive-900); }
.blank input:focus-visible, .blank select:focus-visible { border-bottom-color: var(--tomato-600); background: rgb(173 62 36 / 0.06); }
.blank.is-invalid input, .blank.is-invalid select { border-bottom-color: var(--error); background: rgb(163 38 27 / 0.06); }
.carta__errors { display: grid; gap: var(--s-1); }
.carta__errors:empty { display: none; }
.carta__send { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }
.carta__help { font-size: var(--t-small); color: var(--ink-soft); max-width: 22em; }
.carta__privacy { font-size: var(--t-caption); color: var(--ink-soft); padding-top: var(--s-4); border-top: 1px solid var(--rule); }

.contacto__side { grid-column: 9 / span 4; display: grid; gap: var(--s-6); }
.contacto__photo { aspect-ratio: 4 / 5; }
.datos { display: grid; gap: var(--s-4); font-size: var(--t-small); }
.datos li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: start; }
.datos li > :last-child { grid-column: 2; }
.datos .icon { margin-top: 2px; color: var(--accent-text); width: 20px; height: 20px; }
.datos a { font-weight: 600; }
.contacto__side .btn { justify-self: start; }

.colofon {
  margin-top: var(--section);
  padding-block: var(--s-8) calc(var(--s-8) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
}
.colofon__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--s-4);
  font-size: var(--t-caption);
  color: var(--ink-soft);
}
.colofon__brand { grid-column: 1 / span 5; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; color: var(--ink); }
.colofon__line { grid-column: 1 / span 5; }
.colofon__links { grid-column: 7 / span 6; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); justify-content: flex-end; align-items: start; }
.colofon__links a { color: var(--ink); font-weight: 600; font-size: var(--t-small); }
.colofon__demo { grid-column: 1 / span 7; margin-top: var(--s-5); }
.colofon__credit { grid-column: 8 / span 5; margin-top: var(--s-5); text-align: right; }
@media (max-width: 899px) {
  .contacto__main, .contacto__side { grid-column: 1 / -1; }
  .contacto__side { grid-template-columns: 1fr 1fr; align-items: start; }
  .contacto__photo { aspect-ratio: 3 / 4; }
  .colofon__brand, .colofon__line, .colofon__links, .colofon__demo, .colofon__credit { grid-column: 1 / -1; grid-row: auto; text-align: left; justify-content: flex-start; }
}
@media (max-width: 520px) {
  .contacto__side { grid-template-columns: 1fr; }
  .contacto__photo { aspect-ratio: 4 / 3; }
  .carta__frase { line-height: 1.8; }
}

/* ---------- Aviso de privacidad (privacidad.html) ---------- */
.legal { padding-top: calc(var(--header-h) + var(--s-9)); }
.legal__wrap { max-width: calc(46rem + var(--margin) * 2); display: grid; gap: var(--s-4); }
.legal__title { font-size: var(--t-h1); line-height: 0.98; letter-spacing: -0.03em; margin-bottom: var(--s-3); }
.legal h2 { font-size: var(--t-h3); margin-top: var(--s-6); }
.legal p, .legal li { max-width: var(--measure); }
.legal ul { display: grid; gap: var(--s-3); padding-left: var(--s-5); list-style: disc; }
.legal li::marker { color: var(--accent-text); }
.legal__notice { padding: var(--s-4) var(--s-5); border-radius: var(--r-m); background: var(--blush-100); font-size: var(--t-small); }
.legal__date { color: var(--ink-soft); font-size: var(--t-small); }
.legal .btn { justify-self: start; margin-top: var(--s-5); }
.legal__foot { margin-top: 0; background: var(--ground); }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: max(var(--s-5), env(safe-area-inset-right));
  bottom: max(var(--s-5), env(safe-area-inset-bottom));
  z-index: var(--z-float);
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--tomato-600);
  color: var(--paper-100);
  box-shadow: var(--e3);
  transition: transform var(--d-normal) var(--ease-out), opacity var(--d-normal) var(--ease-out), background-color var(--d-micro) var(--ease-out);
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .wa-float:hover { background: var(--tomato-700); transform: translateY(-2px); }
}
.wa-float.is-hidden { opacity: 0; transform: translateY(16px) scale(0.9); pointer-events: none; }

/* ---------- Movimiento reducido: menos y más suave, no cero ---------- */
@media (prefers-reduced-motion: reduce) {
  .cover__mast, .cover__subject, .cover__fg { transform: none !important; }
  .js .cover.is-ready .cover__mast,
  .js .cover.is-ready .cover__subject,
  .js .cover.is-ready .fg,
  .js .cover.is-ready .cover__tail,
  .js .cover.is-ready .cover__copy,
  .js .cover.is-ready .cover__strip { animation: fade 600ms ease-out both; }
  .js [data-reveal] { transform: none; transition: opacity 500ms ease-out; }
  .js [data-reveal="clip"] img { clip-path: none; transform: none; opacity: 0; transition: opacity 600ms ease-out; }
  .js [data-reveal="clip"].is-in img { opacity: 1; }
  .plate__layer { transform: none !important; filter: none; opacity: var(--e); transition: opacity 500ms ease-out; }
  .indice[open] { animation: fade 200ms ease-out; }
  .faq details[open] p { animation: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Impresión ---------- */
@media print {
  .folio, .wa-float, body::after { display: none; }
  .js [data-reveal], .js [data-reveal="clip"] img, .js .cover * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
