/* v0.3 — escenas editoriales y un permiso global visible en la cabecera. */
.pilot-scope .motion-preferences{position:fixed;bottom:12px;left:12px;z-index:80;font:500 11px/1.4 var(--ff-body);color:#f6ede3;background:transparent;border:0;padding:0;margin:0}
.motion-preferences>summary{cursor:pointer;list-style:none;font:500 11px/1.4 var(--ff-body);padding:12px;background:#0b192ce8;border:1px solid #a7b5c455;border-radius:20px;box-shadow:0 2px 10px #0002}
.motion-preferences>summary::-webkit-details-marker{display:none}
.motion-preferences>summary::after{display:none}
.motion-preferences>summary:focus-visible{outline:2px solid #d3ad63;outline-offset:3px}
.motion-preferences-panel{position:absolute;bottom:44px;left:0;width:230px;padding:18px;background:#0b192c;border:1px solid #a7b5c455;border-radius:8px;box-shadow:0 8px 30px #0005}
.motion-preferences-panel p{margin:0 0 12px;font-size:13px;color:#f6ede3}
.motion-master{position:static;display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;background:transparent;color:#f6ede3;border:1px solid #d3ad6377;border-radius:5px;font:500 12px/1.2 var(--ff-body);min-height:44px;padding:8px 10px;cursor:pointer;white-space:nowrap}
.motion-master::before{content:"";width:6px;height:6px;border-radius:50%;background:transparent;border:1px solid currentColor;flex:0 0 auto}
.motion-master[aria-pressed="true"]::before{background:#d3ad63;border-color:#d3ad63}
.motion-master:hover{border-color:#e2bb75;background:#192e52}.motion-master:disabled{cursor:default;color:#c9d2df}
.motion-master:focus-visible,.scene-control:focus-visible{outline:2px solid #e2bb75;outline-offset:4px}
.pilot-scope .nav-row{column-gap:18px}.pilot-scope .nav-row > .main-nav{margin-left:auto}
.reading-progress{position:fixed;top:0;left:0;width:100%;height:3px;transform-origin:left;transform:scaleX(0);background:#d3ad63;z-index:100;pointer-events:none}

/* Nunca se oculta la imagen de respaldo; el video aparece encima tras reproducir. */
[data-scene-root]{position:relative}
[data-scene-root] .scene-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1s ease;pointer-events:none}
[data-scene-root].scene-ready .scene-video{opacity:1}
.scene-control{display:none;position:static;flex:0 0 auto;border:1px solid #c7b28f88;background:#07111e;color:#f6ede3;padding:10px 12px;font:500 12px/1.2 var(--ff-body);min-height:44px;cursor:pointer;border-radius:3px}
html.js .scene-control{display:inline-block}.scene-control:hover{background:#192e52}.scene-control:disabled{opacity:.75;cursor:default}
.scene-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-height:44px;margin-top:12px}
.scene-frame{position:relative;overflow:hidden;border-radius:3px;margin:0;isolation:isolate}
.scene-frame > img{width:100%;height:auto;display:block}
.hero-cinema[data-scene-root]{isolation:isolate}.hero-cinema .hero-art .scene-video{transition:opacity 1.5s ease}
.hero-cinema .hero-caption{z-index:3;display:flex;gap:24px;align-items:center}.program-portrait .scene-video{object-fit:contain}
.program-portrait .portrait-scene{height:100%;width:100%;position:relative}
.program-portrait .portrait-scene > img{width:100%;height:100%;object-fit:contain}
.hero-art img,.hero-art video{will-change:auto}
html.motion-enabled .hero-cinema[data-parallax] .hero-art img,html.motion-enabled .hero-cinema[data-parallax] .hero-art video{transform:translate3d(0,var(--scene-y,0px),0) scale(1.025)}

/* Entradas coordinadas. El contenido se conserva visible sin JS. */
html.motion-ready.motion-enabled [data-enter]{transition:opacity .5s ease,transform .6s cubic-bezier(.2,.65,.2,1);transition-delay:var(--enter-delay,0ms)}
html.motion-ready.motion-enabled [data-enter]:not(.motion-in){opacity:0;transform:translateY(18px)}
html.motion-ready.motion-enabled [data-enter].motion-in{opacity:1;transform:none}
html.motion-ready.motion-enabled [data-enter]:focus-within,html.motion-ready.motion-enabled [data-enter].motion-focus-revealed{opacity:1;transform:none;transition:none}
@keyframes ce-enter{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
html.motion-intro.motion-enabled .hero-copy > *{animation:ce-enter .9s cubic-bezier(.2,.65,.2,1) both}
html.motion-intro.motion-enabled .hero-copy > :nth-child(2){animation-delay:.1s}
html.motion-intro.motion-enabled .hero-copy > :nth-child(3){animation-delay:.2s}
html.motion-intro.motion-enabled .hero-copy > :nth-child(n+4){animation-delay:.3s}
@media(min-width:761px) and (hover:hover){
  html.js .scene-control{opacity:0;pointer-events:none}
  html.js .scene-control:focus-visible,html.js .scene-controls:hover .scene-control,html.js .scene-controls:focus-within .scene-control,html.js .editorial-image:hover .scene-control,html.js .hero-caption:hover .scene-control,html.js .program-portrait:hover .scene-control{opacity:1;pointer-events:auto}
}

/* El viaje permanece al lado de sus cuatro etapas. Todas se pueden leer sin interacción. */
.journey-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:6%;align-items:start;margin-top:42px}
.journey-visual{position:sticky;top:120px;min-width:0}.journey-visual .journey-image{margin:0;position:relative;overflow:hidden}
.journey-image .scene-frame{border:1px solid #d3ad6333}
.journey-focus{display:none;position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:2}
html.motion-ready .journey-focus{display:block}
.journey-focus:before{content:"";position:absolute;top:0;bottom:0;width:25%;left:calc(var(--stage-index,0) * 25%);box-shadow:0 0 0 1200px #07111e60;outline:1px solid #e2bd7055;outline-offset:-1px;transition:left .65s cubic-bezier(.22,.7,.15,1)}
.journey-caption{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid #d3ad6355;padding:22px 0;color:#eddbb4}
.journey-caption strong{font:500 25px/1.2 var(--ff-display);text-transform:uppercase;letter-spacing:.02em}
.journey-indicators{display:flex;gap:9px}.journey-indicators button{display:none;min-width:42px;min-height:42px;border:1px solid #d3ad6355;color:#c4cdd8;border-radius:50%;background:none;font:500 14px var(--ff-body);cursor:pointer}
html.motion-ready .journey-indicators button{display:block}.journey-indicators button[aria-current]{background:#d3ad63;color:#0d203d;border-color:#d3ad63}
.pilot-scope .journey-steps{display:block;margin:0}.pilot-scope .journey-steps li{padding:38px 0 40px 23px;min-height:240px;border:0;border-left:1px solid #d3ad6333;transition:border-color .5s,background .5s;color:#adbbcc;font-size:16px}
.pilot-scope .journey-steps li:before{margin-bottom:10px;font-size:17px;color:#99a8bc}
.pilot-scope .journey-steps li strong{font-size:36px;margin-bottom:15px;transition:color .5s}
.pilot-scope .journey-steps li.stage-active{border-left:3px solid #d3ad63;padding-left:21px;background:linear-gradient(90deg,#d3ad6310,transparent);color:#e1e6ee}
.pilot-scope .journey-steps li.stage-active strong,.pilot-scope .journey-steps li.stage-active:before{color:#e2bb75}
.journey-visual > p{font-size:14px;color:#9aaac0;margin-top:20px;line-height:1.7}

/* Pausa y accesibilidad: no quedan entradas escondidas ni transformaciones residuales. */
html.motion-paused{scroll-behavior:auto!important}
html.motion-paused .pilot-scope *,html.motion-paused .pilot-scope *::before,html.motion-paused .pilot-scope *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html.motion-paused .reading-progress,html.motion-paused .progress-bar{display:none}
html.motion-paused [data-enter]{opacity:1!important;transform:none!important;transition:none!important}
html.motion-paused [data-parallax] .hero-art img,html.motion-paused [data-parallax] .hero-art video{transform:none!important}
html.motion-paused .journey-focus:before,html.motion-paused .journey-steps li,html.motion-paused .journey-steps strong{transition:none!important}
html.motion-paused .hero-copy > *,html.motion-paused .program-hero-copy > *,html.motion-paused .guides-hero-grid > div:first-child > *{animation:none!important}
@media(max-width:1020px){.journey-layout{grid-template-columns:1.15fr 1fr;gap:4%}.journey-caption{display:block}.journey-indicators{margin-top:16px}.journey-visual{top:105px}.pilot-scope .journey-steps li strong{font-size:30px}}
@media(max-width:760px){
  /* Opaque dock separates the global control from reading content on phones. */
  html{scroll-padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
  body.pilot-scope{padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))}
  .pilot-scope .motion-preferences{left:0;right:0;bottom:0;padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px));background:#0b192c;border-top:1px solid #a7b5c455}
  .motion-preferences>summary{width:max-content;min-height:44px;box-sizing:border-box;background:#0b192c}
  .motion-preferences-panel{left:12px;bottom:calc(100% + 8px);width:min(230px,calc(100vw - 24px));box-sizing:border-box}
  .motion-master{min-height:44px;font-size:11px;padding:8px;gap:6px}
  .pilot-scope .nav-row{column-gap:8px;flex-wrap:wrap}
  .pilot-scope .nav-row > .brand{min-width:0;flex:1 1 100px}
  .pilot-scope .nav-row > .nav-toggle{flex:0 0 auto}
  .pilot-scope .brand-logo{max-width:100%;height:auto;max-height:40px}
  .journey-layout{display:block;margin-top:28px}.journey-visual{position:relative;top:auto;margin-bottom:25px}
  .journey-caption{display:flex;flex-wrap:wrap;padding:18px 0}.journey-caption strong{font-size:23px}.journey-indicators{margin:0}
  .journey-indicators button{min-width:38px;min-height:38px;font-size:13px}
  .pilot-scope .journey-steps li{min-height:0;padding:28px 0 30px 20px;font-size:16px}.pilot-scope .journey-steps li.stage-active{padding-left:18px}
  .pilot-scope .journey-steps li strong{font-size:30px}.journey-visual > p{display:none}
  .scene-control{font-size:12px}
  html.motion-ready.motion-enabled [data-enter]:not(.motion-in){transform:translateY(16px)}
}
@media(prefers-reduced-motion:reduce){
  [data-enter],.hero-copy > *,.program-hero-copy > *,.guides-hero-grid > div:first-child > *{opacity:1!important;transform:none!important;animation:none!important;transition:none!important}
  [data-parallax] .hero-art img,[data-parallax] .hero-art video{transform:none!important}
  .scene-video{opacity:0!important}.journey-focus:before{transition:none!important}
}
