/* =========================================================
   Quirc Farré · Farré·Llesp — estilos globales
   Paleta «Pirineo» (la del carrusel): melocotón + negro + rojo
   ========================================================= */

:root {
  --bg: #fdebe3;
  --bg-2: #fbe2d7;
  --card: #ffffff;
  --ink: #111111;
  --ink-2: #2a2624;
  --muted: #6e6560;
  --red: #e63b2e;
  --red-2: #c8301f;
  --line: rgba(17, 17, 17, 0.12);
  --line-2: rgba(17, 17, 17, 0.22);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 28px;
  --radius-sm: 16px;
  --border: 1.5px solid var(--ink);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--red); color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 9999;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 6px; }

/* ---------- Tipografía ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px;
  font-size: 14px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: "→"; font-weight: 700; }
.eyebrow--plain::before { content: none; }

.h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(40px, 6.2vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-2); max-width: 640px; margin: 26px 0 0; }
.muted { color: var(--muted); }

/* Resaltado rojo (como en el carrusel). El JS lo «pinta» al entrar en pantalla */
.hl {
  --hl: 1;
  padding: 0 0.1em; margin: 0 -0.04em;
  background: linear-gradient(var(--red), var(--red)) no-repeat 0 72% / calc(var(--hl) * 100%) 0.8em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
html.js:not(.no-anim) .hl[data-hl] { --hl: 0; }

/* Palabras partidas para animar (JS añade .w > span) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.2em 0.02em 0.12em; margin: -0.2em -0.02em -0.12em; }
.w > span { display: inline-block; will-change: transform; }

/* ---------- Botones ---------- */

.btn {
  --h: 58px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 30px;
  border-radius: 999px;
  font-weight: 800; font-size: 16px; letter-spacing: -0.005em;
  overflow: hidden; isolation: isolate;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform 0.55s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn .arrow { transition: transform 0.45s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }

.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark::before { background: var(--red); }
.btn--dark:hover { color: var(--ink); }

.btn--red { background: var(--red); color: var(--ink); }
.btn--red::before { background: var(--ink); }
.btn--red:hover { color: var(--bg); }

.btn--ghost { border: var(--border); color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--bg); }

.btn--light { background: var(--bg); color: var(--ink); }
.btn--light::before { background: #fff; }

.btn--sm { --h: 46px; padding: 0 22px; font-size: 14px; }
.magnetic { will-change: transform; }

/* Botón redondo negro con flecha (el «siguiente» del carrusel) */
.round {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center; flex: none;
  transition: transform 0.6s var(--ease-out), background 0.4s, color 0.4s;
}
.round svg { width: 28px; height: 28px; }
.round:hover { transform: rotate(-45deg) scale(1.06); background: var(--red); color: var(--ink); }

/* ---------- Cursor ---------- */

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 998; }
  .cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; }
  .has-cursor, .has-cursor * { cursor: none !important; }
  .cursor__dot { width: 8px; height: 8px; background: var(--red); }
  .cursor__ring {
    width: 42px; height: 42px; border: 1.5px solid rgba(17, 17, 17, 0.45);
    display: grid; place-items: center;
    transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), background 0.4s, border-color 0.4s;
  }
  .cursor__label { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity 0.3s; }
  .cursor.is-hover .cursor__ring { width: 70px; height: 70px; border-color: var(--red); background: rgba(230, 59, 46, 0.1); }
  .cursor.is-label .cursor__ring { width: 96px; height: 96px; background: var(--red); border-color: var(--red); }
  .cursor.is-label .cursor__label { opacity: 1; }
  .cursor.is-label .cursor__dot, .cursor.is-hover .cursor__dot { opacity: 0; }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- Barra de progreso + grano ---------- */

.progress {
  position: fixed; left: 0; top: 0; z-index: 120;
  width: 100%; height: 3px; background: var(--red);
  transform-origin: left; transform: scaleX(0);
}
.grain {
  position: fixed; inset: -50%; z-index: 997; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Navegación ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 110;
  transition: transform 0.6s var(--ease-out), background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(253, 235, 227, 0.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }

.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.logo__mark {
  width: 46px; height: 46px; border-radius: 50%; flex: none; background: #fff;
  box-shadow: 0 0 0 1.5px var(--ink);
  transition: transform 0.9s var(--ease-out);
}
.logo__mark img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.logo:hover .logo__mark { transform: rotate(-20deg) scale(1.06); }
.logo small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }
.logo__text { line-height: 1.15; }

