/* ============================================================
   Sazón de Lima — Escuela de cocina peruana
   Editorial / magazine — es-PE
   ============================================================ */

:root {
  --bg: #F4EFE6;
  --surface: #FFFFFF;
  --surface-2: #EFE8DA;
  --ink: #211C17;
  --ink-soft: #5A5049;
  --accent: #B23A2E;
  --accent-2: #2E4A3C;
  --line: rgba(33, 28, 23, 0.14);
  --line-strong: rgba(33, 28, 23, 0.28);
  --header-h: 72px;

  --serif: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  interpolate-size: allow-keywords;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(16px, 1.05vw + 12px, 18px);
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1.1em; }
a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-left: clamp(20px, 5vw, 72px);
  padding-right: clamp(20px, 5vw, 72px);
}

.editorial {
  max-width: 640px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.long { word-break: break-word; overflow-wrap: anywhere; }

/* ---------- Eyebrow / roman numerals ---------- */
.eyebrow {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin: 0 0 14px;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  background: var(--accent);
  margin-top: 8px;
  border-radius: 2px;
}

.sec-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  color: var(--accent-2);
  display: block;
  margin-bottom: 6px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1080;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, box-shadow 240ms ease, height 240ms ease, border-color 240ms ease;
}
.site-header.is-scrolled {
  background: rgba(244, 239, 230, 0.98);
  box-shadow: 0 8px 24px -16px rgba(0,0,0,.28);
  border-bottom-color: var(--line);
  height: 62px;
}
.header-inner {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-left: clamp(20px, 5vw, 72px);
  padding-right: clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.brand span { color: var(--accent); }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}
.nav-desktop a {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 0;
  transition: color 200ms ease;
}
.nav-desktop a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 240ms cubic-bezier(.2,.7,.2,1);
}
.nav-desktop a:not(.nav-cta):hover::after,
.nav-desktop a:not(.nav-cta).is-active::after { width: 100%; }
.nav-desktop a:not(.nav-cta):hover { color: var(--accent); }
.nav-desktop a.is-active { color: var(--accent); }

.nav-cta {
  background: var(--ink);
  color: var(--surface) !important;
  padding: 9px 18px !important;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-desktop .nav-cta::after { display: none; }
.nav-desktop .nav-cta:hover { background: var(--accent); color: var(--surface) !important; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 1100;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 260ms cubic-bezier(.2,.7,.2,1), opacity 200ms ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Drawer ---------- */
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 92vw);
  background: var(--bg);
  z-index: 1050;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), visibility 0s linear 320ms;
  padding: calc(var(--header-h) + 24px) 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 1px solid var(--line);
}
.drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; transition: transform 320ms cubic-bezier(.2,.7,.2,1); }
.drawer a {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  transition: color 200ms ease, padding-left 220ms ease;
}
.drawer a:hover, .drawer a.is-active { color: var(--accent); padding-left: 8px; }
.drawer .nav-cta {
  margin-top: 18px;
  text-align: center;
  font-style: normal;
  font-size: 1rem;
  border: 0;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease, visibility 240ms ease;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

@media (max-width: 1023px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Main ---------- */
main { padding-top: var(--header-h); }

section { padding-block: clamp(64px, 9vw, 120px); }
section + section { border-top: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(56px, 11vw, 130px) clamp(48px, 8vw, 96px);
  border-top: 0;
}
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(3rem, 10vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 15ch;
  margin-bottom: 28px;
}
.hero h1 .word {
  display: inline-block;
  /* Visible by default; the entrance animates FROM hidden via `backwards` fill.
     This keeps the headline readable even when animations are frozen/disabled
     by a rendering harness or an unmatched reduced-motion query. */
  animation: heroWord 720ms cubic-bezier(.2,.7,.2,1) backwards;
  animation-delay: calc(var(--i) * 90ms + 120ms);
}
@keyframes heroWord {
  from { opacity: 0; transform: translateY(0.5em); }
  to { opacity: 1; transform: none; }
}
.hero-sub {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--ink-soft);
  max-width: 34ch;
  margin-bottom: 32px;
  line-height: 1.4;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.trust-strip svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; }

/* ---------- Cooking timeline (theme signature) ---------- */
.cook-timeline {
  margin-top: 40px;
}
.cook-timeline figcaption {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
  font-weight: 600;
}
.cook-timeline svg { width: 100%; height: auto; display: block; }
.cook-track { stroke: var(--line-strong); }
.cook-fill {
  stroke: var(--accent);
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: cookFill 6s cubic-bezier(.5,0,.3,1) infinite;
}
.cook-dot { fill: var(--accent-2); }
.cook-dot--hot { fill: var(--accent); }
.cook-label { font-family: var(--sans); font-size: 11px; fill: var(--ink-soft); }
.cook-min { font-family: var(--serif); font-style: italic; font-size: 13px; fill: var(--ink); }
@keyframes cookFill {
  0% { stroke-dashoffset: 1000; }
  55% { stroke-dashoffset: 0; }
  90% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .cook-fill { animation: none; stroke-dashoffset: 0; }
  .hero h1 .word { animation: none; opacity: 1; transform: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 200ms cubic-bezier(.2,.7,.2,1), background 220ms ease, color 220ms ease, border-color 220ms ease;
}
.btn svg { width: 17px; height: 17px; transition: transform 220ms ease; }
.btn-primary { background: var(--accent); color: var(--surface); box-shadow: 0 8px 22px -14px rgba(178,58,46,0.55); }
/* warm ember glow — theme micro-effect for the cooking brand */
.btn-primary:hover, .btn-primary:focus-visible { background: var(--ink); color: var(--surface); transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(178,58,46,0.5), 0 2px 0 rgba(178,58,46,0.25); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--ink); color: var(--surface); border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 30px -16px rgba(33,28,23,0.55); }

/* ---------- Section heads ---------- */
.sec-head { max-width: 680px; margin-bottom: clamp(34px, 5vw, 56px); }
.sec-head h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 18px;
}
.sec-head p { color: var(--ink-soft); font-size: 1.08rem; max-width: 52ch; }

