:root {
  color-scheme: dark;
  --ink: #f2efe7;
  --muted: rgba(226, 231, 242, 0.68);
  --warm: #d9a35e;
  --line: rgba(225, 231, 245, 0.22);
  --bg: #030817;
  --mouse-x: 0;
  --mouse-y: 0;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body {
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.hero {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  background: #061226;
}

.scene, .background-layer, .birds-layer, .house-parallax, .boat-parallax,
.scene-vignette, .scene-grain, .atmosphere, .cloud-motion, .water-motion,
.reflection-shimmer {
  position: absolute;
  inset: 0;
}
.scene { z-index: 0; overflow: hidden; }

.parallax-layer {
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform 120ms linear;
}

.background-layer { inset: -12px; z-index: 0; }
.background-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(.96) brightness(.93) contrast(1.015);
  transform: scale(1.012);
}

/*
   The painted background stays untouched underneath. These low-opacity
   duplicates animate only selected regions, so the illustration remains
   stable while clouds and water acquire almost imperceptible motion.
*/
.cloud-motion,
.water-motion,
.reflection-shimmer {
  pointer-events: none;
  overflow: hidden;
  user-select: none;
}
.cloud-motion img,
.water-motion img,
.reflection-shimmer img {
  position: absolute;
  inset: -1.5%;
  width: 103%;
  height: 103%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  user-select: none;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.cloud-motion {
  z-index: 1;
  clip-path: inset(0 0 40% 0);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 98%);
}
.cloud-motion--a { opacity: .22; }
.cloud-motion--a img {
  filter: saturate(.9) brightness(.96) blur(.15px);
  animation: cloudsDriftA 38s ease-in-out infinite;
}
.cloud-motion--b { opacity: .10; }
.cloud-motion--b img {
  filter: saturate(.78) brightness(.92) blur(1.2px);
  animation: cloudsDriftB 57s ease-in-out infinite;
}

.water-motion {
  z-index: 2;
  clip-path: inset(54.5% 0 0 0);
  opacity: .28;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.25) 10%, #000 23%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.25) 10%, #000 23%, #000 100%);
}
.water-motion img {
  filter: url(#waterDisplacement) saturate(.92) brightness(.98);
  animation: waterDrift 9.5s ease-in-out infinite;
}

.reflection-shimmer {
  z-index: 3;
  clip-path: inset(54.5% 0 0 0);
  opacity: .18;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 92%, transparent 100%),
    radial-gradient(ellipse 10% 60% at 50% 67%, #000 0%, rgba(0,0,0,.84) 38%, transparent 100%);
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 92%, transparent 100%),
    radial-gradient(ellipse 10% 60% at 50% 67%, #000 0%, rgba(0,0,0,.84) 38%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  mix-blend-mode: screen;
}
.reflection-shimmer img {
  filter: saturate(.7) brightness(1.08) blur(.35px);
  animation: reflectionBreath 5.8s ease-in-out infinite;
}

.atmosphere { pointer-events: none; z-index: 4; }
.atmosphere--top {
  background: linear-gradient(to bottom, rgba(2, 5, 15, .42), transparent 26%);
}
.atmosphere--bottom {
  background: linear-gradient(to top, rgba(0, 5, 15, .48), transparent 34%);
}

.house-parallax { z-index: 8; }
.house-float {
  position: absolute;
  left: 50%;
  top: 48%;
  width: clamp(420px, 49vh, 640px);
  aspect-ratio: 1131 / 1391;
  transform: translate(-50%, -50%);
  animation: houseHover 7.4s ease-in-out infinite;
  will-change: transform;
}
.house-stage {
  position: relative;
  width: 100%;
  height: 100%;
}
.house-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 6;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, .42));
  user-select: none;
}

.thruster {
  --x: 50%;
  --y: 75%;
  --s: 1;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 17%;
  height: 34%;
  transform: translateX(-50%) scale(var(--s));
  transform-origin: 50% 0;
  z-index: 3;
  pointer-events: none;
}
.thruster--left { --x: 38.8%; --y: 72.8%; --s: .88; }
.thruster--center { --x: 50.9%; --y: 76%; --s: 1; }
.thruster--right { --x: 60.9%; --y: 74.4%; --s: .91; }

.thruster-smoke,
.thruster-fire {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: 50% 0;
  user-select: none;
}
.thruster-smoke {
  top: 10%;
  width: 128%;
  opacity: .38;
  z-index: 1;
  mix-blend-mode: screen;
  filter: saturate(.62) brightness(.72) blur(.15px);
  animation: smokeBreathe 3.6s ease-in-out infinite;
}
.thruster-fire {
  top: 0;
  width: 52%;
  z-index: 2;
  opacity: .96;
  filter: saturate(.84) brightness(1.08) drop-shadow(0 0 10px rgba(100, 190, 255, .46));
  animation: firePulse .88s ease-in-out infinite alternate;
}
.thruster--center .thruster-fire { animation-duration: .72s; }
.thruster--right .thruster-fire { animation-duration: 1.04s; }
.thruster--center .thruster-smoke { animation-delay: -1.1s; }
.thruster--right .thruster-smoke { animation-delay: -2.2s; }

.boat-parallax { z-index: 7; }
.boat-float {
  position: absolute;
  left: calc(50% + min(19vw, 360px));
  top: 75%;
  width: clamp(115px, 11vw, 210px);
  animation: boatBob 5.2s ease-in-out infinite;
  transform-origin: 50% 70%;
}
.boat-image {
  width: 100%;
  display: block;
  filter: drop-shadow(0 13px 16px rgba(0, 0, 0, .36));
  user-select: none;
}

.birds-layer { z-index: 10; overflow: hidden; }
.bird {
  position: absolute;
  left: -18vw;
  top: calc(var(--bird-y, 25) * 1%);
  width: var(--bird-size, 100px);
  opacity: var(--bird-opacity, .9);
  filter: drop-shadow(0 8px 11px rgba(0, 0, 0, .28));
  animation: birdTravel var(--bird-duration, 25s) linear var(--bird-delay, 0s) infinite;
  will-change: transform;
}
.bird img { display: block; width: 100%; height: auto; user-select: none; }
.bird--near { --bird-size: clamp(76px, 7vw, 132px); --bird-opacity: .92; }
.bird--mid  { --bird-size: clamp(48px, 4.4vw, 82px); --bird-opacity: .72; }
.bird--far  { --bird-size: clamp(30px, 2.8vw, 52px); --bird-opacity: .48; filter: blur(.2px); }

