/* =============================================================
   Revuelto Gramajo — styles.css
   Archetype: Editorial Light Cream (adaptado)
   Paleta: crema / tinta / yema / perejil / jamón
   ============================================================= */

/* =============================================================
   1. Tokens (custom properties, @property)
   ============================================================= */
@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  /* Marca */
  --crema:      #FAF5EC;
  --crema-2:    #F1E8D6;
  --crema-3:    #E7DAC2;
  --tinta:      #221B12;
  --tinta-soft: #3B3123;
  --tinta-mute: #6E6250;
  --yema:       #E8A13C;
  --yema-deep:  #CE8420;
  --perejil:    #4C7A3F;
  --jamon:      #D96A5B;
  --line:       rgba(34, 27, 18, 0.14);
  --line-soft:  rgba(34, 27, 18, 0.08);

  /* Semánticos (modo claro por defecto) */
  --bg:        var(--crema);
  --bg-2:      var(--crema-2);
  --bg-3:      var(--crema-3);
  --paper:     #FFFDF8;
  --text:      var(--tinta);
  --text-soft: var(--tinta-soft);
  --text-mute: var(--tinta-mute);
  --accent:    var(--yema);
  --accent-2:  var(--perejil);
  --accent-3:  var(--jamon);
  --on-accent: #2A1E0B;
  --card-shadow: 0 30px 60px -30px rgba(34,27,18,.28), 0 12px 24px -14px rgba(34,27,18,.18);

  /* Tipografía */
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Ritmo */
  --gutter: clamp(1.15rem, 5vw, 5rem);
  --maxw:   1240px;
  --radius: 18px;

  /* Easings */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Modo oscuro: crema ↔ tinta invertidos */
[data-theme="dark"] {
  --bg:        #17120C;
  --bg-2:      #1F1810;
  --bg-3:      #281F15;
  --paper:     #211A11;
  --text:      #F3EBDA;
  --text-soft: #E2D6BF;
  --text-mute: #A7997F;
  --accent:    #F0AE4E;
  --accent-2:  #7FB06A;
  --accent-3:  #E4877A;
  --on-accent: #2A1E0B;
  --line:      rgba(243, 235, 218, 0.16);
  --line-soft: rgba(243, 235, 218, 0.08);
  --card-shadow: 0 30px 60px -30px rgba(0,0,0,.6), 0 12px 24px -14px rgba(0,0,0,.5);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--bg);
}
body {
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.02; letter-spacing: -0.02em; font-weight: 400; }
strong, b { font-weight: 600; }
::selection { background: var(--accent); color: var(--on-accent); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -120px; left: 1rem;
  padding: .7rem 1.1rem; background: var(--text); color: var(--bg);
  z-index: 9999; border-radius: 10px; font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.kicker {
  font-family: var(--sans);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent-2);
  display: inline-flex; align-items: center; gap: .6rem;
}
.kicker::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6;
}
[data-theme="dark"] .kicker { color: var(--accent); }

.eyebrow-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--accent);
}

.section { padding-block: clamp(3.5rem, 9vw, 7.5rem); position: relative; }
.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.2rem + 4vw, 3.9rem);
  font-optical-sizing: auto;
  margin-top: .8rem;
  line-height: 1;
}
.section-head p { margin-top: 1.1rem; color: var(--text-mute); font-size: 1.08rem; max-width: 34rem; }

.lead { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); line-height: 1.5; color: var(--text-soft); }

/* =============================================================
   4. Typography helpers
   ============================================================= */
.serif { font-family: var(--serif); }
em, .ital { font-style: italic; }
.hl { color: var(--accent); }
.hl-2 { color: var(--accent-2); }
.hl-3 { color: var(--accent-3); }

/* =============================================================
   5. Components
   ============================================================= */
/* Botones */
.btn {
  --btn-bg: var(--text);
  --btn-fg: var(--bg);
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .92rem 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: 100px;
  font-weight: 600; font-size: .96rem; letter-spacing: .01em;
  box-shadow: 0 4px 14px rgba(34,27,18,0.10), 0 1px 3px rgba(34,27,18,0.08);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .3s var(--ease-out);
  will-change: transform;
}
.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -12px rgba(34,27,18,0.30), 0 10px 22px rgba(232,161,60,0.24);
}
.btn:active { transform: translateY(-1px); transition-duration: .12s; }
.btn svg { width: 1.05em; height: 1.05em; }