/* drop cap */
.dropcap::first-letter {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  float: left;
  font-size: 4.4em;
  line-height: 0.72;
  padding: 8px 14px 0 0;
  color: var(--accent);
}

/* ---------- Manifiesto ---------- */
.manifiesto .lede {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 40ch;
}
.manifiesto blockquote {
  margin: 44px 0 0;
  padding-left: 26px;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.24;
  max-width: 22ch;
}

/* ---------- Metodo ---------- */
.metodo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
@media (min-width: 860px) {
  .metodo-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.metodo-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.metodo-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.metodo-steps li:first-child { padding-top: 0; }
.metodo-steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--accent);
  min-width: 44px;
}
.metodo-steps h3 { font-size: 1.2rem; margin-bottom: 5px; }
.metodo-steps p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.metodo-steps .when {
  display: inline-block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-top: 8px;
  font-weight: 600;
}
.chef-quote {
  background: var(--ink);
  color: var(--bg);
  border-radius: 14px;
  padding: clamp(28px, 4vw, 40px);
  position: relative;
}
.chef-quote .mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 4rem;
  line-height: 0.4;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.chef-quote blockquote {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.28;
}
.chef-quote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: rgba(244,239,230,0.72);
  display: block;
}
.chef-quote cite strong { color: var(--bg); font-weight: 600; display: block; font-size: 1rem; }

/* ---------- Talleres ---------- */
.talleres-list { display: grid; gap: 0; }
.taller {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: clamp(24px, 3.4vw, 38px) 0;
  border-top: 1px solid var(--line-strong);
  transition: padding-left 260ms cubic-bezier(.2,.7,.2,1);
}
.taller:last-child { border-bottom: 1px solid var(--line-strong); }
.taller:hover { padding-left: 10px; }
.taller-date {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent-2);
  text-align: center;
  line-height: 1;
  min-width: 62px;
}
.taller-date .d { display: block; font-size: 2rem; }
.taller-date .m { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-style: normal; font-family: var(--sans); margin-top: 4px; color: var(--ink-soft); }
.taller-body { min-width: 0; }
.taller-body h3 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin-bottom: 6px; }
.taller-body p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.taller-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 10px;
}
.taller-meta span {
  font-size: 0.78rem;
  color: var(--accent-2);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.taller-meta svg { width: 15px; height: 15px; }
.taller-cta {
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--accent);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 220ms ease;
}
.taller-cta:hover { gap: 12px; }