.scene-vignette {
  z-index: 20;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, transparent 30%, rgba(0, 3, 12, .10) 65%, rgba(0, 2, 9, .58) 118%),
    linear-gradient(to right, rgba(0, 3, 12, .28), transparent 24%, transparent 76%, rgba(0, 3, 12, .25));
}
.scene-grain {
  z-index: 21;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.46'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(24px, 4vw, 70px);
  border-bottom: 1px solid rgba(228, 233, 244, .12);
  background: linear-gradient(to bottom, rgba(2, 7, 18, .25), transparent);
}
.lang-switch {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.1vw, 18px);
}
.lang-switch__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: rgba(240, 241, 245, .55);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .18em;
  cursor: pointer;
  transition: color .25s ease;
}
.lang-switch__btn .flag {
  display: block;
  width: 20px;
  height: 13px;
  flex: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 2px 8px rgba(0, 0, 0, .45);
  filter: saturate(.55) brightness(.8);
  transition: filter .25s ease;
}
.lang-switch__btn::after {                         /* subrayado dorado del idioma activo */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: #d8b678;
  transform: scaleX(0);
  transition: transform .25s ease;
}
.lang-switch__btn:hover { color: rgba(255, 255, 255, .88); }
.lang-switch__btn:hover .flag,
.lang-switch__btn[aria-pressed="true"] .flag { filter: none; }
.lang-switch__btn[aria-pressed="true"] { color: #fff; }
.lang-switch__btn[aria-pressed="true"]::after { transform: scaleX(1); }
.lang-switch__btn:focus-visible { outline: 1px solid rgba(216, 182, 120, .8); outline-offset: 4px; }
.site-nav { display: flex; gap: clamp(22px, 3vw, 48px); }
.site-nav a {
  position: relative;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(240, 241, 245, .7);
  transition: color .25s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 0;
  height: 1px;
  background: #d8b678;
  transition: width .25s ease, left .25s ease;
}
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after { left: 0; width: 100%; }
.header-cta {
  justify-self: end;
  padding: 10px 16px;
  border: 1px solid rgba(226, 232, 244, .36);
  font-size: 10px;
  letter-spacing: .17em;
  text-transform: uppercase;
  transition: background .25s ease, border-color .25s ease;
}
.header-cta:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.58); }

