@charset "UTF-8";
/* VIATRO · css/riel.css — Chapter rail: one calibrated V (chapters.js).
   Part 23 of 25: every page links the parts in one fixed order (cascade); see docs/DESARROLLO.md. */
/* Progress 0..1 of the page and of the pinned #capacidades row. Registered so scroll-driven animations can
   interpolate them; chapters.js writes the same numbers when the browser has no scroll-driven animations. */
@property --rail-p{syntax:"<number>";inherits:true;initial-value:0}
@property --rail-cap{syntax:"<number>";inherits:true;initial-value:0}
@property --rail-step{syntax:"<number>";inherits:true;initial-value:0}
body{timeline-scope:--rail-cap}
#horiz-pin{view-timeline-name:--rail-cap;view-timeline-axis:block;view-timeline-inset:0}
/* One V, 32 px wide, fixed at the right edge; decorative: no labels, no links, nothing focusable. It is drawn ONLY
   with the official carbon V (byte-identical to brand/assets/icon, used as a mask over a kit colour), scaled
   uniformly along its 181/177 viewBox, moved, rotated or clipped; never redrawn, deformed or thinned.
   Base is Líneas on light and Gris on dark; the fill is Oxblood on light (~9:1 over Marfil) and Coral on dark
   (~6.6:1 over Carbón). Oxblood never goes over Carbón: there it disappears (~1.9:1).
   Every transition of the rail shares one time and one curve (--t-med, --ease-editorial): when data-vtone flips
   the base and the fill crossfade their colour instead of jumping (reduced motion: the global floor makes it instant). */
.rail{position:fixed;z-index:300;right:4px;top:50%;width:32px;transform:translateY(-50%);pointer-events:none;--rail-base:var(--vi-hairline);--rail-accent:var(--vi-oxblood);transition:opacity var(--t-med) var(--ease-editorial),visibility var(--t-med) var(--ease-editorial)}
.rail[data-vtone=dark]{--rail-base:var(--vi-gray);--rail-accent:var(--vi-coral)}
.rail[hidden],body.is-loading .rail{display:none}
.rail.is-away{opacity:0;visibility:hidden}
.rail-mark{position:relative;display:block;width:32px;aspect-ratio:181/177;transform-origin:50% 50%;transition:transform var(--t-med) var(--ease-editorial);-webkit-mask:url(/assets/viatro-v-carbon.svg) center/contain no-repeat;mask:url(/assets/viatro-v-carbon.svg) center/contain no-repeat}
.rail-v-base,.rail-v-fill{position:absolute;inset:0;transition:background-color var(--t-med) var(--ease-editorial)}
.rail-v-base{background:var(--rail-base)}
.rail-v-fill{background:var(--rail-accent);clip-path:inset(0 0 calc((1 - var(--rail-p)) * 100%) 0)}
.rail[data-sec=capacidades] .rail-mark{transform:rotate(-90deg)}
.rail[data-sec=capacidades] .rail-v-fill{clip-path:inset(0 0 calc((1 - var(--rail-cap)) * 100%) 0)}
.rail[data-sec=coleccion] .rail-mark{transform:scale(.55)}
/* CSS scroll-driven engine (.sda on <html> from chapters.js): the fill follows the page scroll, and the -90° V
   follows the real horizontal travel of the pinned row (contain range of #horiz-pin = its 100vh + travel). */
@keyframes rail-page{from{--rail-p:0}to{--rail-p:1}}
@keyframes rail-cap{from{--rail-cap:0}to{--rail-cap:1}}
.sda .rail{animation:rail-page linear both,rail-cap linear both;animation-timeline:scroll(root),--rail-cap;animation-range:normal,contain 0% contain 100%}
/* Reduced motion: no interpolation; the fill steps per chapter with the value chapters.js writes. */
@media(prefers-reduced-motion:reduce){.rail,.sda .rail{animation:none;--rail-p:var(--rail-step);--rail-cap:var(--rail-step)}.rail-mark{transition:none}}
@media(max-width:880px){.rail{display:none}}
