/* Yatridi · variante A (motor scroll-world): tema oscuro cálido con las variables del motor y las tipografías propias.
   El motor inyecta su CSS en @layer sw; estas reglas (sin capa) lo sobrescriben sin tocar su lógica de movimiento. */
:root, .sw-root {
  --sw-bg: #15110d; --sw-ink: #f4ead9; --sw-ink-soft: #cbbba3; --sw-accent: #e0a95b;
  --sw-font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sw-font-body: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
body.mundo-a { background: #15110d; }

/* tipografía: Instrument Serif solo tiene peso 400 (sin negrita sintética) */
.sw-copy__title, .sw-brand__name { font-weight: 400; }
.sw-copy__title { font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -.005em; text-wrap: balance; }
.sw-copy__eyebrow { font: 500 12px/1.3 var(--mono); letter-spacing: .16em; }
.sw-copy__num { font-family: var(--mono); }
.sw-brand__name { font-size: 1.45rem; letter-spacing: -.01em; }
.sw-brand__mark { width: 22px; height: 22px; border-radius: 0; box-shadow: none; background: currentColor;
  -webkit-mask: linear-gradient(#000 0 0) 30% 8% / 64% 12% no-repeat, linear-gradient(#000 0 0) 50% 36% / 28% 12% no-repeat,
                linear-gradient(#000 0 0) 50% 64% / 100% 12% no-repeat, linear-gradient(#000 0 0) 50% 92% / 70% 12% no-repeat;
          mask: linear-gradient(#000 0 0) 30% 8% / 64% 12% no-repeat, linear-gradient(#000 0 0) 50% 36% / 28% 12% no-repeat,
                linear-gradient(#000 0 0) 50% 64% / 100% 12% no-repeat, linear-gradient(#000 0 0) 50% 92% / 70% 12% no-repeat; }

/* piezas claras del motor pasadas a oscuro */
.sw-nav { background: rgb(20 16 12 / .45); border-color: rgb(255 246 232 / .14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.sw-nav__item { color: rgb(245 239 230 / .72); }
.sw-nav__item.is-active { color: #1a140e; }
.sw-topcta, .sw-btn--primary { color: #1a140e; background: #f4ead9; }
.sw-btn--ghost { color: #f4ead9; border-color: rgb(244 234 217 / .35); background: rgb(20 16 12 / .3); }
.sw-copy__tags li { color: #f4ead9; background: rgb(20 16 12 / .5); border-color: color-mix(in srgb, var(--sw-accent) 45%, transparent); font-weight: 500; }
.sw-route__label { color: #f4ead9; background: rgb(20 16 12 / .72); }
.sw-topbar { gap: 12px; }
.sw-topbar .a-idioma { margin-left: auto; }
.sw-topbar .sw-nav + .a-idioma { margin-left: 0; }
.sw-copy__body { color: rgb(245 239 230 / .86); }
@media (max-width: 1280px) { .sw-nav__item { padding: 7px 10px; } }
@media (max-width: 1180px) { .sw-nav { display: none; } }
@media (max-width: 480px) { .sw-topcta { padding: 9px 14px; font-size: .84rem; } .sw-brand__name { font-size: 1.25rem; } }

/* después del vuelo: la última escena se oscurece y el contenido corre por encima */
.a-velo { position: fixed; inset: 0; z-index: 15; background: #0f0b08; opacity: 0; pointer-events: none; }
.sw-copylayer, .sw-route, .sw-hint { transition: opacity .4s, visibility .4s; }
.a-pasado .sw-copylayer, .a-pasado .sw-route, .a-pasado .sw-hint { opacity: 0 !important; visibility: hidden; }
.mundo-a main.a-despues { position: relative; z-index: 45; }
.mundo-a .pie { position: relative; z-index: 45; }
.mundo-a .a-despues .cap:first-child { padding-top: 22vh; }
.a-final { position: fixed; inset: 0; z-index: 9; opacity: 0; pointer-events: none; }
.a-final img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.a-pasado .sw-topbar { background: rgb(20 16 12 / .55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid rgb(255 246 232 / .1); }
.sw-topbar { transition: background .4s, border-color .4s; }
@media (max-width: 860px) {
  .sw-hint { display: none; }
  .sw-copy { right: 46px; }
  .a-final img { object-position: center 44%; }
}

/* ── Móvil: texto del vuelo compacto, abajo, ≤ 35 % de la pantalla, para que se vea la animación ── */
@media (max-width: 860px) {
  .sw-copylayer::before { height: 44%; background: linear-gradient(0deg, var(--sw-bg) 0%, color-mix(in srgb, var(--sw-bg) 82%, transparent) 38%, transparent 100%); }
  .sw-copy { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .sw-copy__num { display: none; }
  .sw-copy__eyebrow { margin-top: 0; font-size: 10.5px; letter-spacing: .14em; }
  .sw-copy__title { font-size: clamp(1.6rem, 6.9vw, 2.15rem); line-height: 1.02; margin-top: 6px; }
  .sw-copy__body { margin-top: 8px; font-size: .93rem; line-height: 1.42; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .sw-copy__tags { flex-wrap: nowrap; overflow: hidden; margin-top: 10px; gap: 6px; -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); }
  .sw-copy__tags li { flex: none; white-space: nowrap; font-size: .72rem; padding: 4px 10px; }
  .sw-copy__cta { margin-top: 12px; gap: 8px; }
  .sw-copy__cta .sw-btn { padding: 11px 16px; font-size: .86rem; }
}
/* ── ?movil=entero: el 16:9 completo y, detrás, el mismo fotograma ampliado y desenfocado ── */
.a-desenfoque { display: none; }
@media (max-width: 860px) and (orientation: portrait) {
  .movil-entero .sw-scene__video, .movil-entero .sw-scene__still { object-fit: contain; object-position: 50% 30%; }
  .movil-entero .a-desenfoque { display: block; position: fixed; inset: -8%; width: 116%; height: 116%; z-index: 5; pointer-events: none;
    filter: blur(18px) brightness(.55) saturate(1.1); }
  .movil-entero .a-final img { object-fit: contain; object-position: 50% 30%; }
}
/* la última sección no tiene clip (solo su foto = último fotograma de v7): sin el acercamiento que el motor da a las fotos
   sin vídeo, para que al llegar no haya salto respecto al vídeo anterior */
.sw-stage > .sw-scene:last-child:not(.has-clip) .sw-scene__still { transform: none !important; }