.hero-content {
  position: absolute;
  z-index: 45;
  left: clamp(28px, 6vw, 108px);
  top: 50%;
  width: min(390px, 28vw);
  transform: translateY(-41%);
  text-shadow: 0 3px 22px rgba(0,0,0,.55);
  animation: contentReveal 1.15s cubic-bezier(.22,.7,.25,1) both;
}
.eyebrow {
  margin: 0 0 13px;
  color: rgba(225, 224, 213, .67);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .32em;
  white-space: nowrap;
}
.hero-content h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(42px, 4.4vw, 78px);
  line-height: .92;
  letter-spacing: .06em;
  color: #f3f0e7;
}
.ornament {
  width: 160px;
  max-width: 60%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 9px;
  align-items: center;
  margin: 19px 0;
  opacity: .6;
}
.ornament span { height: 1px; background: linear-gradient(to right, transparent, #d7bd8c); }
.ornament span:last-child { background: linear-gradient(to left, transparent, #d7bd8c); }
.ornament i { width: 5px; height: 5px; border: 1px solid #d7bd8c; transform: rotate(45deg); }
.hero-copy {
  max-width: 310px;
  margin: 0;
  color: rgba(225, 229, 238, .74);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.55;
  letter-spacing: .02em;
}
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 27px; }
.primary-button, .ghost-button {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 9px;
  cursor: pointer;
}
.primary-button {
  padding: 0 20px;
  border: 1px solid rgba(238, 226, 195, .66);
  background: rgba(9, 15, 28, .46);
  backdrop-filter: blur(8px);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.primary-button:hover { background: rgba(216, 183, 119, .16); border-color: rgba(244, 228, 195, .92); transform: translateY(-1px); }
.ghost-button {
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: rgba(225, 230, 239, .54);
}
.ghost-button:hover { color: rgba(255,255,255,.85); }

.hero-status {
  position: absolute;
  z-index: 45;
  right: clamp(24px, 4vw, 70px);
  bottom: 28px;
  display: flex;
  gap: 9px;
  align-items: center;
  color: rgba(219, 227, 238, .45);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 8px;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #dd6759;
  box-shadow: 0 0 9px rgba(230, 73, 59, .8);
  animation: statusPulse 2.8s ease-in-out infinite;
}

.soundless-note {
  position: absolute;
  z-index: 55;
  left: clamp(24px, 4vw, 70px);
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: rgba(229, 234, 242, .48);
  cursor: pointer;
}
.soundless-note__icon {
  width: 19px;
  height: 19px;
  border: 1px solid rgba(229, 234, 242, .27);
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 11px;
}
.soundless-note__label { font-size: 8px; text-transform: uppercase; letter-spacing: .14em; }
.scene-panel {
  position: absolute;
  z-index: 56;
  left: clamp(24px, 4vw, 70px);
  bottom: 58px;
  width: 190px;
  padding: 14px 16px;
  display: grid;
  gap: 7px;
  border: 1px solid rgba(225,230,241,.15);
  background: rgba(3,8,18,.72);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.scene-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.scene-panel strong { font-family: Georgia, serif; font-size: 12px; letter-spacing: .04em; margin-bottom: 2px; }
.scene-panel span { color: rgba(225,230,240,.58); font-size: 9px; letter-spacing: .04em; }

@keyframes cloudsDriftA {
  0%, 100% { transform: translate3d(-.18%, 0, 0) scale(1.006); }
  50% { transform: translate3d(.22%, -.10%, 0) scale(1.010); }
}
@keyframes cloudsDriftB {
  0%, 100% { transform: translate3d(.16%, -.05%, 0) scale(1.012); opacity: .84; }
  50% { transform: translate3d(-.20%, .07%, 0) scale(1.016); opacity: 1; }
}
@keyframes waterDrift {
  0%, 100% { transform: translate3d(-.10%, .02%, 0) scale(1.004, 1.002); }
  50% { transform: translate3d(.12%, .12%, 0) scale(1.006, 1.004); }
}
@keyframes reflectionBreath {
  0%, 100% { transform: scale(1.002, 1.001); opacity: .68; }
  50% { transform: scale(1.010, 1.004); opacity: 1; }
}
@keyframes houseHover {
  0%, 100% { transform: translate(-50%, -50%) translateY(3px) rotate(-.08deg); }
  50% { transform: translate(-50%, -50%) translateY(-4px) rotate(.08deg); }
}
@keyframes firePulse {
  from { transform: translateX(-50%) scaleY(.92) scaleX(.96); opacity: .82; }
  to   { transform: translateX(-50%) scaleY(1.06) scaleX(1.02); opacity: 1; }
}
@keyframes smokeBreathe {
  0%,100% { transform: translateX(-50%) translateY(0) scale(.92, .94); opacity: .27; }
  50% { transform: translateX(-50%) translateY(5px) scale(1.05, 1.03); opacity: .44; }
}
@keyframes boatBob {
  0%,100% { transform: translateY(-2px) rotate(-.7deg); }
  50% { transform: translateY(4px) rotate(.9deg); }
}
@keyframes birdTravel {
  0% { transform: translate3d(-4vw, 0, 0) rotate(-2deg); }
  24% { transform: translate3d(29vw, -1.6vh, 0) rotate(0deg); }
  52% { transform: translate3d(65vw, 1.1vh, 0) rotate(1deg); }
  78% { transform: translate3d(97vw, -1vh, 0) rotate(-1deg); }
  100% { transform: translate3d(134vw, .8vh, 0) rotate(0deg); }
}
@keyframes contentReveal {
  from { opacity: 0; transform: translateY(calc(-41% + 18px)); }
  to { opacity: 1; transform: translateY(-41%); }
}
@keyframes statusPulse { 0%,100%{opacity:.38} 50%{opacity:1} }

body.motion-reduced .house-float,
body.motion-reduced .boat-float,
body.motion-reduced .thruster-smoke,
body.motion-reduced .thruster-fire,
body.motion-reduced .status-dot,
body.motion-reduced .cloud-motion img,
body.motion-reduced .water-motion img,
body.motion-reduced .reflection-shimmer img { animation-play-state: paused; }
body.motion-reduced .bird { animation-play-state: paused; opacity: 0; }
body.motion-reduced .parallax-layer { transform: none !important; }

@media (max-width: 1100px) {
  .house-float { width: clamp(390px, 55vh, 590px); left: 56%; }
  .hero-content { left: 34px; width: 310px; }
  .boat-float { left: 78%; top: 76%; width: 130px; }
}

@media (max-width: 760px) {
  .hero { min-height: 600px; }
  .background-image { object-position: 61% 50%; }
  .site-header { min-height: 68px; padding: 0 18px; grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .lang-switch { gap: 10px; }
  .lang-switch__btn { gap: 6px; font-size: 9px; letter-spacing: .12em; }
  .header-cta { font-size: 8px; padding: 8px 10px; }
  .hero-content {
    top: 118px;
    left: 50%;
    width: calc(100% - 44px);
    text-align: center;
    transform: translateX(-50%);
    animation: none;
  }
  .hero-content h1 { font-size: clamp(38px, 12vw, 60px); }
  .eyebrow { font-size: 8px; }
  .ornament { margin-left: auto; margin-right: auto; }
  .hero-copy { display: none; }
  .hero-actions { justify-content: center; margin-top: 18px; }
  .ghost-button { display: none; }
  .house-float {
    width: min(78vw, 455px);
    left: 50%;
    top: 58%;
  }
  .boat-float { left: 70%; top: 82%; width: 96px; opacity: .9; }
  .bird--near { --bird-size: 56px; }
  .bird--mid { --bird-size: 38px; }
  .bird--far { display: none; }
  .hero-status { display: none; }
  .soundless-note { left: 18px; bottom: 14px; }
  .scene-panel { left: 18px; bottom: 50px; }
}

@media (max-height: 700px) and (min-width: 761px) {
  .house-float { width: min(46vh, 500px); top: 50%; }
  .hero-content h1 { font-size: 48px; }
  .hero-content { top: 52%; }
}

@media (min-aspect-ratio: 21/9) {
  .house-float { width: clamp(430px, 58vh, 680px); }
  .hero-content { left: max(6vw, calc((100vw - 2100px)/2 + 70px)); }
  .boat-float { left: 65%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .house-float, .boat-float, .thruster-smoke, .thruster-fire, .status-dot,
  .cloud-motion img, .water-motion img, .reflection-shimmer img { animation: none !important; }
  .bird { display: none; }
  .parallax-layer { transform: none !important; transition: none !important; }
}

/* ========================================================================== 
   PATCH 2026-09-19 — Propulsores anclados al lienzo + cuervos en órbita
   ========================================================================== */

/* Claude's positioning model: every --x/--y coordinate is measured directly
   on house.png (1122 × 1402). This keeps fire/smoke locked to the nozzles at
   every responsive size instead of positioning generic thruster boxes. */
.fire,
.smoke {
  position: absolute;
  width: calc(var(--s) * 100%);
  height: auto;
  max-width: none;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
}

.fire {
  z-index: 2;
  left: calc((var(--x) - 564 * var(--s)) / 1122 * 100%);
  top:  calc((var(--y) - 116 * var(--s)) / 1402 * 100%);
  transform-origin: 50.27% 8.27%;
  filter: saturate(.92) brightness(1.06) drop-shadow(0 0 7px rgba(130, 205, 255, .55));
  animation: anchoredFireFlicker var(--fd, .8s) ease-in-out var(--fdel, 0s) infinite alternate;
}

@keyframes anchoredFireFlicker {
  0%   { transform: scaleY(.95); opacity: .90; }
  30%  { transform: scaleY(1.02); opacity: .97; }
  55%  { transform: scaleY(.94); opacity: .88; }
  100% { transform: scaleY(1.04); opacity: 1; }
}

.smoke {
  z-index: 1;
  left: calc((var(--x) - 516 * var(--s)) / 1122 * 100%);
  top:  calc((var(--y) - 18 * var(--s)) / 1402 * 100%);
  transform-origin: 45.99% 1.28%;
  opacity: .82;
  /* contraste alto: las luces del humo se leen sobre el mar oscuro y las sombras sobre el reflejo */
  filter: saturate(.5) brightness(.82) contrast(1.3) blur(.12px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 38%, rgba(0,0,0,.55) 50%, transparent 62%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 38%, rgba(0,0,0,.55) 50%, transparent 62%);
  animation: anchoredSmokeBreathe var(--sd, 6s) ease-in-out var(--sdel, 0s) infinite;
}

@keyframes anchoredSmokeBreathe {
  0%, 100% {
    opacity: .74;
    transform: translate3d(0, 0, 0) scale(calc(var(--flip, 1) * .95), .96);
  }
  50% {
    opacity: .92;
    transform: translate3d(0, 5px, 0) scale(calc(var(--flip, 1) * 1.04), 1.03);
  }
}

/* Cuervos: ahora forman parte del sistema local de la casa. Sus órbitas se
   expresan en múltiplos de su propio tamaño, por lo que escalan junto con
   house.png y permanecen siempre cerca de las antenas. */
.orbit-crow {
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  width: var(--cw);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: var(--co, .9);
  filter: drop-shadow(0 7px 9px rgba(0,0,0,.32));
}
.orbit-crow--back { z-index: 5; }
.orbit-crow--front-z { z-index: 7; }
.orbit-crow__path,
.orbit-crow__heading,
.orbit-crow__sprite {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.orbit-crow__heading {
  animation: crowOrbitFacing var(--orbit-time) step-end var(--orbit-delay) infinite;
}
.orbit-crow__sprite { animation: crowOrbitBob var(--bob-time, 2.7s) ease-in-out infinite alternate; }
.orbit-crow__f {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  user-select: none;
  animation: var(--flap-name) var(--flap, .58s) step-end infinite;
}
.orbit-crow__f1 { --flap-name: orbitFlap1; opacity: 1; }
.orbit-crow__f2 {
  --flap-name: orbitFlap2;
  transform-origin: 78.07% 17.46%;
  transform: translate(1.67%, 35.25%) scale(.83);
}
.orbit-crow__f3 {
  --flap-name: orbitFlap3;
  transform-origin: 68.74% 48.41%;
  transform: translate(11%, 4.31%);
}

@keyframes orbitFlap1 { 0% { opacity:1; } 25%,100% { opacity:0; } }
@keyframes orbitFlap3 { 0% { opacity:0; } 25% { opacity:1; } 50% { opacity:0; } 75%,100% { opacity:1; } }
@keyframes orbitFlap2 { 0%,49% { opacity:0; } 50% { opacity:1; } 75%,100% { opacity:0; } }
@keyframes crowOrbitBob { from { transform: translateY(-4%); } to { transform: translateY(5%); } }
@keyframes crowOrbitFacing {
  0%, 48% { transform: scaleX(1); }
  49%, 98% { transform: scaleX(-1); }
  99%, 100% { transform: scaleX(1); }
}

.orbit-crow--left {
  --cx: 31%; --cy: 10%; --cw: 10.5%; --co: .82;
  --orbit-time: 9.5s; --orbit-delay: -1.8s; --flap: .55s; --bob-time: 2.4s;
}
.orbit-crow--left .orbit-crow__path { animation: crowOrbitLeft var(--orbit-time) ease-in-out var(--orbit-delay) infinite; }
@keyframes crowOrbitLeft {
  0%,100% { transform: translate3d(-125%, 22%, 0) rotate(-5deg); }
  24%     { transform: translate3d(-18%, -68%, 0) rotate(-1deg); }
  50%     { transform: translate3d(118%, -18%, 0) rotate(4deg); }
  76%     { transform: translate3d(12%, 62%, 0) rotate(1deg); }
}

.orbit-crow--right {
  --cx: 66%; --cy: 11%; --cw: 8.5%; --co: .72;
  --orbit-time: 11.8s; --orbit-delay: -6.4s; --flap: .62s; --bob-time: 3.1s;
}
.orbit-crow--right .orbit-crow__path { animation: crowOrbitRight var(--orbit-time) ease-in-out var(--orbit-delay) infinite reverse; }
@keyframes crowOrbitRight {
  0%,100% { transform: translate3d(-115%, 15%, 0) rotate(-4deg); }
  22%     { transform: translate3d(-15%, -74%, 0) rotate(2deg); }
  48%     { transform: translate3d(132%, -12%, 0) rotate(5deg); }
  73%     { transform: translate3d(20%, 70%, 0) rotate(-1deg); }
}

.orbit-crow--front {
  --cx: 48%; --cy: 17%; --cw: 9.5%; --co: .94;
  --orbit-time: 13.4s; --orbit-delay: -8.1s; --flap: .58s; --bob-time: 2.7s;
}
.orbit-crow--front .orbit-crow__path { animation: crowOrbitFront var(--orbit-time) ease-in-out var(--orbit-delay) infinite; }
@keyframes crowOrbitFront {
  0%,100% { transform: translate3d(-165%, 12%, 0) rotate(-4deg); }
  20%     { transform: translate3d(-55%, -80%, 0) rotate(-1deg); }
  47%     { transform: translate3d(150%, -38%, 0) rotate(5deg); }
  69%     { transform: translate3d(118%, 55%, 0) rotate(2deg); }
  86%     { transform: translate3d(-28%, 82%, 0) rotate(-2deg); }
}

body.motion-reduced .orbit-crow,
body.motion-reduced .orbit-crow__path,
body.motion-reduced .orbit-crow__heading,
body.motion-reduced .orbit-crow__sprite,
body.motion-reduced .orbit-crow__f,
body.motion-reduced .fire,
body.motion-reduced .smoke {
  animation: none !important;
}
body.motion-reduced .orbit-crow { display: none; }
body.motion-reduced .fire { opacity: 1; transform: none; }
body.motion-reduced .smoke { opacity: .82; }

@media (prefers-reduced-motion: reduce) {
  .orbit-crow { display: none !important; }
  .fire, .smoke { animation: none !important; }
}

@media (max-width: 700px) {
  .orbit-crow--right { display: none; }
  .orbit-crow--left  { --cw: 9%; --co: .7; }
  .orbit-crow--front { --cw: 8.5%; --co: .82; }
}

/* ==========================================================================
   PATCH 2026-09-19 (b) — Luna con respiración, bloom de propulsores
   ========================================================================== */

/* ---------- Luna ----------
   Posición y tamaño ajustables: --moon-x, --moon-y (centro) y --moon-size (lienzo de moon.png).
   El disco ocupa ~77 % del lienzo; el resto es su halo azul. */
.moon-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  --moon-x: 67%;
  --moon-y: 18%;
  --moon-size: clamp(110px, 17vh, 240px);
}
.moon {
  position: absolute;
  left: var(--moon-x);
  top: var(--moon-y);
  width: var(--moon-size);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.moon__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  animation: moonBreath 7s ease-in-out infinite;
}
.moon__halo,
.moon__bloom {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}
.moon__halo {                                        /* resplandor amplio detrás */
  inset: -85%;
  background: radial-gradient(closest-side,
    rgba(185, 215, 255, .34) 0%,
    rgba(130, 175, 255, .16) 38%,
    rgba(90, 135, 255, .06) 66%,
    transparent 100%);
  animation: moonHalo 7s ease-in-out infinite;
}
.moon__bloom {                                       /* brillo sobre el disco */
  inset: 10%;
  background: radial-gradient(closest-side, rgba(255, 250, 232, .5), rgba(225, 238, 255, .16) 62%, transparent 100%);
  mix-blend-mode: screen;
  animation: moonBloom 7s ease-in-out infinite;
}
@keyframes moonHalo {
  0%, 100% { opacity: .55; transform: scale(.93); }
  50%      { opacity: 1;   transform: scale(1.06); }
}
@keyframes moonBloom {
  0%, 100% { opacity: .15; }
  50%      { opacity: .6; }
}
@keyframes moonBreath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.012); }
}

/* ---------- Bloom de propulsores ----------
   Mismo sistema de coordenadas que .fire (lienzo de house.png, 1122 x 1402).
   Centro del resplandor = zona más caliente de la llama (aprox. 1/3 de su largo). */
.thruster-glow {
  --gw: calc(var(--s) * 1250);
  --gh: calc(var(--s) * 1500);
  position: absolute;
  z-index: 6;
  width: calc(var(--gw) / 1122 * 100%);
  height: calc(var(--gh) / 1402 * 100%);
  left: calc((var(--x) - var(--gw) / 2) / 1122 * 100%);
  top: calc((var(--y) + var(--s) * 400 - var(--gh) / 2) / 1402 * 100%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side,
    rgba(215, 240, 255, .62) 0%,
    rgba(120, 195, 255, .34) 26%,
    rgba(65, 140, 255, .14) 55%,
    transparent 100%);
  mix-blend-mode: screen;
  will-change: transform, opacity;
  animation: thrusterGlow var(--fd, .8s) ease-in-out var(--fdel, 0s) infinite alternate;
}
@keyframes thrusterGlow {
  0%   { opacity: .72; transform: scale(.94); }
  100% { opacity: 1;   transform: scale(1.05); }
}

body.motion-reduced .moon__img,
body.motion-reduced .moon__halo,
body.motion-reduced .moon__bloom,
body.motion-reduced .thruster-glow { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .moon__img, .moon__halo, .moon__bloom, .thruster-glow { animation: none !important; }
}

@media (max-width: 1100px) {
  .moon-layer { --moon-x: 84%; --moon-y: 20%; }
}
@media (max-width: 760px) {
  .moon-layer { --moon-x: 80%; --moon-y: 36%; --moon-size: clamp(80px, 22vw, 120px); }
}

/* ==========================================================================
   PATCH 2026-09-19 (c) — Pie con copyright, cita, popup "Próximamente"
   ========================================================================== */

/* ---------- Pie: icono i + copyright ---------- */
.hero-footer {
  position: absolute;
  z-index: 55;
  left: clamp(24px, 4vw, 70px);
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-footer .soundless-note { position: static; padding: 0; }
.site-credit {
  margin: 0;
  font-size: 10px;
  letter-spacing: .08em;
  color: rgba(229, 234, 242, .5);
  white-space: nowrap;
}
.site-credit__sep { margin: 0 .75em; color: rgba(216, 182, 120, .7); }
.site-credit a {
  color: rgba(229, 234, 242, .72);
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.site-credit a:hover { color: #fff; border-color: #d8b678; }

/* ---------- Cita ---------- */
.hero-quote { margin: 0; }
.hero-quote .hero-copy {
  max-width: 340px;
  font-style: italic;
  text-wrap: pretty;
}
.hero-quote__cite {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(216, 182, 120, .8);
}
.hero-quote__cite::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}
.hero-quote__cite cite { font-style: normal; }

/* ---------- Popup "Próximamente" ---------- */
.soon-dialog {
  width: min(420px, calc(100vw - 40px));
  padding: 0;
  border: 1px solid rgba(238, 226, 195, .38);
  background: rgba(6, 12, 26, .88);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}
.soon-dialog::backdrop {
  background: rgba(2, 5, 14, .58);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}
.soon-dialog[open] { animation: soonIn .35s cubic-bezier(.22, .7, .25, 1); }
.soon-dialog__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 38px 36px 34px;
}
.soon-dialog__eyebrow {
  margin: 0 0 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(225, 224, 213, .6);
}
.soon-dialog__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #f3f0e7;
}
.soon-dialog .ornament { margin: 18px auto; }
.soon-dialog__text {
  max-width: 30ch;
  margin: 0 0 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(225, 229, 238, .74);
}
.soon-dialog__close { color: var(--ink); }
.soon-dialog__close:focus-visible { outline: 1px solid rgba(216, 182, 120, .8); outline-offset: 4px; }
@keyframes soonIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .soon-dialog[open] { animation: none; }
}

@media (max-width: 760px) {
  .hero-footer { left: 18px; bottom: 14px; gap: 10px; }
  .site-credit { font-size: 9px; letter-spacing: .04em; }
  .site-credit__sep { margin: 0 .5em; }
  .hero-quote { display: none; }
  .hero-content h1 { font-size: clamp(34px, 10.5vw, 60px); }   /* evita que el título se corte */
}

/* ==========================================================================
   PATCH 2026-09-19 (d) — Ventanas de sección: Historia, Multimedia, Roadmap
   Mismo lenguaje que el popup "Próximamente", en formato grande.
   ========================================================================== */

:root {
  --gold: #d8b678;
  --gold-soft: rgba(216, 182, 120, .8);
  --volt: #6cc4ff;                       /* azul de los propulsores: solo para "en curso" */
  --panel-line: rgba(238, 226, 195, .16);
  --text-soft: rgba(225, 229, 238, .8);
  --serif: Georgia, "Times New Roman", serif;
}

/* Mientras hay una ventana abierta, la escena de fondo se pausa */
body.panel-open .scene,
body.panel-open .scene * { animation-play-state: paused !important; }

/* ---------- Marco de la ventana ---------- */
.panel-dialog {
  width: min(980px, calc(100vw - 48px));
  max-width: none;
  max-height: min(88vh, 940px);
  max-height: min(88svh, 940px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(238, 226, 195, .3);
  background: rgba(5, 10, 22, .9);
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .65);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
}
.panel-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: soonIn .4s cubic-bezier(.22, .7, .25, 1);
}
.panel-dialog::backdrop {
  background: rgba(2, 5, 14, .62);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
}

.panel-dialog__head {
  position: relative;
  flex: none;
  padding: 28px 80px 22px;
  text-align: center;
  border-bottom: 1px solid var(--panel-line);
}
.panel-dialog__eyebrow {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(225, 224, 213, .55);
}
.panel-dialog__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #f3f0e7;
}
.panel-dialog__head .ornament { margin: 14px auto 0; }

.panel-dialog__close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(226, 232, 244, .28);
  background: transparent;
  color: rgba(240, 241, 245, .8);
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.panel-dialog__close::before,
.panel-dialog__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.panel-dialog__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.panel-dialog__close:hover { color: #fff; border-color: var(--gold); background: rgba(216, 182, 120, .08); }
.panel-dialog__close:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

.panel-dialog__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(28px, 4vw, 56px) clamp(22px, 5vw, 64px) clamp(36px, 5vw, 64px);
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 182, 120, .35) transparent;
}
.panel-dialog__body:focus { outline: none; }   /* recibe el foco al abrir para poder desplazarse con el teclado */
.panel-dialog__body::-webkit-scrollbar { width: 6px; }
.panel-dialog__body::-webkit-scrollbar-thumb { background: rgba(216, 182, 120, .35); }

.panel-intro {
  max-width: 58ch;
  margin: 0 auto 36px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(225, 229, 238, .7);
  text-wrap: pretty;
}

/* ==========================================================================
   HISTORIA
   ========================================================================== */
.lore {
  max-width: 660px;
  margin: 0 auto;
  font-family: var(--serif);
}
.lore__kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.lore__kicker::before,
.lore__kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.lore__title {
  margin: 14px 0 20px;
  text-align: center;
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #f3f0e7;
  text-wrap: balance;
}
.lore__lead {
  max-width: 36ch;
  margin: 0 auto;
  text-align: center;
  font-style: italic;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: rgba(238, 234, 224, .86);
  text-wrap: balance;
}
.lore__act {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 48px 0 20px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.lore__act::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, rgba(216, 182, 120, .4), transparent); }
.lore p {
  margin: 0 0 1.15em;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-soft);
  text-wrap: pretty;
}
.lore .lore__lead { margin: 0 auto; color: rgba(238, 234, 224, .86); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; }
.lore .lore__first::first-letter {
  float: left;
  margin: 6px 12px 0 0;
  font-size: 3.6em;
  line-height: .85;
  color: var(--gold);
}
.lore__pull {
  margin: 36px 0 8px;
  padding: 26px 0;
  border-top: 1px solid var(--panel-line);
  border-bottom: 1px solid var(--panel-line);
  text-align: center;
}
.lore .lore__pull p {
  margin: 0;
  font-style: italic;
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.45;
  color: #f3f0e7;
  text-wrap: balance;
}
.lore .lore__pull .lore__beat {
  margin-top: 14px;
  font-style: normal;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.lore .term {
  font-weight: normal;
  color: #e9cd94;
}
.lore__end {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--panel-line);
  text-align: center;
}
.lore .lore__end-title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #f3f0e7;
}
.lore .lore__end-tag {
  margin: 14px 0 30px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ==========================================================================
   MULTIMEDIA
   ========================================================================== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 18px;
}
.media-grid[hidden] { display: none; }
.media-item {
  appearance: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.media-item--featured { grid-column: 1 / -1; }
.media-item__thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--panel-line);
  background: radial-gradient(ellipse at 50% 38%, rgba(46, 78, 140, .38), rgba(4, 9, 20, .95) 72%);
  transition: border-color .3s ease;
}
.media-item__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.9);
  transition: transform .7s cubic-bezier(.22, .7, .25, 1), filter .4s ease;
}
.media-item--contain .media-item__thumb img { object-fit: contain; padding: 5%; }
.media-item:not(.is-empty):hover .media-item__thumb,
.media-item:focus-visible .media-item__thumb { border-color: rgba(216, 182, 120, .7); }
.media-item:not(.is-empty):hover .media-item__thumb img { transform: scale(1.04); filter: brightness(1.05); }
.media-item:focus-visible { outline: none; }