.nav__links { display: flex; gap: 4px; }
.nav__link {
  position: relative; display: block; overflow: hidden;
  padding: 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  transition: color 0.3s, background 0.3s;
}
.nav__link span { display: block; transition: transform 0.5s var(--ease-out); }
.nav__link span::after { content: attr(data-text); position: absolute; left: 0; right: 0; top: 100%; text-align: center; color: var(--red); }
.nav__link:hover span { transform: translateY(-100%); }
.nav__link.is-active { color: var(--ink); background: rgba(17, 17, 17, 0.07); }
.nav__right { display: flex; align-items: center; gap: 12px; }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: var(--border); position: relative; }
.burger span {
  position: absolute; left: 50%; width: 18px; height: 2px; background: var(--ink);
  transform: translateX(-50%); transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: translateX(-50%) rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22px; transform: translateX(-50%) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 105;
  background: var(--red); color: var(--ink);
  clip-path: circle(0% at calc(100% - 46px) 39px);
  transition: clip-path 0.8s var(--ease-in-out);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 40px; visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 46px) 39px); visibility: visible; }
.menu-open .nav { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu__link { display: block; overflow: hidden; font-weight: 800; letter-spacing: -0.045em; font-size: clamp(44px, 12vw, 92px); line-height: 1.02; padding-top: 0.08em; }
.menu__link span { display: block; transform: translateY(105%); transition: transform 0.7s var(--ease-out); }
.menu-open .menu__link span { transform: translateY(0); }
.menu-open .menu__link:nth-child(2) span { transition-delay: 0.05s; }
.menu-open .menu__link:nth-child(3) span { transition-delay: 0.1s; }
.menu-open .menu__link:nth-child(4) span { transition-delay: 0.15s; }
.menu-open .menu__link:nth-child(5) span { transition-delay: 0.2s; }
.menu__foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 800; }

@media (max-width: 1000px) {
  .nav__links, .nav__right .btn { display: none; }
  .burger { display: block; }
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 90px; overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__glow {
  position: absolute; width: 60vmax; height: 60vmax; left: 70%; top: 50%;
  background: radial-gradient(circle, rgba(230, 59, 46, 0.13) 0%, rgba(230, 59, 46, 0) 60%);
  transform: translate(-50%, -50%); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 160px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(253, 235, 227, 0), var(--bg));
}
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.12fr 0.88fr; align-items: center; gap: clamp(32px, 5vw, 80px);
}
.hero__title { margin: 0; font-size: clamp(42px, 5.6vw, 86px); line-height: 1.02; letter-spacing: -0.05em; font-weight: 800; }
.hero__title .emoji { font-size: 0.82em; }
.hero__highlight {
  position: relative; display: inline-block; overflow: hidden;
  margin-top: 0.14em; padding: 0.02em 0.16em 0.1em;
  font-weight: 800; letter-spacing: -0.05em;
  font-size: clamp(42px, 5.6vw, 86px); line-height: 1.02;
  color: var(--ink);
}
.hero__highlight-bg { position: absolute; inset: 0.1em 0 0.12em; background: var(--red); transform-origin: left; overflow: hidden; }
.hero__highlight-bg::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-150%) skewX(-20deg);
  animation: shine 4.5s 3s infinite var(--ease-in-out);
}
@keyframes shine { 0%, 70% { transform: translateX(-150%) skewX(-20deg); } 100% { transform: translateX(350%) skewX(-20deg); } }
.hero__highlight-text { position: relative; display: block; }
.hero__lead { margin: 28px 0 0; max-width: 560px; font-size: clamp(17px, 1.45vw, 20px); color: var(--ink-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero__media { position: relative; justify-self: center; width: min(100%, 450px); }
.hero__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; background: var(--bg-2); border: 3px solid var(--red); }
.hero__photo img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 40%; }
.hero__frame { position: absolute; inset: 0; border: var(--border); border-radius: 30px; transform: translate(16px, 16px); z-index: -1; }
.hero__next { position: absolute; right: -36px; top: 50%; z-index: 3; margin-top: -36px; box-shadow: 0 0 0 6px var(--bg); }
.hero__stamp {
  position: absolute; left: -44px; bottom: -40px; z-index: 3; width: 132px; height: 132px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1.5px var(--ink), 0 18px 40px rgba(17, 17, 17, 0.18);
}
.hero__stamp img { width: 100%; height: 100%; border-radius: 50%; animation: wobble 9s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; z-index: 3; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll i { width: 1.5px; height: 46px; background: var(--line-2); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--red); animation: drip 1.8s var(--ease-in-out) infinite; }
@keyframes drip { to { top: 100%; } }