/* ---------- Recetario ---------- */
.recetario-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
@media (min-width: 760px) {
  .recetario-grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
}
.plato {
  padding: clamp(26px, 3vw, 40px) clamp(20px, 2.4vw, 32px);
  border: 1px solid var(--line);
  margin: -0.5px;
  position: relative;
  transition: background 260ms ease, transform 260ms cubic-bezier(.2,.7,.2,1);
}
.plato:hover { background: var(--surface); transform: translateY(-4px); box-shadow: 0 22px 48px -30px rgba(178,58,46,0.5); z-index: 2; }
.plato .idx {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  display: block;
}
.plato .plato-ico { width: 40px; height: 40px; color: var(--accent-2); margin-bottom: 16px; }
.plato h3 { font-size: 1.5rem; margin-bottom: 10px; }
.plato p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 16px; }
.plato ul { list-style: none; margin: 0; padding: 0; }
.plato ul li {
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding: 6px 0;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.plato ul li span { color: var(--accent-2); font-weight: 600; }

/* ---------- Matricula / precios ---------- */
.matricula { background: var(--surface-2); }
.precios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 820px) {
  .precios-grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
}
.precio {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(26px, 3vw, 38px) clamp(22px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  transition: transform 260ms cubic-bezier(.2,.7,.2,1), box-shadow 260ms ease;
}
@media (min-width: 820px) { .precio { margin: -0.5px; } }
.precio:hover { transform: translateY(-5px); box-shadow: 0 26px 54px -34px rgba(33,28,23,0.5); z-index: 2; }
.precio.featured { background: var(--ink); color: var(--bg); }
.precio.featured h3, .precio.featured .amount { color: var(--bg); }
.precio.featured .precio-list li { border-color: rgba(244,239,230,0.16); color: rgba(244,239,230,0.82); }
.precio.featured .precio-list li.no { color: rgba(244,239,230,0.5); }
.precio .tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
  min-height: 16px;
}
.precio.featured .tag { color: #E9A69C; }
.precio h3 { font-size: 1.4rem; margin-bottom: 14px; }
.precio .amount {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.2rem, 4.4vw, 3rem);
  line-height: 1;
  margin-bottom: 4px;
}
.precio .amount small { font-size: 0.9rem; font-style: normal; font-family: var(--sans); color: var(--ink-soft); }
.precio.featured .amount small { color: rgba(244,239,230,0.6); }
.precio .precio-list {
  list-style: none;
  margin: 22px 0 26px;
  padding: 0;
  flex: 1;
}
.precio .precio-list li {
  font-size: 0.9rem;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink-soft);
}
.precio .precio-list li svg { width: 16px; height: 16px; margin-top: 3px; color: var(--accent-2); flex: 0 0 auto; }
.precio .precio-list li.no { color: var(--ink-soft); opacity: 0.7; }
.precio .precio-list li.no svg { color: var(--line-strong); }
.precio .btn { width: 100%; justify-content: center; }
.precio.featured .btn-ghost { color: var(--bg); border-color: rgba(244,239,230,0.4); }
.precio.featured .btn-ghost:hover { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.precio-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 22px;
  font-style: italic;
}

/* ---------- Contacto (index) ---------- */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 4vw, 56px);
}
@media (min-width: 820px) {
  .contacto-grid { grid-template-columns: 1fr 1fr; }
}
.contact-lines { list-style: none; margin: 0; padding: 0; }
.contact-lines li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.contact-lines li:first-child { padding-top: 0; }
.contact-lines .ico {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.contact-lines .ico svg { width: 18px; height: 18px; }
.contact-lines .lbl { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; display: block; margin-bottom: 3px; }
.contact-lines .val { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-lines a.val:hover { color: var(--accent); }
.contact-lines .sub { font-size: 0.82rem; color: var(--ink-soft); display: block; margin-top: 2px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(24px, 3vw, 36px);
}
.form-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 560px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }
.field label .opt { font-weight: 400; color: var(--ink-soft); font-size: 0.78rem; }
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 0;
  border-bottom: 2px solid var(--line-strong);
  padding: 11px 4px;
  transition: border-color 220ms ease, background 220ms ease;
}
.field textarea { min-height: 120px; resize: vertical; border: 2px solid var(--line-strong); border-radius: 10px; padding: 12px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
}
.field.consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  grid-column: 1 / -1;
}
.field.consent label { font-weight: 400; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.4; }
.field input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: auto;
  width: 18px; height: 18px;
  min-width: 18px; min-height: 18px;
  padding: 0; border: 0; margin: 2px 0 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.field.consent a { color: var(--accent); }