.media-item__caption { display: flex; flex-direction: column; gap: 5px; }
.media-item__type {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.media-item__title { font-family: var(--serif); font-size: 16px; color: #f0ede4; }

.media-item.is-empty { cursor: default; }
.media-item.is-empty .media-item__thumb { border-style: dashed; border-color: rgba(238, 226, 195, .2); }
.media-item.is-empty .media-item__title { color: rgba(240, 237, 228, .6); }
.media-item__soon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  text-align: center;
  font-size: 9px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(225, 229, 238, .5);
}
.media-item__play {                          /* círculo con triángulo */
  position: relative;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(238, 226, 195, .45);
  border-radius: 50%;
}
.media-item__play::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  width: 16px;
  height: 18px;
  background: rgba(238, 226, 195, .75);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translate(-50%, -50%);
}
.media-item--featured .media-item__play { width: 84px; height: 84px; }
.media-item__frame {                         /* esquinas de encuadre para capturas */
  width: 38px;
  height: 26px;
  background:
    linear-gradient(rgba(238,226,195,.45), rgba(238,226,195,.45)) left top / 9px 1px,
    linear-gradient(rgba(238,226,195,.45), rgba(238,226,195,.45)) left top / 1px 9px,
    linear-gradient(rgba(238,226,195,.45), rgba(238,226,195,.45)) right bottom / 9px 1px,
    linear-gradient(rgba(238,226,195,.45), rgba(238,226,195,.45)) right bottom / 1px 9px;
  background-repeat: no-repeat;
}