@media (max-width: 900px) {
  .hero { padding-top: 110px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; width: min(74%, 330px); justify-self: start; margin-left: 4px; }
  .hero__next { width: 58px; height: 58px; right: -29px; margin-top: -29px; }
  .hero__stamp { width: 92px; height: 92px; left: auto; right: -38px; bottom: -26px; }
  .hero__scroll { display: none; }
}

/* ---------- Secciones ---------- */

.section { position: relative; padding: clamp(90px, 13vw, 170px) 0; }
.section--tight { padding-top: clamp(40px, 6vw, 80px); }
.section--alt { background: var(--bg-2); }
.section__head { max-width: 980px; }

.scrub-text { margin: 36px 0 0; font-size: clamp(26px, 3.3vw, 46px); line-height: 1.2; font-weight: 700; letter-spacing: -0.035em; max-width: 1050px; }
.scrub-text .sw, .statement .sw { opacity: 0.16; }

/* Tarjetas apiladas */
.stack { margin-top: clamp(60px, 8vw, 110px); display: grid; gap: 28px; }
.stack__card {
  position: sticky; top: calc(110px + var(--i) * 26px);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 60px); align-items: center;
  min-height: min(520px, 70vh);
  padding: clamp(28px, 4vw, 56px);
  border-radius: 32px; background: var(--card); border: var(--border);
  transform-origin: 50% 0; overflow: hidden;
}
.stack__shade { position: absolute; inset: 0; background: var(--ink); opacity: 0; pointer-events: none; z-index: 5; }
.stack__num { font-weight: 800; font-size: clamp(70px, 9vw, 128px); line-height: 0.85; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 2px var(--red); }
.stack__title { margin: 22px 0 14px; font-weight: 800; letter-spacing: -0.045em; font-size: clamp(38px, 4.6vw, 66px); line-height: 1; }
.stack__text { margin: 0; color: var(--ink-2); font-size: clamp(17px, 1.35vw, 20px); max-width: 480px; }
.stack__viz { position: relative; height: 100%; min-height: 280px; display: grid; place-items: center; border-radius: 24px; background: var(--bg); overflow: hidden; }
.stack__viz svg { width: 100%; max-width: 440px; height: auto; overflow: visible; }

@media (max-width: 800px) {
  .stack__card { grid-template-columns: 1fr; top: calc(90px + var(--i) * 18px); min-height: 0; }
  .stack__viz { min-height: 200px; order: -1; }
  .stack__viz svg { max-width: 320px; }
}

/* Visual 01 — prado al aire libre */
.v-sun { transform-box: fill-box; transform-origin: center; }
.is-in .v-sun { animation: rise 2.4s var(--ease-out) both; }
@keyframes rise { from { transform: translateY(70px); } to { transform: none; } }
.v-rays { transform-box: fill-box; transform-origin: center; animation: spin 30s linear infinite; }
.v-cloud { animation: drift 22s linear infinite; }
.v-cloud--2 { animation-duration: 30s; animation-delay: -12s; }
@keyframes drift { from { transform: translateX(-160px); } to { transform: translateX(480px); } }
.v-cow { animation: graze 9s ease-in-out infinite; }
.v-cow--2 { animation-duration: 12s; animation-direction: reverse; }
@keyframes graze { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(40px); } }
.v-head { transform-box: fill-box; transform-origin: 80% 20%; animation: nod 3s ease-in-out infinite; }
@keyframes nod { 0%, 60%, 100% { transform: rotate(0); } 75% { transform: rotate(18deg); } }
.v-grass path { transform-box: fill-box; transform-origin: bottom; animation: sway 3.2s ease-in-out infinite; }
.v-grass path:nth-child(2n) { animation-delay: -1.4s; }
@keyframes sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

