/* Introducciones de Haven («Respirar») y Horizon («Amanecer"). Ver intro.js. */
html.lwi-lock { overflow: hidden; }
/* Las páginas v0.4.1 no fijan box-sizing para esta capa: sin esto, el relleno se suma a la altura de cada mitad. */
.lwi, .lwi *, .lwi-replay-bar, .lwi-replay-bar * { box-sizing: border-box; }
.lwi { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; align-content: center; gap: 18px; overflow: hidden; font-family: 'Manrope Variable', system-ui, sans-serif; text-align: center;
  /* Seguro: aunque falle el código, a los 5 s deja de tapar la página. */
  animation: lwi-guard .4s 5s forwards; }
@keyframes lwi-guard { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.lwi-logo { position: relative; width: min(62vw, 330px); height: auto; }
.lwi-line { position: relative; margin: 0; padding: 0 24px; font-size: clamp(.98rem, 2.3vw, 1.2rem); }
.lwi-skip { position: absolute; right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); min-height: 44px; padding: 0 18px; border-radius: 999px; font: 600 .9rem/1 'Manrope Variable', system-ui, sans-serif; cursor: pointer; opacity: 0; animation: lwi-fade .4s .3s forwards; }
.lwi-skip:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
@keyframes lwi-fade { to { opacity: 1; } }
@keyframes lwi-rise { from { opacity: 0; transform: translateY(16px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }

/* ── HAVEN · Respirar ── */
.lwi-haven { background: radial-gradient(70% 55% at 50% 42%, #2a1f5c 0, #120e2b 55%, #07060f 100%); color: #f3f0ff; }
.lwi-hv-stage { position: relative; width: min(56vw, 260px); aspect-ratio: 1; display: grid; place-items: center; }
.lwi-hv-orb { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff 0, #e9defc 18%, #cdb9f2 42%, #f4c9d8 70%, transparent 72%); filter: blur(1px); box-shadow: 0 0 80px 20px rgb(205 185 242 / .35); transform: scale(.55); opacity: 0;
  animation: lwi-breathe 2.2s .15s cubic-bezier(.45, 0, .2, 1) forwards; }
@keyframes lwi-breathe { 0% { transform: scale(.55); opacity: 0; } 15% { opacity: 1; } 55% { transform: scale(1.18); } 100% { transform: scale(.92); opacity: 1; } }
.lwi-hv-ring { position: absolute; inset: 22%; border-radius: 50%; border: 1.5px solid rgb(233 222 252 / .55); opacity: 0; animation: lwi-ripple 1.8s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes lwi-ripple { from { transform: scale(.8); opacity: .8; } to { transform: scale(2.1); opacity: 0; } }
.lwi-hv-words { position: absolute; inset: auto 0 -34px; margin: 0; height: 24px; font: italic 400 1.05rem/24px 'Fraunces Variable', Georgia, serif; letter-spacing: .04em; color: #e9defc; }
.lwi-hv-words span { position: absolute; inset: 0; opacity: 0; }
.lwi-hv-in { animation: lwi-word 1.1s .2s forwards; }
.lwi-hv-out { animation: lwi-word 1s 1.25s forwards; }
@keyframes lwi-word { 0% { opacity: 0; transform: translateY(6px); } 30%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
.lwi-hv-logo { margin-top: 26px; opacity: 0; animation: lwi-rise .9s 1.7s cubic-bezier(.2, .8, .2, 1) forwards; }
.lwi-hv-line { opacity: 0; font-family: 'Fraunces Variable', Georgia, serif; color: #cdc6ea; animation: lwi-rise .8s 2s cubic-bezier(.2, .8, .2, 1) forwards; }
.lwi-haven .lwi-skip { background: rgb(255 255 255 / .08); color: #f3f0ff; border: 1px solid rgb(233 222 252 / .4); }
.lwi-haven .lwi-skip:hover { background: #f3f0ff; color: #1a1238; }
.lwi-haven.lwi-leave { animation: lwi-mist .8s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes lwi-mist { to { opacity: 0; filter: blur(14px); transform: scale(1.05); } }

/* ── HORIZON · Amanecer ── */
.lwi-horizon { display: block; color: #f2efe9; }
.lwi-hz-half { position: absolute; left: 0; right: 0; background: #0b0b0c; transition: transform .75s cubic-bezier(.7, 0, .2, 1); }
.lwi-hz-top { top: 0; height: 50%; display: grid; place-items: end center; padding-bottom: 28px; overflow: hidden; }
.lwi-hz-bottom { bottom: 0; height: 50%; display: grid; place-items: start center; padding-top: 34px; }
.lwi-hz-sky { position: absolute; inset: 0; overflow: hidden; }
.lwi-hz-sun { position: absolute; left: 50%; bottom: -120px; width: 200px; height: 200px; margin-left: -100px; border-radius: 50%; background: radial-gradient(circle, #ffe1a3 0, #ffb01d 45%, rgb(255 176 29 / 0) 70%); filter: blur(.5px); opacity: .95;
  animation: lwi-sunrise 1.2s .45s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes lwi-sunrise { to { transform: translateY(-70px); } }
.lwi-hz-logo { position: relative; z-index: 1; width: min(58vw, 300px); opacity: 0; animation: lwi-rise .8s 1.35s cubic-bezier(.2, .8, .2, 1) forwards; }
.lwi-hz-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; z-index: 2; background: linear-gradient(90deg, transparent, #f2efe9 12%, #f2efe9 88%, transparent); transform: scaleX(0); animation: lwi-draw .65s .1s cubic-bezier(.7, 0, .2, 1) forwards; transition: opacity .3s; }
@keyframes lwi-draw { to { transform: scaleX(1); } }
.lwi-hz-ticks { list-style: none; margin: 0 auto; padding: 0; position: absolute; left: 50%; top: -5px; width: min(86vw, 760px); transform: translateX(-50%); display: flex; justify-content: space-between; }
.lwi-hz-ticks li { display: grid; justify-items: center; gap: 10px; opacity: 0; transform: translateY(6px); animation: lwi-tick .45s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes lwi-tick { to { opacity: 1; transform: none; } }
.lwi-hz-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #0b0b0c, 0 0 18px var(--c); }
.lwi-hz-name { font: 600 .72rem/1 'Bricolage Grotesque Variable', 'Manrope Variable', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #c9c5bb; }
@media (max-width: 640px) { .lwi-hz-name { display: none; } .lwi-hz-sun { width: 150px; height: 150px; margin-left: -75px; bottom: -100px; opacity: .8; } }
@media (min-width: 641px) { .lwi-hz-bottom { padding-top: 66px; } .lwi-hz-top { padding-bottom: 40px; } }
.lwi-hz-line-text { opacity: 0; color: #c9c5bb; animation: lwi-rise .7s 1.75s cubic-bezier(.2, .8, .2, 1) forwards; }
.lwi-horizon .lwi-skip { z-index: 3; background: rgb(255 255 255 / .06); color: #f2efe9; border: 1px solid rgb(242 239 233 / .35); }
.lwi-horizon .lwi-skip:hover { background: #ffb01d; color: #171000; border-color: #ffb01d; }
/* Salida: el horizonte se abre hacia arriba y hacia abajo. */
.lwi-horizon.lwi-leave { animation: lwi-out .8s linear forwards; }
@keyframes lwi-out { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
.lwi-horizon.lwi-leave .lwi-hz-top { transform: translateY(-100%); }
.lwi-horizon.lwi-leave .lwi-hz-bottom { transform: translateY(100%); }
.lwi-horizon.lwi-leave .lwi-hz-line, .lwi-horizon.lwi-leave .lwi-skip { opacity: 0; }

/* ── Franja «Ver la intro» al final de la página ── */
.lwi-replay-bar { display: flex; justify-content: center; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
.lwi-replay-bar.lwi-replay-haven { background: #120e2b; }
.lwi-replay-bar.lwi-replay-horizon { background: #0b0b0c; }
.lwi-replay { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font: 600 .88rem/1 'Manrope Variable', system-ui, sans-serif; cursor: pointer; background: transparent; transition: background .25s, color .25s, transform .25s; }
.lwi-replay-haven .lwi-replay { color: #f3f0ff; border: 1px solid rgb(233 222 252 / .45); }
.lwi-replay-haven .lwi-replay:hover { background: #f3f0ff; color: #1a1238; }
.lwi-replay-horizon .lwi-replay { color: #f2efe9; border: 1px solid rgb(242 239 233 / .4); }
.lwi-replay-horizon .lwi-replay:hover { background: #ffb01d; color: #171000; border-color: #ffb01d; }
.lwi-replay:focus-visible { outline: 3px solid #ffb01d; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { .lwi, .lwi-replay-bar { display: none !important; } }