.btn-primary { --btn-bg: var(--accent); --btn-fg: var(--on-accent); }
.btn-primary:hover { box-shadow: 0 22px 44px -12px rgba(232,161,60,0.5); }
.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }

.textlink {
  color: var(--accent-2); font-weight: 600;
  position: relative; display: inline-block;
}
[data-theme="dark"] .textlink { color: var(--accent); }
.textlink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-soft);
}
.textlink:hover::after { transform: scaleX(1); transform-origin: left; }

/* Chips / tags */
.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .34rem .8rem; border-radius: 100px;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  background: var(--bg-3); color: var(--text-soft);
}
.tag.is-accent { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-2); }
[data-theme="dark"] .tag.is-accent { color: var(--accent); }

/* Cards */
.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}

/* =============================================================
   6. Sections & layout
   ============================================================= */
/* --- Custom cursor --- */
.cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; display: none; opacity: 0; transition: opacity .3s var(--ease-out); }
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform; border-radius: 50%; }
.cursor-dot { width: 6px; height: 6px; margin: -3px; background: var(--accent); }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px;
  border: 1.5px solid var(--accent);
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .35s var(--ease-out);
}
.cursor.is-interactive .cursor-ring { width: 54px; height: 54px; margin: -27px; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 200;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 72px;
  width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-soft);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 600; font-size: 1.22rem; letter-spacing: -.01em; }
.brand .brand-mark { width: 30px; height: 30px; flex: none; }
.brand em { color: var(--accent); font-style: italic; }
.nav-links { display: none; align-items: center; gap: 1.9rem; }
.nav-link { position: relative; font-weight: 500; font-size: .96rem; padding: .3rem 0; color: var(--text-soft); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-soft);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-tools { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; color: var(--text-soft);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.icon-btn:hover { background: var(--bg-3); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

.nav-burger { display: grid; }
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
}

/* Mobile fullscreen menu */
.nav-mobile {
  position: fixed; inset: 0; z-index: 190;
  background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center; gap: .3rem;
  padding: var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile a {
  font-family: var(--serif); font-size: clamp(2rem, 9vw, 3rem);
  padding: .35rem 0; color: var(--text-soft);
  border-bottom: 1px solid var(--line-soft);
  transition: color .3s var(--ease-out), padding-left .3s var(--ease-out);
}
.nav-mobile a:hover { color: var(--accent); padding-left: .6rem; }
@media (min-width: 960px) { .nav-mobile { display: none; } }

/* --- Hero --- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 92px; padding-bottom: clamp(2rem, 6vw, 4rem);
  overflow: clip;
}
.hero-mesh {
  position: absolute; inset: -20% -10%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42% 40% at 22% 28%, color-mix(in srgb, var(--yema) 42%, transparent), transparent 70%),
    radial-gradient(38% 44% at 82% 68%, color-mix(in srgb, var(--jamon) 26%, transparent), transparent 72%),
    radial-gradient(46% 40% at 62% 12%, color-mix(in srgb, var(--perejil) 20%, transparent), transparent 70%);
  filter: blur(60px) saturate(120%);
  opacity: .9;
  animation: meshDrift 26s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.12); }
}
.hero-grid {
  width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}
.hero-kicker { margin-bottom: 1.5rem; }
.hero-title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(3.1rem, 1.2rem + 12vw, 8.4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}
.hero-title em { color: var(--accent); font-weight: 400; }
.hero-title .word { display: inline-block; overflow: hidden; vertical-align: top; }
.hero-title .word > span { display: inline-block; }
.hero-sub {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.15rem, 1rem + 1vw, 1.7rem);
  color: var(--text-soft); max-width: 30ch; line-height: 1.35; margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero-stats {
  margin-top: clamp(2.2rem, 5vw, 3rem);
  display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 4vw, 3rem);
  border-top: 1px solid var(--line); padding-top: 1.5rem;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat .num {
  font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1;
  color: var(--accent); font-weight: 500;
}
.hero-stat .lbl { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); margin-top: .4rem; }

/* Hero visual: yema + papas paille */
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 460px; justify-self: center; width: 100%; }
.hero-yema { position: absolute; inset: 0; margin: auto; width: 74%; z-index: 1; will-change: transform; filter: drop-shadow(0 30px 50px rgba(206,132,32,.35)); }
.paille-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: visible; }
.paille { transform-box: fill-box; transform-origin: center; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero-visual { max-width: 520px; }
}