/* Visual 02 — sello ecológico */
.v-seal { transform-box: fill-box; transform-origin: center; animation: spin 24s linear infinite; }
.v-leaf { transform-box: fill-box; transform-origin: bottom center; transform: scale(0); }
.is-in .v-leaf { animation: grow 1.4s var(--ease-out) forwards; }
.is-in .v-leaf--2 { animation-delay: 0.35s; }
.is-in .v-leaf--3 { animation-delay: 0.7s; }
@keyframes grow { to { transform: scale(1); } }
.v-stem { stroke-dasharray: 160; stroke-dashoffset: 160; }
.is-in .v-stem { animation: draw 1.2s var(--ease-out) forwards; }
.v-check { stroke-dasharray: 60; stroke-dashoffset: 60; }
.is-in .v-check { animation: draw 0.7s 1.6s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Visual 03 — del prado a tu casa */
.v-route { stroke-dasharray: 8 10; animation: march 1.2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -36; } }
.v-pin { transform-box: fill-box; transform-origin: bottom center; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.v-door { transform-box: fill-box; transform-origin: left; animation: door 4s ease-in-out infinite; }
@keyframes door { 0%, 70%, 100% { transform: scaleX(1); } 82%, 92% { transform: scaleX(0.25); } }

/* ---------- Métricas ---------- */

.metrics__grid { margin-top: clamp(50px, 6vw, 80px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.metric {
  --mx: 50%; --my: 50%;
  position: relative; padding: 34px 30px 32px; border-radius: var(--radius);
  background: var(--card); border: var(--border);
  overflow: hidden; isolation: isolate;
  min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.metric::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(230, 59, 46, 0.16), transparent 60%);
}
.metric:hover::before { opacity: 1; }
.metric__value { font-weight: 800; font-size: clamp(54px, 6vw, 86px); line-height: 0.9; letter-spacing: -0.06em; color: var(--red); font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric__value small { font-size: 0.45em; letter-spacing: -0.03em; color: var(--ink); margin-left: 4px; }
.metric__value--text { font-size: clamp(40px, 4.2vw, 62px); }
.metric__label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; margin: 0 0 8px; }
.metric__text { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.metrics__cta { margin-top: 46px; display: flex; justify-content: center; }
@media (max-width: 900px) { .metrics__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .metrics__grid { grid-template-columns: 1fr; } .metric { min-height: 0; } }

/* ---------- CTA final ---------- */

.cta { position: relative; padding: 0; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; background: var(--red); clip-path: circle(8% at 50% 50%); }
.cta__inner {
  position: relative; z-index: 2; color: var(--ink); text-align: center;
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px var(--gutter);
}
.cta .eyebrow { color: var(--ink); }
.cta__title { margin: 0; font-weight: 800; font-size: clamp(60px, 12.5vw, 210px); line-height: 0.92; letter-spacing: -0.06em; }
.cta__text { max-width: 620px; margin: 30px auto 40px; font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; }
.cta__text strong { background: var(--ink); color: var(--bg); padding: 0 8px; border-radius: 4px; }
.cta__sign {
  display: inline-block; margin-top: 30px; padding: 14px 22px; border-radius: 14px; background: #fff; border: var(--border);
  font-weight: 800; font-size: clamp(16px, 1.6vw, 20px); letter-spacing: -0.02em; transform: rotate(-2.5deg);
}

/* ---------- Footer ---------- */

.footer { position: relative; padding: clamp(80px, 10vw, 130px) 0 30px; overflow: hidden; border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__tagline { margin: 0; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; font-weight: 800; letter-spacing: -0.035em; max-width: 470px; }
.footer__title { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin: 6px 0 16px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__list a { position: relative; font-weight: 600; }
.footer__list a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1.5px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out); }
.footer__list a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__giant {
  margin: clamp(60px, 8vw, 110px) 0 0;
  font-weight: 800; letter-spacing: -0.06em; line-height: 0.9;
  font-size: clamp(48px, 12vw, 200px); white-space: nowrap;
  text-align: center; overflow: hidden; padding: 0.12em 0 0.06em;
}
.footer__giant-inner { display: inline-block; }
.wd { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; will-change: transform; }
.footer__bottom { margin-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
@media (max-width: 800px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* =========================================================
   PÁGINAS INTERIORES
   ========================================================= */

/* ---------- Cabecera de página (curvas de nivel que siguen al ratón) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  min-height: 92vh; min-height: 92svh;
  display: flex; align-items: center;
  padding: 140px 0 100px;
}
.page-hero__bg {
  --mx: 50%; --my: 40%;
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='480' height='240' viewBox='0 0 480 240'><g fill='none' stroke='%23111' stroke-opacity='.16' stroke-width='1.2'><path d='M0 30 C 80 0, 160 60, 240 30 S 400 0, 480 30'/><path d='M0 70 C 80 40, 160 100, 240 70 S 400 40, 480 70'/><path d='M0 110 C 90 80, 150 140, 240 110 S 390 80, 480 110'/><path d='M0 150 C 100 120, 140 180, 240 150 S 380 120, 480 150'/><path d='M0 190 C 80 160, 160 220, 240 190 S 400 160, 480 190'/><path d='M0 230 C 80 200, 160 260, 240 230 S 400 200, 480 230'/></g></svg>");
  background-size: 480px 240px;
  -webkit-mask-image: radial-gradient(480px circle at var(--mx) var(--my), #000 0%, transparent 72%);
          mask-image: radial-gradient(480px circle at var(--mx) var(--my), #000 0%, transparent 72%);
}
.page-hero__glow {
  position: absolute; width: 56vmax; height: 56vmax; left: 78%; top: 28%;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, rgba(230, 59, 46, 0.13) 0%, rgba(230, 59, 46, 0) 60%);
}
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; pointer-events: none; background: linear-gradient(to bottom, rgba(253, 235, 227, 0), var(--bg)); }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__title { margin: 0; font-weight: 800; font-size: clamp(50px, 8.4vw, 130px); line-height: 1; letter-spacing: -0.055em; max-width: 13ch; }
.page-hero__sub { margin: 22px 0 0; font-size: clamp(20px, 2vw, 28px); font-weight: 800; letter-spacing: -0.03em; }
.page-hero__lead { margin: 22px 0 0; max-width: 640px; font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); }
.page-hero__ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

.page-hero--center { text-align: center; }
.page-hero--center .page-hero__title, .page-hero--center .page-hero__lead { margin-inline: auto; }
.page-hero--center .page-hero__title { max-width: 15ch; }
.page-hero--center .page-hero__ctas, .page-hero--center .eyebrow { justify-content: center; }
.page-hero--center .page-hero__glow { left: 50%; top: 45%; }

.page-hero--split .page-hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.page-hero__media { position: relative; justify-self: center; width: min(100%, 420px); }
.page-hero__photo { aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; background: var(--bg-2); border: 3px solid var(--red); }
.page-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.page-hero__media .hero__frame { transform: translate(-16px, 16px); }

@media (max-width: 900px) {
  .page-hero { min-height: 0; padding: 130px 0 80px; }
  .page-hero--split .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__media { order: -1; width: min(72%, 300px); justify-self: start; margin-left: 16px; }
}

/* ---------- Texto grande con resaltados (scrub) ---------- */
.statement { margin: 0; max-width: 1100px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.16; font-weight: 800; letter-spacing: -0.04em; }
.statement em { font-style: normal; color: var(--red); }

/* ---------- Filas (cortes, contacto) ---------- */
.rows { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; gap: 14px; }
.row {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 92px; padding: 18px 26px 18px 34px;
  background: var(--card); border: var(--border); border-radius: var(--radius);
  font-weight: 800; font-size: clamp(22px, 2.3vw, 32px); letter-spacing: -0.035em;
  transition: color 0.45s var(--ease-out);
}
.row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out); }
.row:hover::before { transform: scaleX(1); }
.row__emoji { font-size: 1.1em; transition: transform 0.6s var(--ease-out); }
.row:hover .row__emoji { transform: rotate(-14deg) scale(1.2); }
.row__num { color: var(--red); margin-right: 14px; transition: color 0.4s; }
.row:hover .row__num { color: var(--ink); }
.row small { display: block; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-top: 2px; transition: color 0.4s; }
.row:hover small { color: var(--ink); }

.cuts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 60px); margin-top: clamp(50px, 6vw, 80px); }
.cuts__title { margin: 0; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; font-weight: 800; letter-spacing: -0.04em; }
.cuts .rows { margin-top: 26px; }
@media (max-width: 900px) { .cuts { grid-template-columns: 1fr; } }

/* ---------- Línea de tiempo (La ganadería) ---------- */
.timeline { position: relative; margin-top: clamp(50px, 7vw, 100px); }
.timeline__line { position: absolute; top: 0; bottom: 0; left: 250px; width: 2px; background: var(--line-2); }
.timeline__fill { position: absolute; inset: 0; background: var(--red); transform-origin: top; transform: scaleY(0); }
.chapter { position: relative; display: grid; grid-template-columns: 210px 1fr; gap: 80px; padding: clamp(40px, 6vw, 80px) 0; }
.chapter__age { position: sticky; top: 120px; align-self: start; text-align: right; }
.chapter__age-num {
  display: block; font-weight: 800; line-height: 0.82; letter-spacing: -0.06em;
  font-size: clamp(90px, 10vw, 150px);
  color: transparent; -webkit-text-stroke: 1.5px rgba(17, 17, 17, 0.25);
  transition: color 0.6s, -webkit-text-stroke-color 0.6s;
}
.chapter.is-active .chapter__age-num { color: var(--red); -webkit-text-stroke-color: var(--red); }
.chapter__age small { display: block; margin-top: 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.chapter__dot {
  position: absolute; left: 251px; top: calc(clamp(40px, 6vw, 80px) + 34px);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-2);
  transform: translateX(-50%); transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.chapter.is-active .chapter__dot { background: var(--red); border-color: var(--ink); box-shadow: 0 0 0 7px rgba(230, 59, 46, 0.18); }
.chapter__content { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 44px; align-items: start; }
.chapter__img { margin: 0; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--bg-2); border: var(--border); }
.chapter__img img { width: 100%; height: 118%; object-fit: cover; }
.chapter__title { margin: 0 0 16px; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.12; letter-spacing: -0.04em; font-weight: 800; }
.chapter__body p { margin: 0 0 14px; color: var(--ink-2); }
.chapter__quote {
  margin: 22px 0 !important; padding: 18px 22px;
  border-left: 4px solid var(--red); border-radius: 0 14px 14px 0;
  background: #fff; font-size: 19px; font-weight: 700; color: var(--ink) !important;
}
@media (max-width: 1000px) { .chapter__content { grid-template-columns: 1fr; gap: 26px; } }
@media (max-width: 760px) {
  .timeline__line { left: 8px; }
  .chapter { grid-template-columns: 1fr; gap: 18px; padding-left: 38px; }
  .chapter__age { position: relative; top: 0; text-align: left; display: flex; align-items: baseline; gap: 12px; }
  .chapter__age-num { font-size: 80px; }
  .chapter__age small { margin: 0; }
  .chapter__dot { left: 9px; top: calc(clamp(40px, 6vw, 80px) + 24px); }
}

/* ---------- Tarjetas con relieve (tilt) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(46px, 6vw, 80px); }
.feature {
  position: relative; overflow: hidden;
  min-height: 340px; padding: 34px 30px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  border-radius: var(--radius); border: var(--border); background: var(--card);
  transform-style: preserve-3d; will-change: transform;
}
.feature__glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(230, 59, 46, 0.16), transparent 60%); }
.feature:hover .feature__glare { opacity: 1; }
.feature__idx { position: absolute; right: 22px; top: 10px; font-weight: 800; font-size: 84px; line-height: 1; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.2px rgba(17, 17, 17, 0.14); }
.feature__icon { width: 66px; height: 66px; border-radius: 20px; background: var(--red); border: var(--border); display: grid; place-items: center; font-size: 32px; transform: translateZ(40px); }
.feature__title { margin: 0 0 12px; transform: translateZ(30px); font-weight: 800; letter-spacing: -0.045em; font-size: clamp(30px, 2.8vw, 42px); line-height: 1; }
.feature__text { margin: 0; color: var(--ink-2); transform: translateZ(20px); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } .feature { min-height: 0; } }

/* ---------- Lotes ---------- */
.lots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(46px, 6vw, 70px); }
.lot {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(380px, 46vw, 560px); padding: clamp(26px, 3vw, 40px);
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: 32px; border: var(--border); background: var(--card);
  transform-style: preserve-3d; will-change: transform;
}
.lot__tag { align-self: flex-start; padding: 8px 14px; border-radius: 999px; border: var(--border); font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.lot__kg { display: flex; align-items: center; justify-content: center; gap: 0.12em; font-weight: 800; letter-spacing: -0.06em; font-size: clamp(76px, 10vw, 150px); line-height: 1; transform: translateZ(50px); }
.lot__kg span { font-size: 0.5em; letter-spacing: -0.03em; }
.lot__kg .emoji { font-size: 0.5em; display: inline-block; animation: wobble 4s ease-in-out infinite; }
.lot__text { margin: 0; color: var(--ink-2); max-width: 34ch; transform: translateZ(24px); }
.lot__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.lot__glare { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 0%), rgba(230, 59, 46, 0.18), transparent 60%); }
.lot:hover .lot__glare { opacity: 1; }
.lot--big { background: var(--red); }
.lot--big .lot__text { color: var(--ink); }
.lot--big .lot__glare { background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.35), transparent 60%); }
.lots__more { margin: 22px 0 0; text-align: center; color: var(--ink-2); font-weight: 600; }
.lots__more strong { font-weight: 800; }
@media (max-width: 760px) { .lots { grid-template-columns: 1fr; } .lot { min-height: 340px; } }

