/* ═══════════════════════════════════════════════════════════
   El Cierzo de Sediles
   1. Fuentes y variables   2. Base   3. Piezas comunes
   4. Cabecera   5. Secciones (en orden de página)
   6. Pie y botón fijo   7. Lightbox y cursor
   8. Estados de animación   9. Menos movimiento
   ═══════════════════════════════════════════════════════════ */

/* ── 1. Fuentes y variables ─────────────────────────────── */
/* Fraunces va recortada al peso 300–400, que es lo que usan los titulares (tools/build-fonts.py).
   Si hace falta un peso mayor, hay que ampliar el recorte allí y el rango aquí. */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 300 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var-italic.woff2") format("woff2");
  font-weight: 300 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

/* Registradas como color para que el cambio de tema se funda en vez de saltar */
@property --bg     { syntax: "<color>"; inherits: true; initial-value: #F3EEE3; }
@property --fg     { syntax: "<color>"; inherits: true; initial-value: #1E2326; }
@property --muted  { syntax: "<color>"; inherits: true; initial-value: #5E625F; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #A8552B; }
@property --card   { syntax: "<color>"; inherits: true; initial-value: #E8E0D0; }

:root {
  /* La paleta sale de la casa: cal, pizarra, óxido, teja, madera */
  --cal: #F3EEE3;
  --cal-2: #E8E0D0;
  --pizarra: #1E2326;
  --pizarra-2: #293034;
  --pizarra-3: #161A1C;
  --oxido: #A8552B;
  --teja: #C8603C;
  --madera: #6B4A2E;
  --cielo: #9DB8C7;
  --brasa: #F2A65A;

  --bg: var(--cal);
  --fg: var(--pizarra);
  --muted: #5E625F;
  --line: rgba(30, 35, 38, .16);
  --accent: var(--oxido);
  --card: var(--cal-2);

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(1.25rem, 4.2vw, 3.75rem);
  --wrap: 82rem;
  --section: clamp(5rem, 12vw, 11rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

/* Tema oscuro. Sin animaciones lo decide cada sección; con ellas, el <body> entero. */
html:not(.motion) [data-theme="dark"],
body[data-theme="dark"],
.foot {
  --bg: #1E2326;
  --fg: #F3EEE3;
  --muted: #A9ABA2;
  --line: rgba(243, 238, 227, .18);
  --accent: #F2A65A;
  --card: #293034;
}
html.motion [data-theme="light"]:not(body),
html.motion [data-theme="dark"]:not(body) { background: transparent; }
html.motion body {
  transition: --bg .9s var(--ease), --fg .9s var(--ease), --muted .9s var(--ease),
              --accent .9s var(--ease), --card .9s var(--ease);
}

/* ── 2. Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
html:not(.motion) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* Grano muy fino para quitar el aspecto "de pantalla" */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { position: relative; padding-block: var(--section); }
section[data-theme], .marquee, .foot { background: var(--bg); color: var(--fg); }

.skip {
  position: fixed; top: .75rem; left: .75rem; z-index: 300; padding: .7rem 1rem;
  background: var(--cal); color: var(--pizarra); border-radius: 4px; transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ── 3. Piezas comunes ──────────────────────────────────── */
.eyebrow {
  display: flex; align-items: center; gap: .9rem;
  font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: currentColor; }

.h-display, .h-giant, .name__statement, .quote__text p {
  font-family: var(--display);
  font-weight: 340;
  font-variation-settings: "SOFT" 60, "WONK" 0;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.h-display { font-size: clamp(2.5rem, 6.2vw, 5.4rem); line-height: 1; }
.h-giant   { font-size: clamp(3.4rem, 12.5vw, 11.5rem); line-height: .9; letter-spacing: -.035em; }
.h-display em, .h-giant em, .quote__text em {
  font-weight: 300; color: var(--accent);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.lead { font-size: clamp(1.1rem, 1rem + .55vw, 1.4rem); line-height: 1.5; max-width: 38em; }

.btn {
  position: relative; display: inline-flex; align-items: center; gap: .7rem;
  padding: 1.05rem 1.7rem; border: 1px solid currentColor; border-radius: 999px;
  font-weight: 500; line-height: 1; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--fg); transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: none; }
.btn svg { transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--small { padding: .75rem 1.25rem; font-size: .92rem; }
.btn--light { background: var(--cal); color: var(--pizarra); border-color: var(--cal); }
.btn--light::before { background: var(--brasa); }
.btn--light:hover { color: var(--pizarra); border-color: var(--brasa); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem; font-weight: 500;
  padding-bottom: .3rem; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.link-arrow:hover { color: var(--accent); background-size: 0 1px; background-position: 100% 100%; }
.link-arrow svg { transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

.tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.tags li {
  padding: .38rem .8rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .8rem; line-height: 1.2; color: var(--muted);
}

.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 95; pointer-events: none; }
.progress__bar { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
html:not(.motion) .progress { display: none; }

/* ── 4. Cabecera ────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1rem var(--pad);
  color: var(--fg);
  transition: transform .6s var(--ease), background-color .5s, color .5s, padding .5s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  opacity: 1; transition: opacity .5s;
}
html:not(.js) .nav { position: absolute; }
.nav.is-top { color: var(--cal); padding-block: 1.5rem; }
.nav.is-top::before { opacity: 0; }
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-hidden:focus-within { transform: none; }
.nav.is-open { transform: none; color: var(--cal); }
.nav.is-open::before { opacity: 0; }

.nav__brand { display: inline-flex; align-items: center; gap: .65rem; position: relative; z-index: 2; }
.nav__mark { transition: transform 1.2s var(--ease); }
.nav__brand:hover .nav__mark { transform: rotate(180deg); }
.nav.is-top .nav__mark path:last-child { fill: var(--brasa); }
.nav__name { font-family: var(--display); font-style: italic; font-size: 1.35rem; font-weight: 400; letter-spacing: -.01em; }

.nav__menu { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.nav__links { display: flex; gap: clamp(1.1rem, 2.4vw, 2.2rem); font-size: .95rem; }
.nav__links a { position: relative; display: inline-block; padding-block: .35rem; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__toggle { display: none; }
/* Cambio de idioma: discreto en la cabecera, cómodo para el dedo en el menú del móvil */
.nav__lang { font-size: .78rem; font-weight: 600; letter-spacing: .14em; padding: .5rem .25rem; opacity: .72; transition: opacity .3s; }
.nav__lang:hover, .nav__lang:focus-visible { opacity: 1; }

@media (max-width: 899px) {
  .nav__links { display: none; }
  .js .nav__toggle {
    display: inline-flex; align-items: center; gap: .7rem; position: relative; z-index: 2;
    font-size: .9rem; font-weight: 500; padding: .5rem 0 .5rem .5rem;
  }
  .nav__burger { display: grid; gap: 6px; width: 26px; }
  .nav__burger i { display: block; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
  .nav.is-open .nav__burger i:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav__burger i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .js .nav__menu {
    position: fixed; inset: 0; z-index: 1; height: 100dvh;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 2.5rem;
    padding: 6rem var(--pad) 3rem;
    background: var(--pizarra); color: var(--cal);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .8s var(--ease-io), visibility 0s .8s;
  }
  .js .nav.is-open .nav__menu { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease-io), visibility 0s; }
  .js .nav__links { display: grid; gap: .35rem; font-family: var(--display); font-size: clamp(2.4rem, 11vw, 3.6rem); line-height: 1.12; font-weight: 340; }
  .js .nav__links a { overflow: hidden; }
  .js .nav__links a span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease); }
  .js .nav.is-open .nav__links a span { transform: none; }
  .js .nav.is-open .nav__links li:nth-child(1) span { transition-delay: .18s; }
  .js .nav.is-open .nav__links li:nth-child(2) span { transition-delay: .24s; }
  .js .nav.is-open .nav__links li:nth-child(3) span { transition-delay: .30s; }
  .js .nav.is-open .nav__links li:nth-child(4) span { transition-delay: .36s; }
  .js .nav.is-open .nav__links li:nth-child(5) span { transition-delay: .42s; }
  .js .nav__cta { border-color: var(--cal); padding: 1.05rem 1.7rem; font-size: 1rem; }
  .js .nav__lang { font-size: .95rem; padding: .75rem 0; margin-block: -1.25rem; opacity: 1; text-decoration: underline; text-underline-offset: .3em; }
}

/* ── 5.1 Portada ────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: end;
  background: var(--pizarra); color: var(--cal);
}
.hero__media { position: absolute; inset: -6% 0; z-index: -3; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(22, 26, 28, .72) 0%, rgba(22, 26, 28, .34) 34%, rgba(22, 26, 28, .5) 62%, rgba(22, 26, 28, .9) 100%),
    linear-gradient(100deg, rgba(30, 40, 48, .7) 0%, rgba(30, 40, 48, 0) 62%);
}
/* Escritorio: las fotos son verticales, de móvil, y a pantalla completa habría que ampliarlas al doble.
   La portada se parte en dos: a la izquierda la pizarra y el viento, a la derecha la casa por dentro, a su tamaño. */
@media (min-width: 900px) {
  .hero { --hero-photo: min(50vw, 58rem); }
  .hero__media { inset: -6% 0 -6% auto; width: var(--hero-photo); }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(22, 26, 28, .62) 0%, rgba(22, 26, 28, .1) 30%, rgba(22, 26, 28, .2) 60%, rgba(22, 26, 28, .86) 100%),
      linear-gradient(90deg, var(--pizarra) 0, var(--pizarra) calc(100% - var(--hero-photo)), rgba(30, 35, 38, .6) calc(100% - var(--hero-photo) * .78), rgba(30, 35, 38, 0) calc(100% - var(--hero-photo) * .35));
  }
}
.hero__wind { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.hero__inner { padding-top: 7rem; padding-bottom: clamp(1.5rem, 4vh, 3rem); }
.hero__eyebrow { color: rgba(243, 238, 227, .8); margin-bottom: clamp(.5rem, 2vh, 1.5rem); }

.hero__title {
  font-family: var(--display); font-weight: 300; line-height: .8; letter-spacing: -.045em;
  font-size: clamp(5.2rem, 23.5vw, 22rem);
  margin-left: -.035em; margin-bottom: clamp(1.5rem, 5vh, 3.5rem);
  text-shadow: 0 2px 40px rgba(0, 0, 0, .25);
}
.hero__el {
  display: block; font-size: .27em; font-weight: 340; letter-spacing: -.01em; line-height: 1;
  margin-left: .22em; margin-bottom: -.06em;
}
.hero__cierzo {
  display: block; font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1;
  transform-origin: 0 100%;
  transform: skewX(calc(var(--gust, 0) * -5deg));
  padding-right: .1em;
}
.char { display: inline-block; } /* sin will-change fijo: GSAP lo pone solo mientras anima (menos capas en memoria) */

.hero__foot {
  display: grid; gap: 1.5rem; align-items: end;
  padding-top: 1.5rem; border-top: 1px solid rgba(243, 238, 227, .28);
}
.hero__lead { font-family: var(--display); font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.12; font-weight: 340; }
.hero__lead em { color: var(--brasa); font-variation-settings: "SOFT" 100, "WONK" 1; }
.hero__facts { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); font-size: .86rem; color: rgba(243, 238, 227, .78); }
.hero__facts b { display: block; font-family: var(--display); font-weight: 340; font-size: 1.9rem; line-height: 1.1; color: var(--cal); }
.hero__cta { justify-self: start; }
@media (min-width: 900px) {
  .hero__foot { grid-template-columns: 1.2fr auto auto; gap: clamp(2rem, 5vw, 5rem); }
  .hero__cta { justify-self: end; }
}

.hero__vane {
  position: absolute; top: clamp(5.5rem, 14vh, 8rem); right: var(--pad);
  display: flex; align-items: center; gap: .8rem;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.35; color: rgba(243, 238, 227, .8);
}
.hero__vane-needle { transform-origin: 24px 24px; animation: vane 5.5s ease-in-out infinite; }
@keyframes vane { 0%, 100% { transform: rotate(-5deg); } 30% { transform: rotate(7deg); } 55% { transform: rotate(-9deg); } 75% { transform: rotate(4deg); } }

.hero__scroll { display: none; }
@media (min-width: 900px) and (min-height: 700px) {
  .hero__scroll {
    position: absolute; right: var(--pad); top: 50%;
    display: flex; align-items: center; gap: .9rem; writing-mode: vertical-rl;
    font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(243, 238, 227, .75);
  }
  .hero__scroll i { display: block; width: 1px; height: 4.5rem; background: currentColor; transform-origin: 50% 0; animation: drip 2.4s var(--ease-io) infinite; }
}
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: 50% 0; } 51% { transform-origin: 50% 100%; } 100% { transform: scaleY(0); transform-origin: 50% 100%; } }

/* ── 5.2 El nombre ──────────────────────────────────────── */
.name { overflow: hidden; }
.name__wind { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .5; }
.name__grid { position: relative; display: grid; gap: clamp(3rem, 7vw, 6rem); align-items: center; }
@media (min-width: 1000px) { .name__grid { grid-template-columns: 1.35fr .65fr; } }
.name__text { display: grid; gap: clamp(1.75rem, 3.5vw, 3rem); }

.dict { padding-left: 1.25rem; border-left: 2px solid var(--accent); max-width: 34rem; }
.dict__word { font-family: var(--display); font-style: italic; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; font-variation-settings: "SOFT" 100, "WONK" 1; }
.dict__meta { font-family: var(--sans); font-style: normal; font-size: .82rem; color: var(--muted); letter-spacing: .02em; margin-left: .5rem; white-space: nowrap; }
.dict__def { margin-top: .5rem; color: var(--muted); font-size: 1.05rem; }

.name__statement { font-size: clamp(1.75rem, 3.7vw, 3.35rem); line-height: 1.12; letter-spacing: -.02em; text-wrap: pretty; }
.name__after { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: var(--muted); max-width: 30em; }

.compass { justify-self: center; width: min(100%, 26rem); color: var(--fg); text-align: center; }
.compass svg { width: 100%; height: auto; overflow: visible; }
.compass__labels { font-family: var(--display); font-style: italic; }
/* Sin animaciones la aguja ya apunta al noroeste; con ellas la mueve el scroll */
html:not(.motion) .compass__needle { transform-origin: 200px 200px; transform: rotate(-45deg); }
.compass figcaption { margin-top: 1.25rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.trio { position: relative; display: grid; gap: 0; margin-top: clamp(3.5rem, 8vw, 7rem); }
.trio li { padding: 1.75rem 0; border-top: 1px solid var(--line); display: grid; gap: .5rem; align-content: start; }
.trio__n { font-family: var(--display); font-style: italic; color: var(--accent); font-size: 1.1rem; }
.trio h3 { font-family: var(--display); font-weight: 380; font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.15; letter-spacing: -.01em; }
.trio p { color: var(--muted); max-width: 24em; }
@media (min-width: 800px) {
  .trio { grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 4rem); }
}

/* ── Cinta ──────────────────────────────────────────────── */
.marquee { overflow: hidden; padding-block: clamp(1rem, 3vw, 2.5rem); border-block: 1px solid var(--line); }
.marquee__track {
  display: flex; align-items: center; width: max-content; gap: clamp(1.5rem, 4vw, 4rem);
  padding-right: clamp(1.5rem, 4vw, 4rem);
  animation: marquee 46s linear infinite;
  transform: translateX(0) skewX(calc(var(--vel, 0) * -1deg));
}
.marquee span {
  font-family: var(--display); font-style: italic; font-weight: 300; white-space: nowrap;
  font-size: clamp(3rem, 9vw, 8.5rem); line-height: 1.1; letter-spacing: -.03em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.marquee span:nth-of-type(even) { color: var(--bg); -webkit-text-stroke: 2px var(--fg); paint-order: stroke fill; }
.marquee i { flex: none; width: clamp(.6rem, 1.2vw, 1rem); aspect-ratio: 1; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { translate: -50% 0; } }

/* ── 5.3 Cifras ─────────────────────────────────────────── */
.facts__grid { display: grid; gap: clamp(3rem, 6vw, 6rem); }
@media (min-width: 1000px) { .facts__grid { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.facts__intro { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 1000px) { .facts__intro { position: sticky; top: 7rem; } }
.facts__list { display: grid; grid-template-columns: repeat(2, 1fr); }
.fact { display: flex; flex-direction: column-reverse; gap: .25rem; padding: clamp(1.25rem, 2.5vw, 2rem) 0; border-top: 1px solid var(--line); }
.fact:nth-child(odd) { padding-right: 1rem; }
.fact:nth-child(even) { padding-left: clamp(1rem, 3vw, 2.5rem); border-left: 1px solid var(--line); }
.fact dt { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fact dd {
  font-family: var(--display); font-weight: 300; line-height: .95; letter-spacing: -.04em;
  font-size: clamp(3.6rem, 9vw, 7.5rem); font-variant-numeric: tabular-nums lining-nums;
}

/* ── 5.4 Estancias ──────────────────────────────────────── */
.rooms { position: relative; padding-block: clamp(4rem, 9vw, 7rem); overflow: hidden; }
.rooms__head { display: grid; gap: 1rem; margin-bottom: clamp(1.75rem, 4vh, 3rem); }
.rooms__hint { display: none; align-items: center; gap: .8rem; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
/* Progreso de la tira: un tramo por estancia; se enciende al llegar a ella */
.rooms__progress { display: flex; align-items: center; gap: 1rem; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
html:not(.js) .rooms__progress { display: none; }
.rooms__count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rooms__count b { color: var(--fg); font-weight: 600; }
.rooms__bar { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .4rem; }
.rooms__bar i { position: relative; height: 2px; background: var(--line); overflow: hidden; }
.rooms__bar i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.rooms__bar i.is-on::after { transform: scaleX(1); }
.rooms__left { white-space: nowrap; min-width: 7.5em; text-align: right; font-variant-numeric: tabular-nums; }
.rooms__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rooms__viewport::-webkit-scrollbar { display: none; }
.rooms__track { display: flex; align-items: stretch; gap: clamp(1rem, 3vw, 3.5rem); width: max-content; padding-inline: var(--pad); }

.room { scroll-snap-align: center; width: 84vw; max-width: 34rem; display: grid; gap: 1.25rem; align-content: start; }
.room__media { position: relative; overflow: hidden; border-radius: 3px; aspect-ratio: 4 / 5; background: var(--card); }
.room__media img { width: 100%; height: 100%; object-fit: cover; }
.room__body { display: grid; gap: .8rem; align-content: start; }
.room__n {
  font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1;
  color: var(--bg); -webkit-text-stroke: 2px var(--accent); paint-order: stroke fill;
}
.room h3 { font-family: var(--display); font-weight: 360; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -.02em; }
.room p { color: var(--muted); max-width: 26em; }
.room--end { display: none; }
@media (hover: hover) and (pointer: fine) { .rooms__viewport { scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding-bottom: 1rem; } }

@media (min-width: 900px) {
  .room { width: auto; max-width: none; grid-template-columns: auto 19rem; gap: clamp(1.5rem, 3vw, 3rem); align-items: end; }
  .room__media { height: min(58vh, 38rem); width: auto; aspect-ratio: 4 / 5; }
  .room__body { padding-bottom: .5rem; }
  .room--end {
    display: grid; place-items: center; grid-template-columns: 1fr; width: 34vw; padding-right: 6vw;
    font-family: var(--display); font-size: clamp(3rem, 6vw, 6rem); line-height: .95; letter-spacing: -.03em; font-weight: 320;
  }
  .room--end em { color: var(--accent); font-variation-settings: "SOFT" 100, "WONK" 1; }
  /* Modo fijado: la tira avanza con el scroll vertical */
  .rooms.is-pinned { padding-block: 0; }
  .rooms.is-pinned .rooms__pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 4.5rem; }
  .rooms.is-pinned .rooms__viewport { overflow: visible; }
  .rooms.is-pinned .rooms__hint { display: flex; }
  .rooms.is-pinned .rooms__head { grid-template-columns: 1fr auto; align-items: end; }
  .rooms.is-pinned .rooms__head .eyebrow, .rooms.is-pinned .rooms__progress { grid-column: 1 / -1; }
}

/* ── 5.5 La lumbre ──────────────────────────────────────── */
.hearth { overflow: hidden; }
.hearth__embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.hearth > .wrap { position: relative; z-index: 1; }
.hearth__head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); }

.hearth figure { overflow: hidden; border-radius: 3px; }
.hearth img { width: 100%; height: 100%; object-fit: cover; }
.hearth figcaption {
  margin-top: .8rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

.hearth__grid { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
@media (min-width: 1000px) { .hearth__grid { grid-template-columns: 1fr 1fr; } }
.hearth__text { display: grid; gap: 1.5rem; }
.hearth__text > p:not(.lead) { color: var(--muted); max-width: 34em; }
.tags--line li { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--fg); }

.hearth figure.hearth__fire { position: relative; overflow: visible; }
.hearth__fire-crop { overflow: hidden; border-radius: 3px; aspect-ratio: 4 / 5; max-height: 78vh; max-height: 78svh; }
.hearth__fire::before {
  content: ""; position: absolute; inset: 8% 4% 6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 166, 90, .55), rgba(200, 96, 60, .22) 55%, transparent);
  filter: blur(50px); animation: flicker 3.4s ease-in-out infinite;
}
.hearth__fire img { object-position: 50% 26%; scale: 1.14; }
@keyframes flicker { 0%, 100% { opacity: .75; scale: 1; } 22% { opacity: 1; scale: 1.05; } 41% { opacity: .65; scale: .97; } 63% { opacity: .95; scale: 1.03; } 82% { opacity: .7; scale: .99; } }

.hearth__trio { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(3rem, 8vw, 8rem); }
.hearth__trio figure { overflow: visible; }
.hearth__trio img { aspect-ratio: 4 / 5; height: auto; border-radius: 3px; }  /* height:auto: si no, la foto empuja el pie fuera del recorte de la animación */
@media (min-width: 800px) {
  .hearth__trio { grid-template-columns: repeat(3, 1fr); }
}

/* ── 5.6 Comodidades ────────────────────────────────────── */
.amen__head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); max-width: 60rem; }
.amen__grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .amen__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .amen__grid { grid-template-columns: repeat(4, 1fr); } }
.amen__card {
  position: relative; padding: clamp(1.5rem, 2.5vw, 2.25rem) clamp(1rem, 2vw, 1.75rem) clamp(1.75rem, 3vw, 2.75rem);
  border-bottom: 1px solid var(--line); display: grid; gap: .9rem; align-content: start;
  transition: background-color .5s var(--ease);
}
@media (min-width: 640px) { .amen__card:nth-child(odd) { border-right: 1px solid var(--line); } }
@media (min-width: 1080px) {
  .amen__card { border-right: 1px solid var(--line); }
  .amen__card:nth-child(4n) { border-right: 0; }
}
.amen__card::after {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease);
}
.amen__card:hover { background: var(--card); }
.amen__card:hover::after { transform: none; }
.ico { width: 2.1rem; height: 2.1rem; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.amen__card:hover .ico { transform: translateY(-4px) rotate(-6deg); }
.amen__card h3 { font-family: var(--display); font-weight: 380; font-size: 1.5rem; line-height: 1.1; letter-spacing: -.01em; }
.amen__card ul { display: grid; gap: .3rem; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.amen__note { margin-top: 2rem; font-family: var(--display); font-style: italic; font-size: 1.15rem; color: var(--muted); }

/* ── 5.7 El entorno ─────────────────────────────────────── */
.land { padding-bottom: var(--section); overflow: hidden; }
.land__head { display: grid; gap: 1.5rem; }
.ridge { margin-block: clamp(1rem, 3vw, 3rem) clamp(2.5rem, 6vw, 5rem); color: var(--fg); border-bottom: 1px solid var(--line); }
/* En móvil se le da algo más de alto para que los rótulos no bajen de 11 px */
.ridge svg { width: 100%; height: clamp(21.5rem, 40vw, 33rem); overflow: hidden; }
.ridge__fill--1 { fill: color-mix(in srgb, var(--cielo) 42%, var(--bg)); }
.ridge__fill--2 { fill: color-mix(in srgb, var(--fg) 20%, var(--bg)); }
.ridge__fill--3 { fill: color-mix(in srgb, var(--madera) 46%, var(--bg)); }
.ridge__sun-halo { transform-box: fill-box; transform-origin: center; animation: halo 7s ease-in-out infinite; }
/* En pantallas estrechas la ilustración se recorta por los lados y el sol quedaría fuera: se acerca al centro y sube un poco */
@media (max-width: 760px) { .ridge__sun { transform: translate(-260px, -50px); } }
@keyframes halo { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: 1; } }
.ridge__line { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.ridge__line--2 { opacity: .45; }
.ridge__label { font-family: var(--display); font-style: italic; }
.ridge text { font-family: var(--sans); }
.ridge text.ridge__label { font-family: var(--display); }

.plans { display: grid; grid-template-columns: 1fr; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); column-gap: clamp(1.5rem, 4vw, 4rem); } }
@media (min-width: 1080px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; padding: 1.75rem 0 2.25rem; border-top: 1px solid var(--line); display: grid; gap: .65rem; align-content: start; }
.plan::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease);
}
.plan:hover::before { transform: none; }
.plan__n { font-family: var(--display); font-style: italic; color: var(--accent); }
.plan h3 { font-family: var(--display); font-weight: 370; font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.1; letter-spacing: -.015em; transition: translate .6s var(--ease); }
.plan:hover h3 { translate: .5rem 0; }
.plan p { color: var(--muted); max-width: 27em; }
.plan__meta { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg); margin-top: .35rem; }
.land__map { margin-top: clamp(2rem, 4vw, 3.5rem); }