/* Visor */
.media-viewer[hidden] { display: none; }
.media-viewer__stage {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 60vh;
  max-height: 60svh;
  border: 1px solid var(--panel-line);
  background: #02060f;
}
.media-viewer__stage > * {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  display: block;
}
.media-viewer__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.media-viewer__back {
  padding: 8px 0;
  border: 0;
  background: none;
  color: rgba(225, 230, 239, .7);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .25s ease;
}
.media-viewer__back:hover { color: #fff; }
.media-viewer__caption {
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 16px;
  color: #f0ede4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-viewer__count { font-size: 11px; letter-spacing: .12em; color: rgba(225, 230, 239, .55); font-variant-numeric: tabular-nums; }
.media-viewer__nav {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(226, 232, 244, .28);
  background: transparent;
  color: rgba(240, 241, 245, .8);
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}
.media-viewer__nav::before {                 /* chevron */
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translate(-30%, -50%) rotate(45deg);
}
.media-viewer__nav--next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.media-viewer__nav:hover { color: #fff; border-color: var(--gold); }
.media-viewer__back:focus-visible,
.media-viewer__nav:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

/* ==========================================================================
   ROADMAP
   ========================================================================== */
.roadmap { max-width: 820px; margin: 0 auto; }

.roadmap-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-bottom: 44px;
  padding: 20px 24px;
  border: 1px solid var(--panel-line);
  background: rgba(255, 255, 255, .02);
}
.roadmap-summary__now { display: flex; flex-direction: column; gap: 6px; }
.roadmap-summary__label,
.roadmap-legend {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(225, 230, 239, .55);
}
.roadmap-summary__value { font-family: var(--serif); font-weight: 500; font-size: 22px; color: #f3f0e7; }

.roadmap-track {
  position: relative;
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.roadmap-track::before {                     /* línea base */
  content: "";
  position: absolute;
  left: 4px;
  right: 14px;
  top: 50%;
  height: 1px;
  background: rgba(226, 232, 244, .18);
}
.roadmap-track::after {                      /* tramo recorrido: hasta la fase en curso */
  content: "";
  position: absolute;
  left: 4px;
  width: calc((100% - 18px) / 9 * 3);
  top: 50%;
  height: 1px;
  background: linear-gradient(to right, var(--gold), var(--volt));
}

.rm-dot {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(226, 232, 244, .4);
  background: #070d1c;
  transform: rotate(45deg);
}
.rm-dot.is-done { background: var(--gold); border-color: var(--gold); }
.rm-dot.is-current {
  background: var(--volt);
  border-color: var(--volt);
  box-shadow: 0 0 0 4px rgba(108, 196, 255, .14), 0 0 14px rgba(108, 196, 255, .8);
  animation: rmPulse 2.4s ease-in-out infinite;
}
.rm-dot--final {
  width: auto;
  height: auto;
  padding: 3px 6px;
  border-color: rgba(238, 226, 195, .45);
  transform: none;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(243, 240, 231, .85);
}
@keyframes rmPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(108, 196, 255, .12), 0 0 10px rgba(108, 196, 255, .6); }
  50%      { box-shadow: 0 0 0 6px rgba(108, 196, 255, .06), 0 0 18px rgba(108, 196, 255, .95); }
}

.roadmap-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.roadmap-legend li { display: inline-flex; align-items: center; gap: 8px; }
.roadmap-legend li::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1px solid rgba(226, 232, 244, .45);
  transform: rotate(45deg);
}
.roadmap-legend .is-done::before { background: var(--gold); border-color: var(--gold); }
.roadmap-legend .is-current::before { background: var(--volt); border-color: var(--volt); }

/* Línea de tiempo */
.rm-list { position: relative; margin: 0; padding: 0; list-style: none; }
.rm-list::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold) 0%, var(--volt) 16%, rgba(226, 232, 244, .16) 26%, rgba(226, 232, 244, .1) 100%);
}
.rm-phase { position: relative; padding: 0 0 40px 50px; }
.rm-phase:last-child { padding-bottom: 8px; }
.rm-phase__node {
  position: absolute;
  left: 6px;
  top: 3px;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(226, 232, 244, .4);
  background: #070d1c;
  transform: rotate(45deg);
}
.rm-phase.is-done .rm-phase__node { background: var(--gold); border-color: var(--gold); }
.rm-phase.is-current .rm-phase__node {
  background: var(--volt);
  border-color: var(--volt);
  animation: rmPulse 2.4s ease-in-out infinite;
}