.form-actions { display: flex; grid-column: 1 / -1; margin-top: 4px; }
.form-actions .btn { width: 100%; justify-content: center; }
@media (min-width: 560px) { .form-actions .btn { width: auto; } }
.hp { position: absolute; left: -9999px; opacity: 0; width: 1px; height: 1px; overflow: hidden; }

/* ---------- CTA card ---------- */
.cta-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(28px, 3.6vw, 44px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-card h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.cta-card p { color: var(--ink-soft); font-size: 0.98rem; max-width: 40ch; margin-bottom: 24px; }
.cta-card .hero-actions { margin-top: 0; }

/* ---------- Contact page cards ---------- */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.channel-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  background: var(--surface);
  transition: transform 240ms cubic-bezier(.2,.7,.2,1), box-shadow 240ms ease;
  opacity: 0;
  transform: translateY(24px);
}
.channel-card.is-in { opacity: 1; transform: none; transition: opacity 600ms cubic-bezier(.2,.7,.2,1) calc(var(--i,0) * 80ms), transform 600ms cubic-bezier(.2,.7,.2,1) calc(var(--i,0) * 80ms); }
.channel-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -32px rgba(33,28,23,0.45); }
.channel-card .ico {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.channel-card .ico svg { width: 22px; height: 22px; }
.channel-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.channel-card .val { text-decoration: none; color: var(--ink); font-weight: 600; word-break: break-word; }
.channel-card a.val:hover { color: var(--accent); }
.channel-card .sub { font-size: 0.84rem; color: var(--ink-soft); margin-top: 6px; }

/* Hours cards */
.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.hours-day {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--surface);
}
.hours-day.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.hours-day .d { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 600; }
.hours-day .h { font-variant-numeric: tabular-nums; font-weight: 500; margin-top: 4px; display: block; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--ink);
}
.faq details summary::-webkit-details-marker { display: none; }
.faq details summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--accent);
  font-family: var(--sans);
  transition: transform 300ms ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details .body {
  height: 0;
  padding: 0 clamp(0px, 3vw, 20px) 0 0;
  overflow: hidden;
  transition: height 360ms cubic-bezier(.4,0,.2,1), padding-block-end 360ms cubic-bezier(.4,0,.2,1);
}
.faq details[open] .body { height: auto; padding-block-end: 24px; }
.faq details .body p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
@media (prefers-reduced-motion: reduce) { .faq details .body { transition: none; } }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 720px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.member {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  background: var(--surface);
}
.member .avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--accent-2);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.member h3 { font-size: 1.25rem; margin-bottom: 2px; }
.member .role { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.member p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 760px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }
.testi {
  border-top: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 0 12px 12px;
  padding: 26px 24px;
  transition: transform 260ms cubic-bezier(.2,.7,.2,1), box-shadow 260ms ease;
}
.testi:hover { transform: translateY(-4px); box-shadow: 0 22px 48px -32px rgba(33,28,23,0.45); }
.testi blockquote {
  margin: 0 0 18px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink);
}
.testi .who { font-weight: 600; font-size: 0.9rem; }
.testi .meta { font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat .num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--accent);
  line-height: 1;
}
.stat .lbl { font-size: 0.86rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Notas ---------- */
.notas { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.notas li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.notas time { font-size: 0.78rem; color: var(--accent-2); font-weight: 600; white-space: nowrap; }
.notas p { margin: 0; font-size: 0.95rem; }

/* ---------- Tables ---------- */
.table-scroll {
  display: block; width: 100%; max-width: 100%; min-width: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.table-scroll > table { margin: 0 !important; min-width: 480px; width: 100%; border-collapse: collapse; }
:where(*:has(> .table-scroll), *:has(> * > .table-scroll), *:has(> * > * > .table-scroll)) { min-width: 0; }
table th, table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
table th { font-family: var(--serif); font-style: italic; font-weight: 600; background: var(--surface-2); }

/* ---------- Legal / doc pages ---------- */
.doc { padding-block: clamp(48px, 7vw, 90px); }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 12px; }
.doc .updated { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 40px; }
.doc h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 44px 0 14px; }
.doc h3 { font-size: 1.15rem; margin: 26px 0 10px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .editorial { max-width: 720px; }

/* ---------- Simple hero for subpages ---------- */
.page-hero { padding-block: clamp(48px, 8vw, 100px) clamp(30px, 4vw, 56px); border-top: 0; }
.page-hero h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); max-width: 16ch; margin-bottom: 20px; }
.page-hero p { color: var(--ink-soft); font-size: 1.1rem; max-width: 44ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(244,239,230,0.78);
  padding-block: clamp(48px, 6vw, 76px) 34px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(244,239,230,0.14);
}
@media (min-width: 720px) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-brand { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.6rem; color: var(--bg); margin-bottom: 14px; display: inline-block; text-decoration: none; }
.footer-brand span { color: var(--accent); }
.footer-top p { font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--sans); font-style: normal; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244,239,230,0.55); margin-bottom: 14px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: rgba(244,239,230,0.82); text-decoration: none; font-size: 0.92rem; transition: color 200ms ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 0.8rem;
  color: rgba(244,239,230,0.55);
}
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-bottom a { color: rgba(244,239,230,0.7); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 600ms cubic-bezier(.2,.7,.2,1), transform 600ms cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 80ms; }
.reveal.d2 { transition-delay: 160ms; }
.reveal.d3 { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .channel-card { opacity: 1 !important; transform: none !important; }
}
html.no-js .reveal { opacity: 1; transform: none; }
html.no-js .channel-card { opacity: 1; transform: none; }
html.no-js .hero h1 .word { opacity: 1; transform: none; animation: none; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 22px 22px 20px;
  box-shadow: 0 26px 60px -30px rgba(33,28,23,0.6);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), opacity 240ms ease;
  z-index: 9999;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
