@property --edge-angle{syntax:"<angle>";inherits:false;initial-value:0deg}
.imperio-motion .button,.edge-loop{position:relative;isolation:isolate}
.imperio-motion .button::after{
 content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
 background:linear-gradient(114deg,transparent 40%,#fff4da21 44%,#fff7e38c 49%,#fff4da32 54%,transparent 59%) 100% 0/290% 100% no-repeat;
}
.edge-loop::after{
 content:"";position:absolute;inset:0;border-radius:inherit;padding:2px;pointer-events:none;
 background:conic-gradient(from var(--edge-angle),transparent 0deg 285deg,#ffd18470 308deg,#fff6d9 335deg,#ff9c4d 351deg,transparent 360deg);
 mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;
}
.imperio-motion #inscripcion:not(:focus-within) #continuar:not(:disabled){animation:none}
.imperio-motion .button:disabled::after{display:none}
.event-roadmap{margin-top:clamp(28px,5vw,56px)}
.event-roadmap>.tag{color:#ffad68;margin:0 0 8px}
.event-roadmap h3{font-size:clamp(1.72rem,3.8vw,3rem);letter-spacing:-.052em;line-height:1.12;margin:0 0 20px;text-wrap:balance}
.route-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:start;gap:clamp(18px,4vw,48px)}
.route-board{position:sticky;top:clamp(18px,13vh,134px);align-self:start;border:1px solid #643824;border-radius:19px;background:radial-gradient(ellipse at 16% 8%,#422314,transparent 77%),#1b1412;box-shadow:0 17px 38px #08040369;overflow:hidden;min-width:0}
.route-board svg{width:100%;height:auto;display:block}
.route-trail,.route-drawn{fill:none;stroke-linecap:round}
.route-trail{stroke:#c6977a72;stroke-width:2.5;stroke-dasharray:3 8}
.route-drawn{stroke:url(#route-ink);stroke-width:5;stroke-dasharray:100 100;filter:drop-shadow(0 0 5px #ff8139)}
.route-chart-label{fill:#ffdbc4;font:700 16px system-ui,sans-serif}
.route-flag{fill:#ffb86a;stroke:#ffb86a;stroke-width:2;stroke-linejoin:round}
.route-pin circle{fill:#ff9f4e;stroke:#ffc687;stroke-width:1.4}
.route-pin text{fill:#28130b;text-anchor:middle;font:800 13px system-ui,sans-serif}
.route-spark{fill:#fff5df;filter:drop-shadow(0 0 5px #ffad5c)}
.route-tracking[data-route-active="0"] .route-spark{opacity:0}
.route-tracking .route-pin:not(.is-reached) circle{fill:#211613;stroke:#b77958}
.route-tracking .route-pin:not(.is-reached) text{fill:#f8ccad}
.route-steps{position:relative;display:grid;list-style:none;gap:14px;margin:0;padding:0}
.route-steps::before,.route-steps::after{content:"";position:absolute;left:14px;top:31px;bottom:31px;width:2px;border-radius:6px;background:#67402c}
.route-steps::after{background:linear-gradient(#ff9a4a,#ff632f);transform-origin:top;box-shadow:0 0 9px #ec683e7a}
.route-tracking .route-steps::after{clip-path:inset(0 0 calc(100% - var(--route-fill,0%)) 0)}
.route-stage{position:relative;z-index:1;display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:start}
.route-badge{display:grid;place-items:center;width:30px;height:30px;margin-top:16px;border-radius:50%;border:1px solid #ffbd7f;background:#ff9f53;color:#2b160b;font-size:.91rem;font-weight:850;transition:background .22s ease,box-shadow .22s ease}
.route-card,.route-demo{display:grid;grid-template-columns:25px minmax(0,1fr);gap:11px;align-items:start;min-width:0;border:1px solid #67432f;border-radius:15px;background:linear-gradient(130deg,#39241b,#281b16);padding:clamp(13px,2vw,20px);transition:border-color .25s ease,box-shadow .25s ease,background .25s ease}
.route-card svg,.route-demo svg{display:block;width:23px;height:23px;fill:none;stroke:#ffb16c;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.route-card h4,.route-demo h4{font-size:clamp(1.05rem,2vw,1.25rem);letter-spacing:-.025em;line-height:1.23;margin:0;color:#fff6eb}
.route-card p,.route-demo p{font-size:.93rem;line-height:1.4;color:#edd5c7;margin:6px 0 0}
.route-card .route-kicker{margin:0 0 4px;color:#ffbb81;text-transform:uppercase;font:800 .74rem/1.35 ui-monospace,monospace;letter-spacing:.07em}
.route-tracking .route-stage:not(.is-reached) .route-badge{border-color:#ad714d;background:#261913;color:#f4c4a7}
.route-stage.is-current .route-badge{box-shadow:0 0 0 5px #ff8a3c38,0 0 16px #ff7d4a9e}
.route-stage.is-current .route-card{border-color:#ffa15c;box-shadow:0 5px 24px #ff71302f}
.route-goal .route-card{grid-template-columns:1fr;background:linear-gradient(112deg,#ffe09e,#ff9a41 57%,#ff7240);border-color:#ffd497;box-shadow:0 7px 30px #ff763e72}
.route-goal .route-card h4,.route-goal .route-card p{color:#321407}
.route-tracking .route-goal:not(.is-reached) .route-card{background:#342119;border-style:dashed;border-color:#b1764a;box-shadow:none}
.route-tracking .route-goal:not(.is-reached) h4{color:#ffe4d0}
.route-tracking .route-goal:not(.is-reached) p{color:#ffc49e}
.route-demo{max-width:710px;margin:clamp(20px,4vw,38px) auto 0;padding:clamp(15px,2.5vw,23px);border-color:#986045}
.route-mantra{width:100%}
@media (max-width:700px){
 .route-grid{grid-template-columns:minmax(0,1fr);gap:14px}
 .route-board{top:8px;z-index:3;box-shadow:0 8px 18px #0f0908b8}
 .route-board svg{max-height:min(31vh,206px)}
}
@media (max-width:700px) and (max-height:530px){.route-board{position:relative;top:auto}}
@media (prefers-reduced-motion:no-preference){
 .imperio-motion .button:not(:disabled)::after{animation:button-shine 2.8s ease-in-out infinite}
 .edge-loop::after{animation:edge-orbit 3.4s linear infinite}
 .route-goal.is-current .route-card{animation:goal-light .57s ease-out both}
}
@media (prefers-reduced-motion:reduce){.route-drawn{stroke-dashoffset:0!important}}
@keyframes button-shine{0%{background-position:100% 0}42%,100%{background-position:0% 0}}
@keyframes edge-orbit{to{--edge-angle:360deg}}
@keyframes goal-light{from{box-shadow:0 0 0 #ff743900}to{box-shadow:0 9px 30px #ff743983}}

/* Leave the map and the inactive goal visible; reveal each step as the line reaches it. */
@media (prefers-reduced-motion:no-preference){
 .route-tracking .route-stage:not(.route-goal).is-reached .route-card{
  transition:opacity .38s ease,transform .42s cubic-bezier(.2,.72,.25,1),border-color .25s ease,box-shadow .25s ease
 }
 .route-tracking .route-stage:not(.route-goal):not(.is-reached) .route-card{
  opacity:0;transform:translateY(12px);pointer-events:none
 }
}