/* ── 5.8 Galería ────────────────────────────────────────── */
.gal__head { display: grid; gap: 2rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.gal__head > div:first-child { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .gal__head { grid-template-columns: 1fr auto; align-items: end; } }
.gal__filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .6rem 1.05rem; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; line-height: 1;
  transition: background-color .35s, color .35s, border-color .35s;
}
.chip sup { font-size: .68em; opacity: .8; margin-left: .15em; }
.chip:hover { border-color: var(--fg); }
.chip.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Rejilla regular: todas las fotos en el mismo marco 4:5 (el de casi todas las fotos de la casa),
   3 columnas en ordenador y 2 en móvil. Las horizontales se recortan aquí y se ven enteras al ampliarlas. */
.gal__grid { --cols: 2; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(.6rem, 1.6vw, 1.25rem); }
@media (min-width: 1080px) { .gal__grid { --cols: 3; } }
.gal__grid li[hidden] { display: none; }
.gal__grid a { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: var(--card); }
.gal__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.gal__grid a::after {
  content: attr(data-caption); position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem .9rem;
  font-size: .82rem; color: var(--cal); background: linear-gradient(transparent, rgba(22, 26, 28, .8));
  opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s var(--ease);
}
@media (hover: hover) {
  .gal__grid a:hover img { transform: scale(1.06); }
  .gal__grid a:hover::after { opacity: 1; transform: none; }
}