/* --- Manifesto / asymmetric intro --- */
.manifesto-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.manifesto-grid .m-num {
  font-family: var(--serif); font-style: italic; font-size: clamp(3rem,8vw,5rem);
  color: var(--accent); line-height: .8;
}
.manifesto-grid p { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.55rem); line-height: 1.5; color: var(--text-soft); }
.manifesto-grid p + p { margin-top: 1.2rem; }
@media (min-width: 720px) { .manifesto-grid { grid-template-columns: 0.28fr 0.72fr; } }

/* --- Ingredientes --- */
.ingredients { background: var(--bg-2); }
.ing-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem,5vw,3.5rem); align-items: start; }
@media (min-width: 960px) { .ing-grid { grid-template-columns: 0.9fr 1.1fr; } }
.ing-meta { position: sticky; top: 96px; }
.ing-list { columns: 1; }
@media (min-width: 560px) { .ing-list { columns: 2; column-gap: 2.5rem; } }
.ing-item {
  break-inside: avoid;
  display: flex; align-items: baseline; gap: .9rem;
  padding: .85rem 0; border-bottom: 1px solid var(--line-soft);
}
.ing-item .qty { font-family: var(--serif); font-weight: 500; color: var(--accent); font-size: 1.05rem; min-width: 3.5rem; flex: none; }
.ing-item .name { color: var(--text-soft); }
.ing-item .opt { font-size: .76rem; color: var(--text-mute); font-style: italic; }

/* --- Recipe scroll storytelling --- */
.recipe { position: relative; }
.recipe-rail {
  position: sticky; top: 0; z-index: 20;
  display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap;
  padding: 1rem var(--gutter);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-block: 1px solid var(--line-soft);
}
.recipe-rail button {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .85rem; border-radius: 100px;
  font-size: .82rem; font-weight: 600; color: var(--text-mute);
  transition: color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.recipe-rail button .r-num {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: .8rem;
  background: var(--bg-3); color: var(--text-mute);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.recipe-rail button.is-active { color: var(--text); }
.recipe-rail button.is-active .r-num { background: var(--accent); color: var(--on-accent); }
.recipe-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--accent);
  width: var(--recipe-pct, 0%); transition: width .15s linear;
}

.recipe-step {
  display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-block: clamp(3rem, 9vw, 6rem);
  border-bottom: 1px solid var(--line-soft);
}
.recipe-step-figure {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius);
  background: var(--bg-2);
  display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--line-soft);
}
.recipe-step-figure svg { width: 78%; height: 78%; }
.recipe-step-body .step-index {
  font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--accent);
  letter-spacing: .02em;
}
.recipe-step-body h3 { font-family: var(--serif); font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.9rem); margin: .5rem 0 1rem; }
.recipe-step-body p { color: var(--text-soft); font-size: 1.08rem; }
.recipe-step-body .step-tip {
  margin-top: 1.2rem; padding: .9rem 1.1rem; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  font-size: .95rem; color: var(--text-soft);
  display: flex; gap: .6rem; align-items: flex-start;
}
.recipe-step-body .step-tip b { color: var(--accent-2); }
[data-theme="dark"] .recipe-step-body .step-tip b { color: var(--accent); }
@media (min-width: 860px) {
  .recipe-step { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem,6vw,5rem); }
  .recipe-step:nth-child(even) .recipe-step-figure { order: 2; }
  .recipe-step-figure { position: sticky; top: 128px; }
}

/* --- Reglas de oro --- */
.golden { background: var(--bg-2); }
.golden-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
@media (min-width: 720px) { .golden-grid { grid-template-columns: 1fr 1fr; } }
.golden-card { padding: clamp(1.6rem, 4vw, 2.6rem); }
.golden-card .g-ico { width: 54px; height: 54px; margin-bottom: 1.2rem; color: var(--accent); }
.golden-card h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: .6rem; }
.golden-card p { color: var(--text-mute); }

/* --- FAQ accordion --- */
.faq-list { border-top: 1px solid var(--line); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.5rem 0; font-family: var(--serif); font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem);
  color: var(--text);
}
.faq-q .faq-ico { flex: none; width: 26px; height: 26px; position: relative; transition: transform .4s var(--ease-out); }
.faq-q .faq-ico::before, .faq-q .faq-ico::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: var(--accent);
}
.faq-q .faq-ico::before { width: 100%; height: 2px; }
.faq-q .faq-ico::after { width: 2px; height: 100%; transition: transform .4s var(--ease-out); }
.faq-item[data-open="true"] .faq-ico::after { transform: scaleY(0); }
.faq-a { overflow: hidden; height: 0; transition: height .45s var(--ease-out); }
.faq-a-inner { padding: 0 0 1.6rem; color: var(--text-mute); max-width: 62ch; }
.no-js .faq-a, .faq-item[data-open="true"] .faq-a { height: auto; }