.rm-phase__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(225, 230, 239, .5);
}
.rm-tag {
  padding: 4px 8px 3px;
  border: 1px solid currentColor;
  color: rgba(225, 230, 239, .5);
}
.rm-phase.is-done .rm-tag { color: var(--gold); }
.rm-phase.is-current .rm-tag { color: var(--volt); }
.rm-here {
  padding: 4px 8px 3px;
  background: var(--volt);
  color: #04101f;
  font-weight: 600;
}
.rm-phase__title {
  margin: 12px 0 6px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 25px);
  letter-spacing: .03em;
  color: #f3f0e7;
}
.rm-phase.is-next .rm-phase__title { color: rgba(243, 240, 231, .82); }
.rm-phase__pitch {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(225, 229, 238, .7);
}
.rm-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rm-items li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(225, 229, 238, .74);
}
.rm-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 4px;
  height: 4px;
  background: rgba(226, 232, 244, .35);
  transform: rotate(45deg);
}
.rm-phase.is-done .rm-items li::before { background: var(--gold); }
.rm-phase.is-current .rm-items li::before { background: var(--volt); }

/* Fase en curso: tarjeta destacada */
.rm-phase.is-current {
  margin: 0 0 40px;
  padding: 24px 26px 26px 50px;
  border: 1px solid rgba(108, 196, 255, .3);
  background: linear-gradient(135deg, rgba(108, 196, 255, .07), rgba(108, 196, 255, 0) 60%);
  box-shadow: inset 0 0 40px rgba(108, 196, 255, .05);
}
.rm-phase.is-current .rm-phase__node { top: 27px; }