/* Foto + texto */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.split__img { margin: 0; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; border: var(--border); background: var(--bg-2); }
.split__img img { width: 100%; height: 115%; object-fit: cover; }
.ticks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: clamp(18px, 1.7vw, 23px); letter-spacing: -0.025em; }
.ticks li::before {
  content: "✔"; flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--red); color: var(--ink); display: grid; place-items: center; font-size: 19px;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split__img { aspect-ratio: 4 / 3; } }

/* ---------- Galería horizontal (El Pirineo) ---------- */
.gal { overflow: hidden; }
.gal__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.gal__viewport { margin-top: clamp(46px, 6vw, 70px); }
.gal__track { display: flex; gap: 22px; padding-inline: var(--gutter); width: max-content; will-change: transform; align-items: flex-start; }
.shot { width: clamp(280px, 28vw, 400px); flex: none; margin: 0; }
.shot:nth-child(2n) { margin-top: 60px; }
.shot__img { position: relative; aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden; border: var(--border); background: var(--bg-2); }
.shot--wide { width: clamp(340px, 40vw, 560px); }
.shot--wide .shot__img { aspect-ratio: 16 / 10; }
.shot__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.shot:hover .shot__img img { transform: scale(1.06); }
.shot figcaption { margin-top: 14px; display: flex; gap: 12px; align-items: baseline; font-weight: 700; letter-spacing: -0.015em; }
.shot figcaption b { color: var(--red); font-weight: 800; }
@media (max-width: 900px), (max-height: 649px) {
  .gal__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .gal__viewport::-webkit-scrollbar { display: none; }
  .shot, .shot--wide { scroll-snap-align: center; width: 78vw; }
  .shot:nth-child(2n) { margin-top: 0; }
}