/* --- Teaser grid (bento) --- */
.teaser-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 620px) { .teaser-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .teaser-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 220px; }
  .teaser:nth-child(1) { grid-column: span 4; grid-row: span 2; }
  .teaser:nth-child(2) { grid-column: span 2; }
  .teaser:nth-child(3) { grid-column: span 2; }
  .teaser:nth-child(4) { grid-column: span 3; }
  .teaser:nth-child(5) { grid-column: span 3; }
}
.teaser {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.3rem, 3vw, 1.9rem);
  min-height: 200px;
  border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: var(--paper); border: 1px solid var(--line-soft);
  box-shadow: var(--card-shadow);
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.teaser::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background: var(--teaser-tint, var(--accent));
  transition: opacity .5s var(--ease-out), transform .8s var(--ease-soft);
}
.teaser:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -30px rgba(34,27,18,.4); }
.teaser:hover::before { opacity: .3; transform: scale(1.08); }
.teaser .t-ico { width: 40px; height: 40px; color: var(--accent); margin-bottom: auto; }
.teaser h3 { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 1.4vw, 1.9rem); margin-top: 1rem; }
.teaser p { color: var(--text-mute); font-size: .95rem; margin-top: .4rem; }
.teaser .t-go { margin-top: 1rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--accent-2); font-size: .9rem; }
[data-theme="dark"] .teaser .t-go { color: var(--accent); }
.teaser .t-go svg { width: 1em; height: 1em; transition: transform .4s var(--ease-out); }
.teaser:hover .t-go svg { transform: translateX(4px); }

/* --- Historia timeline --- */
.timeline-viewport { position: relative; overflow: hidden; }
.timeline-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86vw, 520px);
  gap: clamp(1.2rem, 4vw, 3rem);
  padding-inline: var(--gutter); padding-block: 1rem 2rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.timeline-track::-webkit-scrollbar { height: 8px; }
.timeline-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 100px; }
.tl-card { scroll-snap-align: center; position: relative; }
.tl-card .tl-year {
  font-family: var(--serif); font-style: italic; font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--accent); line-height: .8; margin-bottom: 1rem;
}
.tl-card .tl-figure {
  aspect-ratio: 3/2; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line-soft); margin-bottom: 1.2rem;
  display: grid; place-items: center;
  filter: sepia(.18) contrast(1.02);
}
.tl-card .tl-figure svg { width: 72%; }
.tl-card h3 { font-family: var(--serif); font-size: 1.55rem; margin-bottom: .5rem; }
.tl-card p { color: var(--text-mute); }
.timeline-hint { margin-top: .5rem; color: var(--text-mute); font-size: .85rem; display: inline-flex; gap: .5rem; align-items: center; }

/* Archive / newspaper flourish */
.archive-band { background: var(--tinta); color: var(--crema); }
[data-theme="dark"] .archive-band { background: #0F0B07; }
.archive-band .kicker { color: var(--accent); }
.archive-band h2, .archive-band .lead { color: var(--crema); }
.archive-quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.6rem, 1.1rem + 3vw, 3.2rem); line-height: 1.15;
  max-width: 20ch;
}
.archive-quote .glitch { position: relative; display: inline-block; color: var(--accent); }

/* --- Variantes list --- */
.variant { display: grid; grid-template-columns: 1fr; gap: clamp(1.2rem,4vw,2.8rem); align-items: center; padding-block: clamp(2.4rem,6vw,4rem); border-bottom: 1px solid var(--line-soft); }
.variant-figure { aspect-ratio: 4/3; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line-soft); display: grid; place-items: center; overflow: hidden; }
.variant-figure svg { width: 70%; }
.variant-body .v-idx { font-family: var(--serif); font-style: italic; color: var(--accent); }
.variant-body h3 { font-family: var(--serif); font-size: clamp(1.6rem,1.2rem+2vw,2.6rem); margin: .4rem 0 .8rem; }
.variant-body p { color: var(--text-soft); }
.variant-body .v-meta { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
@media (min-width: 820px) {
  .variant { grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem,5vw,4rem); }
  .variant:nth-child(even) .variant-figure { order: 2; }
}