/* Ciclo de juego del Vertical Slice */
.rm-loop { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(108, 196, 255, .18); }
.rm-loop__label {
  display: block;
  margin-bottom: 12px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(225, 230, 239, .55);
}
.rm-loop__steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rm-loop__steps li {
  position: relative;
  padding: 6px 11px 5px;
  border: 1px solid rgba(108, 196, 255, .32);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(232, 240, 250, .88);
}
.rm-loop__steps li + li::before {            /* flecha entre pasos */
  content: "→";
  position: absolute;
  left: -21px;
  top: 50%;
  transform: translateY(-52%);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--volt);
}
.rm-loop__steps::after {                     /* y vuelta a empezar */
  content: "↺";
  margin-left: -14px;
  font-size: 17px;
  line-height: 1;
  color: var(--volt);
}

.roadmap-end {
  margin-top: 36px;
  padding-top: 40px;
  border-top: 1px solid var(--panel-line);
  text-align: center;
}
.roadmap-end__title {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #f3f0e7;
}

/* ---------- Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  .panel-dialog[open] { animation: none; }
  .rm-dot.is-current,
  .rm-phase.is-current .rm-phase__node { animation: none; }
  .media-item__thumb img { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Móvil: ventanas a pantalla completa ---------- */
@media (max-width: 760px) {
  .panel-dialog {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    inset: 0;
    border: 0;
  }
  .panel-dialog__head { padding: 20px 64px 16px; }
  .panel-dialog__close { top: 14px; right: 14px; }
  .panel-dialog__title { letter-spacing: .12em; }
  .lore p { font-size: 16px; line-height: 1.75; }
  .media-grid { grid-template-columns: 1fr; }
  .media-viewer__bar { grid-template-columns: minmax(0, 1fr) auto auto auto; }
  .media-viewer__caption { display: none; }
  .roadmap-summary { padding: 18px; }
  .rm-items { grid-template-columns: 1fr; }
  .rm-phase { padding-left: 40px; }
  .rm-phase.is-current { padding: 20px 18px 22px 40px; }
}