/* ── 5.9 Opinión ────────────────────────────────────────── */
.quote { border-top: 1px solid var(--line); }
.quote__inner { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); justify-items: start; }
.quote__stars { display: flex; align-items: center; gap: 1rem; font-size: .85rem; color: var(--muted); }
.quote__text { display: grid; gap: 1.5rem; }
.quote__text p { font-size: clamp(2.8rem, 9.5vw, 9rem); line-height: .96; letter-spacing: -.035em; }
.quote__text footer { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
/* Más opiniones: citas cortas en rejilla, cada una con su raya arriba */
.reviews { width: 100%; display: grid; gap: 2rem clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(1rem, 3vw, 2.5rem); }
@media (min-width: 700px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.review blockquote { height: 100%; display: grid; gap: 1.25rem; align-content: space-between; }
.review p { font-family: var(--display); font-weight: 340; font-size: clamp(1.2rem, 1.65vw, 1.5rem); line-height: 1.28; letter-spacing: -.01em; }
.review footer { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.quote__links { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; }

/* ── 5.10 Reservar ──────────────────────────────────────── */
.book { overflow: hidden; }
.book__wind { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
.book__inner { position: relative; display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); justify-items: start; }
.book__cta {
  position: relative; display: grid; place-content: center; justify-items: center; gap: .6rem; text-align: center;
  width: clamp(11.5rem, 22vw, 15rem); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); color: var(--pizarra);
  font-weight: 600; line-height: 1.2; margin-block: clamp(1rem, 3vw, 2.5rem) .5rem;
  transition: background-color .5s;
}
.book__cta:hover { background: var(--cal); }
.book__cta svg { transition: transform .5s var(--ease); }
.book__cta:hover svg { transform: translate(5px, -5px); }
.book__cta-ring {
  position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--accent) 70%, transparent);
  animation: spin 28s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
.book__sub { color: var(--muted); font-size: .95rem; }
/* Contacto directo (WhatsApp y, cuando lo haya, correo): secundario frente al botón de Airbnb */
.book__direct { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.book__direct p { color: var(--muted); max-width: 30em; }
.foot__contact { margin-top: .75rem; color: var(--fg); }
@media (min-width: 900px) {
  .book__inner { grid-template-columns: 1fr auto; column-gap: 4rem; }
  .book__inner > .eyebrow, .book__inner > .book__direct, .book__inner > .book__info, .book__inner > .book__small { grid-column: 1 / -1; }
  .book__inner > h2 { grid-column: 1; grid-row: 2 / span 2; align-self: center; }
  .book__cta { grid-column: 2; grid-row: 2; justify-self: end; }
  .book__sub { grid-column: 2; grid-row: 3; justify-self: end; max-width: 15rem; text-align: center; }
}
.book__info { width: 100%; display: grid; grid-template-columns: 1fr; margin-top: clamp(2rem, 5vw, 4rem); }
@media (min-width: 640px) { .book__info { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; } }
@media (min-width: 1080px) { .book__info { grid-template-columns: repeat(4, 1fr); } }
.book__info > div { padding: 1.5rem 0 1.75rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; align-content: start; }
.book__info dt { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.book__info dd { font-family: var(--display); font-weight: 360; font-size: clamp(1.3rem, 1.9vw, 1.7rem); line-height: 1.15; }
.book__info small { display: block; margin-top: .5rem; font-family: var(--sans); font-size: .9rem; line-height: 1.4; color: var(--muted); }
.book__small { font-size: .85rem; color: var(--muted); max-width: 46em; }

/* ── 6. Pie y botón fijo ────────────────────────────────── */
.foot { position: relative; overflow: hidden; padding-top: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--line); font-size: .92rem; }
/* Gana a "html.motion [data-theme]:not(body) { background: transparent }": el pie siempre lleva su fondo */
html footer.foot[data-theme] { background: var(--pizarra-3); }
.foot__grid { display: grid; gap: 2.5rem; color: var(--muted); }
@media (min-width: 800px) { .foot__grid { grid-template-columns: 1.3fr 1fr 1.2fr; } }
.foot__brand { font-family: var(--display); font-style: italic; font-size: 2rem; line-height: 1.1; color: var(--fg); margin-bottom: .75rem; }
.foot__brand span { font-style: normal; font-size: .55em; opacity: .7; }
.foot nav ul { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: .5rem 2.5rem; color: var(--fg); }
.foot a { transition: color .3s; }
.foot a:hover { color: var(--accent); }
.foot__legal { display: grid; gap: 1rem; }
.foot__legal b { color: var(--fg); font-weight: 500; letter-spacing: .04em; }
.foot__reg { font-size: .72rem; overflow-wrap: anywhere; letter-spacing: .02em; }
.foot__word {
  margin-top: clamp(2rem, 5vw, 4rem); text-align: center; white-space: nowrap; user-select: none;
  font-family: var(--display); font-style: italic; font-weight: 300; line-height: .82; letter-spacing: -.045em;
  font-size: clamp(5rem, 24vw, 24rem); font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--pizarra-3); -webkit-text-stroke: 2px color-mix(in srgb, var(--fg) 38%, var(--pizarra-3)); paint-order: stroke fill;
  overflow: hidden; padding-top: .06em;
}
.foot__word span { display: inline-block; transform: translateY(12%) skewX(calc(var(--vel, 0) * -1.2deg)); }
.foot__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.25rem 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

.sticky-cta {
  position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 85;
  display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.5rem; border-radius: 999px;
  background: var(--oxido); color: var(--cal); font-weight: 600; line-height: 1;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45);
  transform: translate(-50%, 0); transition: transform .6s var(--ease), opacity .4s;
}
.js .sticky-cta:not(.is-visible) { transform: translate(-50%, 180%); opacity: 0; pointer-events: none; }
/* Sin JavaScript no hay forma de retirarlo: se queda el botón de la cabecera */
html:not(.js) .sticky-cta { display: none; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ── 7. Lightbox y cursor ───────────────────────────────── */
.lb {
  position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto 1fr auto;
  background: rgba(16, 19, 21, .97); color: var(--cal);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s;
}
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
.lb__bar { display: flex; align-items: center; justify-content: space-between; padding: 1rem var(--pad); font-size: .85rem; letter-spacing: .08em; }
.lb__count { font-variant-numeric: tabular-nums; color: rgba(243, 238, 227, .7); }
.lb__close { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: .5rem 0 .5rem 1rem; text-transform: uppercase; font-size: .74rem; letter-spacing: .16em; }
/* La fila y la columna van con mínimo 0: así el "max-height: 100%" de la foto se mide contra el hueco real
   y una foto vertical más alta que la pantalla se encoge en vez de salirse por abajo. */
.lb__stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; padding-inline: clamp(.5rem, 6vw, 6rem); touch-action: pan-y; }
.lb__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 2px;
  opacity: 0; transform: scale(.975); transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.lb__img.is-shown { opacity: 1; transform: none; }