/* --- Dónde comer --- */
.spot-grid { display: grid; grid-template-columns: 1fr; gap: 1.3rem; }
@media (min-width: 720px) { .spot-grid { grid-template-columns: 1fr 1fr; } }
.spot { padding: clamp(1.4rem, 3.5vw, 2rem); display: flex; flex-direction: column; }
.spot .s-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.spot h3 { font-family: var(--serif); font-size: 1.5rem; }
.spot .s-hood { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); }
.spot p { color: var(--text-mute); }
.spot-featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr; gap: clamp(1.4rem,4vw,2.5rem);
  padding: clamp(1.6rem, 4vw, 3rem);
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 16%, var(--paper)), var(--paper));
  border: 1.5px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.spot-featured .badge-rec {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
  padding: .35rem .8rem; border-radius: 100px; background: var(--accent); color: var(--on-accent);
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.spot-featured h3 { font-family: var(--serif); font-size: clamp(1.8rem,1.3rem+2vw,2.8rem); }
@media (min-width: 860px) { .spot-featured { grid-template-columns: 1.2fr .8fr; align-items: center; } }

/* --- Utensilios --- */
.tools-grid { display: grid; grid-template-columns: 1fr; gap: 1.3rem; }
@media (min-width: 620px) { .tools-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }
.tool { padding: clamp(1.4rem,3vw,1.9rem); display: flex; flex-direction: column; height: 100%; }
.tool .t-figure { aspect-ratio: 3/2; border-radius: 12px; background: var(--bg-2); display: grid; place-items: center; margin-bottom: 1.2rem; overflow: hidden; }
.tool .t-figure svg { width: 58%; color: var(--accent); }
.tool h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: .5rem; }
.tool p { color: var(--text-mute); font-size: .95rem; flex: 1; }
.tool .btn { margin-top: 1.2rem; align-self: flex-start; }
.disclosure {
  padding: 1rem 1.2rem; border-radius: 12px; border: 1px dashed var(--line);
  background: var(--bg-2); color: var(--text-mute); font-size: .9rem;
  display: flex; gap: .7rem; align-items: flex-start;
}
.disclosure svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: .1rem; }

/* --- Ad slots --- */
.ad-slot {
  margin: clamp(2rem,5vw,3.5rem) auto; max-width: var(--maxw);
  padding-inline: var(--gutter);
  min-height: 0;
  text-align: center;
}
.ad-slot:empty { display: none; }
.ad-slot .ad-inner {
  border: 1px dashed var(--line); border-radius: 12px; padding: 1rem;
  color: var(--text-mute); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--bg-2);
}

/* --- Footer --- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line-soft); padding-block: clamp(3rem,7vw,5rem); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer .brand { font-size: 1.4rem; margin-bottom: 1rem; }
.footer p { color: var(--text-mute); max-width: 32ch; }
.footer h4 { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: .7rem; }
.footer-links a { color: var(--text-soft); transition: color .3s var(--ease-out); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  color: var(--text-mute); font-size: .85rem;
}
.footer-disclosure { max-width: 60ch; font-size: .82rem; color: var(--text-mute); margin-top: 1.4rem; line-height: 1.6; }

/* Breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .85rem; color: var(--text-mute); margin-bottom: 1.2rem; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: .5; }

/* Page hero (interior pages) */
.page-hero { padding-top: 128px; padding-bottom: clamp(2rem,5vw,3.5rem); position: relative; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(2.6rem, 1.4rem + 6vw, 6rem); line-height: .95; margin: .6rem 0 1rem; }
.page-hero h1 em { color: var(--accent); }
.page-hero .lead { max-width: 46ch; }

/* =============================================================
   7. Effects / reveal
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: .32s; }

/* No-JS + safety: everything visible */
.no-js [data-reveal] { opacity: 1; transform: none; }
.no-js .cursor { display: none; }
.no-js .nav { position: absolute; }

/* Falling paille intro (CSS fallback if GSAP absent) */
.paille { opacity: 0; }
.js .paille { opacity: 1; }
.no-js .paille { opacity: 1; }

/* Page view transitions */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: .5s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(root) { animation-name: vtOut; }
::view-transition-new(root) { animation-name: vtIn; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* =============================================================
   8. Responsive tweaks
   ============================================================= */
@media (min-width: 720px) {
  .footer-bottom { font-size: .88rem; }
}

/* =============================================================
   9. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mesh { animation: none; }
  .teaser::before { transition: opacity .3s; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .paille { opacity: 1 !important; transform: none !important; }
  .hero-yema { transform: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