/* ---------- Pasos (Pedir) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(46px, 6vw, 70px); counter-reset: s; }
.step {
  position: relative; padding: 30px 28px 32px; border-radius: var(--radius); border: var(--border); background: var(--card);
  min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
}
.step__n { font-weight: 800; font-size: 86px; line-height: 0.85; letter-spacing: -0.06em; color: var(--red); }
.step__title { margin: 0 0 8px; font-weight: 800; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -0.04em; line-height: 1.1; }
.step__text { margin: 0; color: var(--muted); }
.step__arrow { position: absolute; right: -27px; top: 50%; margin-top: -18px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.step__arrow svg { width: 16px; height: 16px; }
.step:last-child .step__arrow { display: none; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step__arrow { right: 50%; top: auto; bottom: -27px; margin: 0 -18px 0 0; transform: rotate(90deg); }
}

/* ---------- Formulario de pedido ---------- */
.join { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.join__copy { position: sticky; top: 120px; }
.join__card { position: relative; overflow: hidden; padding: clamp(24px, 4vw, 44px); border-radius: 32px; background: var(--card); border: var(--border); }
.join__card::before { content: ""; position: absolute; width: 380px; height: 380px; right: -150px; top: -170px; pointer-events: none; background: radial-gradient(circle, rgba(230, 59, 46, 0.16), transparent 65%); }
.fset { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.fset legend { padding: 0; margin: 0 0 12px; font-weight: 800; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px;
  border-radius: 999px; border: var(--border); background: var(--bg);
  font-weight: 700; font-size: 15.5px; transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}
.pill input:checked + span { background: var(--red); }
.pill input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.pill:hover span { transform: translateY(-2px); }
.pill--big span { min-height: 62px; padding: 12px 24px; font-size: 19px; font-weight: 800; }
.field { position: relative; margin-bottom: 14px; }
.field input, .field textarea {
  width: 100%; height: 62px; padding: 24px 20px 8px;
  border-radius: 14px; border: var(--border); background: var(--bg);
  color: var(--ink); font: inherit; font-size: 17px; outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { height: 120px; resize: vertical; padding-top: 30px; line-height: 1.45; }
.field input:focus, .field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(230, 59, 46, 0.16); }
.field label { position: absolute; left: 21px; top: 20px; pointer-events: none; color: var(--muted); transform-origin: left top; transition: transform 0.3s var(--ease-out), color 0.3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-12px) scale(0.74); color: var(--red-2); }
.fields2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .fields2 { grid-template-columns: 1fr; } }
.form__btn { width: 100%; margin-top: 6px; --h: 62px; }
.form__preview { margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px dashed var(--line-2); font-size: 14.5px; color: var(--ink-2); white-space: pre-line; }
.form__preview b { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.form__alt { margin: 16px 0 0; font-size: 14.5px; color: var(--muted); text-align: center; }
.form__alt a { color: var(--ink); font-weight: 800; border-bottom: 1.5px solid var(--red); }
.has-cursor input, .has-cursor textarea { cursor: text !important; }
@media (max-width: 900px) { .join { grid-template-columns: 1fr; } .join__copy { position: static; } }

/* ---------- Filas de contacto ---------- */
.socials { margin-top: clamp(40px, 5vw, 70px); border-top: var(--border); }
.social {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 20px; border-bottom: var(--border);
  transition: color 0.5s var(--ease-out);
}
.social::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease-out); }
.social:hover::before { transform: scaleY(1); }
.social__left { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); min-width: 0; }
.social__icon { width: clamp(34px, 4vw, 52px); height: clamp(34px, 4vw, 52px); flex: none; color: var(--red); transition: color 0.4s; }
.social:hover .social__icon { color: var(--ink); }
.social__name { font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-size: clamp(36px, 6.4vw, 92px); transition: transform 0.6s var(--ease-out); }
.social:hover .social__name { transform: translateX(14px); }
.social__meta { display: flex; align-items: center; gap: 18px; font-weight: 700; color: var(--muted); transition: color 0.4s; }
.social:hover .social__meta { color: var(--ink); }
.social__arrow { width: 62px; height: 62px; border-radius: 50%; border: var(--border); display: grid; place-items: center; flex: none; transition: transform 0.6s var(--ease-out), background 0.4s, color 0.4s; }
.social__arrow svg { width: 22px; height: 22px; }
.social:hover .social__arrow { transform: rotate(-45deg); background: var(--ink); color: var(--bg); }
@media (max-width: 640px) {
  .social { padding: 20px 8px; }
  .social__handle { display: none; }
  .social__arrow { width: 46px; height: 46px; }
}

/* ---------- Varios ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: end; }
.two-col .lead { margin: 0; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .section__head, .center .lead { margin-inline: auto; }

/* La cabecera espera oculta a que el JS la anime (así no parpadea); si el JS no carga, aparece igual */
html.js .hero__grid, html.js .page-hero__inner { opacity: 0; animation: heroFallback 0s 2.5s forwards; }
@keyframes heroFallback { to { opacity: 1; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .grain { display: none; }
  .scrub-text .sw, .statement .sw { opacity: 1; }
  html.js .hero__grid, html.js .page-hero__inner { opacity: 1; animation: none; }
  .hl[data-hl] { --hl: 1 !important; }
}

/* Seguro por si el JS no carga: nada se queda tapado */
html.no-anim .scrub-text .sw, html.no-anim .statement .sw { opacity: 1; }
html.no-anim .hero__grid, html.no-anim .page-hero__inner { opacity: 1; animation: none; }
html.no-anim .hl[data-hl] { --hl: 1; }

.nowrap { white-space: nowrap; }