@media (min-width: 720px) { .cookie-banner { left: 24px; right: auto; max-width: 420px; } }
.cookie-banner h2 { font-size: 1.15rem; margin-bottom: 8px; }
.cookie-banner p { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 16px; }
.cookie-banner p a { color: var(--accent); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions button {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
/* reject given co-equal solid weight (fair consent, not a weak ghost) */
.cookie-actions button[data-consent="reject"] { background: var(--surface-2); border-color: var(--ink); color: var(--ink); }
.cookie-actions button[data-consent="accept"] { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.cookie-actions button[data-consent="accept"]:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.cookie-actions button[data-consent="reject"]:hover,
.cookie-actions button[data-consent="settings"]:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* cookie modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(33,28,23,0.55);
}
.cookie-modal.is-open { display: grid; }
.cookie-modal .box {
  background: var(--surface);
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  padding: 28px;
  max-height: 90vh;
  overflow-y: auto;
}
.cookie-modal h2 { font-size: 1.4rem; margin-bottom: 16px; }
.cookie-toggle {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.cookie-toggle .t strong { display: block; font-size: 0.98rem; }
.cookie-toggle .t span { font-size: 0.82rem; color: var(--ink-soft); }
.cookie-toggle input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 3px; }
.cookie-modal .save { margin-top: 20px; width: 100%; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px) {
  .taller { grid-template-columns: 1fr; gap: 12px; text-align: left; }
  .taller-date { text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .taller-date .d { font-size: 1.5rem; }
  .taller-cta { justify-self: start; }
  .manifiesto blockquote { font-size: 1.5rem; }
  .stats { gap: 18px; }
  .plato { border-radius: 8px; }
  .channel-card .ico { width: 42px; height: 42px; }
}

.scroll-progress{position:fixed;top:0;left:0;height:3px;width:0;background:var(--accent);z-index:9998;transition:width 80ms linear;pointer-events:none}

/* header-cta-padding-guard v1 */
.nav-desktop a.nav-cta, header a.nav-cta, .site-header a.nav-cta {
  padding: 10px 18px;
}

/* ============================================================
   CINEMATIC OVERHAUL v2 — hero, steam, tilt, gallery
   ============================================================ */
:root {
  --gold: #E7B15A;
  --gold-soft: #F3C6A0;
  --ember: #E06A3B;
}

/* ---- Home: transparent overlay header over cinematic hero ---- */
.home main { padding-top: 0; }

.home .site-header:not(.is-scrolled) {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  height: var(--header-h);
}
.home .site-header:not(.is-scrolled)::before {
  /* soft top scrim so white nav text stays legible over bright image areas */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 160%;
  background: linear-gradient(to bottom, rgba(20,14,10,0.55), rgba(20,14,10,0));
  pointer-events: none;
  z-index: -1;
}
.home .site-header:not(.is-scrolled) .brand,
.home .site-header:not(.is-scrolled) .nav-desktop a:not(.nav-cta) { color: #FFF7EE; }
.home .site-header:not(.is-scrolled) .brand span { color: var(--gold); }
.home .site-header:not(.is-scrolled) .nav-desktop a:not(.nav-cta)::after { background: var(--gold); }
.home .site-header:not(.is-scrolled) .nav-desktop a:not(.nav-cta):hover { color: var(--gold); }
.home .site-header:not(.is-scrolled) .nav-toggle span { background: #FFF7EE; }
.home .site-header:not(.is-scrolled) .nav-cta {
  background: rgba(255,255,255,0.14);
  border: 1.5px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(4px);
}
.home .site-header:not(.is-scrolled) .nav-cta:hover { background: var(--accent); border-color: var(--accent); }

/* ---- Cinematic hero ---- */
.hero-cinema {
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #1a120c;
  border-top: 0;
  padding: 0;
}
.hero-cinema__bg {
  position: absolute;
  inset: -6% -6% -6% -6%;
  background: url("/assets/images/hero-cinema.jpg") center 38% / cover no-repeat;
  z-index: -3;
  transform: scale(1.06);
  animation: kenBurns 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenBurns {
  0%   { transform: scale(1.06) translate3d(0, 0, 0); }
  100% { transform: scale(1.16) translate3d(-2.2%, -2.4%, 0); }
}
.hero-cinema__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(18,12,8,0.86) 0%, rgba(18,12,8,0.60) 42%, rgba(18,12,8,0.18) 78%, rgba(18,12,8,0.06) 100%),
    linear-gradient(0deg, rgba(18,12,8,0.80) 0%, rgba(18,12,8,0.20) 34%, rgba(18,12,8,0) 60%);
}
.hero-steam {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-cinema__inner {
  padding-top: calc(var(--header-h) + clamp(40px, 9vh, 90px));
  padding-bottom: clamp(54px, 9vh, 110px);
  width: 100%;
}
.eyebrow--light { color: var(--gold-soft); }
.eyebrow--light::after { background: var(--gold); }

.hero-cinema__title {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 600;
  color: #FFF8EF;
  font-size: clamp(2.2rem, 8.2vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 15ch;
  margin: 0 0 22px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.hero-cinema__title { position: relative; }
.hero-cinema__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-cinema__title em {
  font-style: italic;
  color: var(--gold);
}
/* Entrance driven by the SAME reveal mechanism as .reveal:
   JS adds .is-in (IntersectionObserver threshold 0 + setTimeout(1800) safety),
   and no-js / reduced-motion force the visible resting state. Content can
   never stay stuck hidden. */
.hero-cinema__title .line > span {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 0.9s cubic-bezier(.16,.84,.28,1);
  transition-delay: calc(var(--i, 0) * 130ms + 150ms);
}
.hero-cinema__sub,
.hero-cinema .hero-actions,
.hero-cinema .trust-strip {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.16,.84,.28,1);
}
.hero-cinema__sub { transition-delay: 0.46s; }
.hero-cinema .hero-actions { transition-delay: 0.58s; }
.hero-cinema .trust-strip { transition-delay: 0.7s; }

.hero-cinema.is-in .hero-cinema__title .line > span { transform: translateY(0); }
.hero-cinema.is-in .hero-cinema__sub,
.hero-cinema.is-in .hero-actions,
.hero-cinema.is-in .trust-strip { opacity: 1; transform: none; }

.hero-cinema__sub {
  font-size: clamp(1.1rem, 2.1vw, 1.45rem);
  color: rgba(255,247,238,0.9);
  max-width: 40ch;
  line-height: 1.45;
  margin: 0 0 30px;
}

/* hero buttons over dark image */
.hero-cinema .btn-ghost {
  color: #FFF8EF;
  border-color: rgba(255,247,238,0.55);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(3px);
}
.hero-cinema .btn-ghost:hover,
.hero-cinema .btn-ghost:focus-visible {
  background: #FFF8EF;
  color: var(--ink);
  border-color: #FFF8EF;
}
.hero-cinema .trust-strip {
  border-top-color: rgba(255,247,238,0.24);
}
.hero-cinema .trust-strip span { color: rgba(255,247,238,0.86); }
.hero-cinema .trust-strip svg { color: var(--gold); }

/* scroll cue */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: rgba(255,247,238,0.8);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-scroll svg { width: 22px; height: 22px; animation: scrollBob 1.9s ease-in-out infinite; }
@keyframes scrollBob { 0%,100% { transform: translateY(0); opacity: 0.7; } 50% { transform: translateY(6px); opacity: 1; } }
@media (max-width: 640px) { .hero-scroll { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero-cinema__bg { animation: none; transform: scale(1.06); }
  .hero-cinema__title .line > span,
  .hero-cinema__sub,
  .hero-cinema .hero-actions,
  .hero-cinema .trust-strip { transition: none !important; transform: none !important; opacity: 1 !important; }
  .hero-scroll svg { animation: none; }
}
html.no-js .hero-cinema__title .line > span,
html.no-js .hero-cinema__sub,
html.no-js .hero-cinema .hero-actions,
html.no-js .hero-cinema .trust-strip { transform: none !important; opacity: 1 !important; }

/* ---- Cook timeline band (moved below hero) ---- */
.cook-band { background: var(--surface-2); }
.cook-band .cook-timeline { margin: 0; }

/* ---- 3D tilt for cards ---- */
.tilt {
  transform-style: preserve-3d;
  transition: transform 300ms cubic-bezier(.2,.7,.2,1), box-shadow 300ms ease;
  will-change: transform;
}
/* active state uses (0,2,0) specificity so it beats .plato:hover / .precio:hover transforms */
.tilt.is-tilting,
.plato.tilt.is-tilting,
.precio.tilt.is-tilting {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.tilt::after {
  /* moving gloss/gleam highlight */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,236,205,0.30), rgba(255,236,205,0) 60%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
  z-index: 3;
}
.tilt.is-tilting::after { opacity: 1; }
@media (hover: none), (prefers-reduced-motion: reduce) {
  .tilt { transform: none !important; }
  .tilt::after { display: none; }
}

/* ---- Gallery mosaic ---- */
.galeria { background: var(--ink); color: var(--bg); }
.galeria .eyebrow { color: var(--gold-soft); }
.galeria .eyebrow::after { background: var(--gold); }
.galeria .sec-head h2 { color: #FFF8EF; }
.galeria .sec-head p { color: rgba(244,239,230,0.72); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gallery-grid .g-item:nth-child(1) { grid-column: span 2; }
@media (min-width: 760px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
  .gallery-grid .g-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}
.g-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  min-height: 0;
}
.gallery-grid .g-item:nth-child(1) { aspect-ratio: auto; }
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(.2,.7,.2,1), filter 500ms ease;
  filter: saturate(1.02);
}
.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,12,8,0.72), rgba(18,12,8,0) 55%);
  opacity: 0.85;
  transition: opacity 400ms ease;
}
.g-item figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  color: #FFF8EF;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  transform: translateY(4px);
  transition: transform 400ms ease;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.g-item:hover img { transform: scale(1.07); }
.g-item:hover::after { opacity: 1; }
.g-item:hover figcaption { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .g-item img { transition: none; }
  .g-item:hover img { transform: none; }
}

/* ---- Ingredient reveal chips (manifiesto flourish) ---- */
.ingredientes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.ingredientes li {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ingredientes li svg { width: 14px; height: 14px; color: var(--accent); flex: 0 0 auto; }

/* ---- warm ember accent on section eyebrows already handled ---- */

/* ============================================================
   POLISH v3 — cinematic grade, grain, shimmer, richer bands
   Additive only. All decor is pointer-events:none, inset,
   reduced-motion & no-js safe. No layout-affecting properties.
   ============================================================ */

/* Robust anchor offset under the fixed header (JS also offsets) */
main section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---- Hero color-grade: vignette + warm gold glow + film grain ---- */
.hero-cinema__grade {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(231,177,90,0.16), rgba(231,177,90,0) 46%),
    radial-gradient(90% 80% at 12% 96%, rgba(224,106,59,0.20), rgba(224,106,59,0) 55%),
    radial-gradient(130% 120% at 50% 42%, rgba(0,0,0,0) 52%, rgba(10,6,3,0.5) 100%);
}
.hero-cinema__grade::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  opacity: 0.05;
  mix-blend-mode: overlay;
}
/* keep hero title inner text above the grade */
.hero-cinema__inner { position: relative; z-index: 1; }

/* ---- Primary CTA: ember shimmer sweep on hover ---- */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,244,228,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 640ms cubic-bezier(.2,.7,.2,1);
}
.btn-primary:hover::before,
.btn-primary:focus-visible::before { transform: translateX(120%); }

/* ---- Richer stats band ---- */
.stats {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(26px, 3.4vw, 40px) clamp(20px, 3vw, 40px);
  box-shadow: 0 30px 70px -50px rgba(33,28,23,0.55);
}
.stats .stat { position: relative; padding: 6px 4px; }
@media (min-width: 720px) {
  .stats .stat + .stat::before {
    content: "";
    position: absolute;
    left: calc(-1 * clamp(12px, 1.5vw, 24px));
    top: 12%;
    height: 76%;
    width: 1px;
    background: var(--line);
  }
}
.stat .lbl { max-width: 22ch; }

/* ---- Recetario platos: framed image zoom on hover ---- */
.plato { overflow: hidden; }
.plato .plato-photo {
  transition: transform 700ms cubic-bezier(.2,.7,.2,1), filter 500ms ease;
  will-change: transform;
}
.plato:hover .plato-photo { transform: scale(1.055); filter: saturate(1.06) contrast(1.02); }
@media (hover: none), (prefers-reduced-motion: reduce) {
  .plato:hover .plato-photo { transform: none; filter: none; }
}

/* ---- Section number as subtle editorial watermark ---- */
.sec-head .sec-num { position: relative; }

/* ---- Manifiesto image: warm ring + depth ---- */
.manifiesto figure img { transition: transform 800ms cubic-bezier(.2,.7,.2,1); }
.manifiesto figure:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .manifiesto figure:hover img { transform: none; } }

/* ---- Chef-quote: soft ember halo ---- */
.chef-quote { overflow: hidden; }
.chef-quote::after {
  content: "";
  position: absolute;
  right: -30%;
  bottom: -40%;
  width: 70%;
  height: 90%;
  background: radial-gradient(circle, rgba(178,58,46,0.28), rgba(178,58,46,0) 70%);
  pointer-events: none;
}

/* ---- Featured price card: warm top edge ---- */
.precio.featured { position: relative; overflow: hidden; }
.precio.featured::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--accent), var(--ember));
}

/* ---- Gallery: staggered reveal that rides the .reveal observer ---- */
.gallery-grid .g-item {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
}
.gallery-grid.is-in .g-item { opacity: 1; transform: none; }
.gallery-grid.is-in .g-item:nth-child(2) { transition-delay: 90ms; }
.gallery-grid.is-in .g-item:nth-child(3) { transition-delay: 170ms; }
.gallery-grid.is-in .g-item:nth-child(4) { transition-delay: 250ms; }
.gallery-grid.is-in .g-item:nth-child(5) { transition-delay: 330ms; }
@media (prefers-reduced-motion: reduce) {
  .gallery-grid .g-item { opacity: 1 !important; transform: none !important; transition: none !important; }
}
html.no-js .gallery-grid .g-item { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .btn-primary::before { display: none; }
  .hero-cinema__grade::after { display: none; }
}