.lb__nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(243, 238, 227, .35); background: rgba(16, 19, 21, .5);
  transition: background-color .3s, color .3s, border-color .3s;
}
.lb__nav:hover { background: var(--cal); color: var(--pizarra); border-color: var(--cal); }
.lb__nav--prev { left: clamp(.5rem, 2vw, 1.5rem); }
.lb__nav--next { right: clamp(.5rem, 2vw, 1.5rem); }
.lb__cap { padding: 1rem var(--pad) 1.5rem; text-align: center; font-family: var(--display); font-style: italic; font-size: 1.15rem; min-height: 4rem; }
@media (max-width: 700px) { .lb__nav { top: auto; bottom: .25rem; translate: none; width: 2.9rem; height: 2.9rem; } }

.cursor { position: fixed; top: 0; left: 0; z-index: 250; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor__ring {
  position: absolute; left: -1.25rem; top: -1.25rem; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--accent); display: grid; place-items: center;
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: transparent;
  transition: scale .45s var(--ease), background-color .35s, color .3s, border-color .35s;
}
.cursor.is-link .cursor__ring { scale: 1.6; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.cursor.is-view .cursor__ring { scale: 2.3; background: var(--cal); border-color: var(--cal); color: var(--pizarra); font-size: .36rem; }

/* ── 8. Estados de animación (solo con html.motion) ─────── */
.intro { display: none; }
.motion .intro {
  position: fixed; inset: 0; z-index: 150; display: grid; place-content: center; justify-items: center; gap: 1.25rem;
  background: var(--pizarra); color: var(--cal);
}
.intro__word { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(2rem, 6vw, 3.5rem); letter-spacing: -.02em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.intro__line { width: min(14rem, 50vw); height: 1px; background: var(--brasa); transform-origin: 0 50%; animation: introLine 1.6s var(--ease-io) both; }
@keyframes introLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.motion [data-reveal]:not([data-reveal="clip"]):not([data-reveal="fade"]) { opacity: 0; transform: translateY(2.2rem); }
.motion [data-reveal="fade"] { opacity: 0; }
.motion [data-reveal="clip"] { clip-path: inset(100% 0 0 0); }
.motion .hearth__fire[data-reveal="clip"] { clip-path: inset(100% -20% -20% -20%); }
.motion [data-hero] { opacity: 0; }
.motion .hero__title .char { opacity: 0; }
.motion [data-split="words"] { visibility: hidden; }
.motion [data-split="words"].is-split { visibility: visible; }
.motion .ridge__line { opacity: 0; }
.motion .ridge__fill, .motion [data-ridge-mark], .motion .ridge__village, .motion .ridge__hatch, .motion .ridge__sun { opacity: 0; }

/* Scroll suave (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .09em .16em .02em; margin: -.08em -.09em -.16em -.02em; }
.w > span { display: inline-block; }

/* ── 9. Menos movimiento ────────────────────────────────── */
/* Se respeta el ajuste del sistema, salvo que el visitante haya pedido animaciones (html.motion). */
html:not(.motion) .js-wind, html:not(.motion) .js-embers { display: none; }
@media (prefers-reduced-motion: reduce) {
  html:not(.motion) { scroll-behavior: auto !important; }
  html:not(.motion) *, html:not(.motion) *::before, html:not(.motion) *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important;
  }
  html:not(.motion) .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding-inline: var(--pad); }
  html:not(.motion) .marquee__track > :nth-child(n + 15) { display: none; }
}

.hero__calma {
  position: absolute; left: var(--pad); top: clamp(5rem, 12vh, 6.5rem); z-index: 2;
  padding: .55rem .95rem; border-radius: 999px; font-size: .78rem; line-height: 1.3; text-align: left;
  background: rgba(22, 26, 28, .55); color: var(--cal); border: 1px solid rgba(243, 238, 227, .3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero__calma:hover { background: rgba(22, 26, 28, .8); }
.foot__motion { color: inherit; text-decoration: underline; text-underline-offset: .25em; text-decoration-color: var(--line); }
.foot__motion:hover { color: var(--accent); }
[hidden] { display: none !important; }

@media print {
  .nav, .sticky-cta, .intro, .progress, canvas, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
}