/* Móvil: el menú (oculto en la cabecera) pasa a una fila discreta sobre el pie */
@media (max-width: 760px) {
  .site-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(46px + env(safe-area-inset-bottom, 0px));
    z-index: 50;
    justify-content: center;
    gap: 26px;
  }
  .site-nav a { font-size: 10px; letter-spacing: .2em; color: rgba(240, 241, 245, .8); }
}

/* ==========================================================================
   PATCH 2026-09-19 (e) — Humo de la chimenea
   Mismo sprite que los propulsores, sobre la boca de la chimenea (centro x 324,
   y 232 en el lienzo de house.png; se ancla en x 336 porque el dibujo del humo
   se desvía de su punta) y volteado (scale -1,-1) para que suba recto. Queda detrás de la casa, así nace
   desde dentro del tubo.
   ========================================================================== */
.chimney-smoke {
  position: absolute;
  z-index: 1;
  width: calc(var(--s) * 100%);
  height: auto;
  max-width: none;
  left: calc((var(--x) - 516 * var(--s)) / 1122 * 100%);
  top:  calc((var(--y) - 18 * var(--s)) / 1402 * 100%);
  transform-origin: 45.99% 1.28%;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  filter: saturate(.55) brightness(1) contrast(1.15);
  /* se disipa al subir */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 16%, rgba(0,0,0,.55) 30%, transparent 46%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 16%, rgba(0,0,0,.55) 30%, transparent 46%);
  will-change: transform, opacity;
  animation: chimneyPuff var(--cd, 8s) linear var(--cdel, 0s) infinite;
}
@keyframes chimneyPuff {
  0%   { opacity: 0;   transform: scale(-.72, -.72); }
  14%  { opacity: .92; }
  62%  { opacity: .68; }
  100% { opacity: 0;   transform: scale(-1.02, -1.2); }
}

body.motion-reduced .chimney-smoke { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .chimney-smoke { animation: none !important; opacity: .6; transform: scale(-1, -1); }
  .chimney-smoke + .chimney-smoke { display: none; }
}

/* ==========================================================================
   PATCH 2026-09-22 — Logo en imagen (img/logo2.webp) en lugar del texto
   ========================================================================== */
.hero-content h1.hero-logo {
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
  margin: -4% 0 0 -2.6%;   /* compensa el margen transparente del PNG */
}
.hero-logo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 18px rgba(0, 0, 0, .55));
}
@media (max-width: 760px) {
  .hero-content h1.hero-logo {
    width: min(82vw, 340px);
    margin: -4% auto 0;
  }
}
@media (max-height: 700px) and (min-width: 761px) {
  .hero-content h1.hero-logo { width: 88%; }
}
