:root {
  --tinta: #0F2233; --senal: #FF5A1F; --verde: #1B7A57;
  --niebla: #F2F4F6; --blanco: #FFFFFF; --piedra: #56636F; --linea: #DDE2E7;
  --texto: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--blanco); color: var(--tinta); font: 400 17px/1.5 var(--texto); -webkit-font-smoothing: antialiased; }
h1, h2, p, dl, dd { margin: 0; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--senal); outline-offset: 3px; }

.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.nav-in { display: flex; justify-content: space-between; align-items: center; max-width: 1120px; height: 56px; margin: 0 auto; padding: 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-size: 19px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; }
.nav-link { color: var(--tinta); font-size: 15px; text-decoration: none; }
.nav-link:hover { text-decoration: underline; }

.hero { padding: clamp(64px, 11vw, 128px) 24px clamp(48px, 7vw, 80px); text-align: center; }
h1 { font-size: clamp(46px, 9.4vw, 104px); font-weight: 600; line-height: 1.02; letter-spacing: -.04em; }
.lead { text-wrap: balance; max-width: 34em; margin: 28px auto 36px; color: var(--piedra); font-size: clamp(19px, 2.2vw, 23px); line-height: 1.4; letter-spacing: -.01em; }
.btn { display: inline-block; padding: 14px 28px; border-radius: 999px; background: var(--tinta); color: var(--blanco); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; transition: background .2s; }
.btn:hover { background: #1E3A52; }

.stage { padding: clamp(32px, 6vw, 72px) 16px clamp(56px, 8vw, 96px); background: var(--niebla); }
.panel { max-width: 1040px; margin: 0 auto; padding: clamp(24px, 4.5vw, 56px); border-radius: 28px; background: var(--blanco); box-shadow: 0 40px 80px -48px rgba(15, 34, 51, .35); }
.panel-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: clamp(40px, 7vw, 72px); }
.order { font-weight: 600; font-variant-numeric: tabular-nums; }
.place { color: var(--piedra); font-size: 15px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--niebla); }
.seg button { padding: 8px 18px; border: 0; border-radius: 999px; background: none; color: var(--piedra); font: 500 15px var(--texto); cursor: pointer; transition: background .25s, color .25s; }
.seg [aria-pressed="true"] { background: var(--tinta); color: var(--blanco); }

.panel h2 { font-size: clamp(36px, 6.4vw, 68px); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; }
.detail { margin-top: 12px; color: var(--piedra); font-size: clamp(18px, 2vw, 21px); }

.route { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(48px, 8vw, 80px) 0 clamp(40px, 6vw, 56px); padding-top: 22px; border-top: 2px solid var(--linea); color: var(--piedra); font-size: 14px; }
.route span:nth-of-type(2) { text-align: center; }
.route span:nth-of-type(3) { text-align: right; }
.route-fill { position: absolute; top: -2px; left: 0; width: 0; height: 2px; background: var(--tinta); transition: width 1.1s cubic-bezier(.65, 0, .35, 1); }
.route-dot { position: absolute; top: -9px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--senal); box-shadow: 0 0 0 5px var(--blanco); transition: left 1.1s cubic-bezier(.65, 0, .35, 1); }
[data-paso="1"] .route-fill { width: 50%; }
[data-paso="1"] .route-dot { left: calc(50% - 8px); }
[data-paso="2"] .route-fill { width: 100%; }
[data-paso="2"] .route-dot { left: calc(100% - 16px); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.facts dt { color: var(--piedra); font-size: 14px; }
.facts dd { margin-top: 4px; font-weight: 500; line-height: 1.35; }
.note { margin-top: 16px; color: var(--piedra); font-size: 14px; text-align: center; }

.dark { padding: clamp(96px, 15vw, 184px) 24px; background: var(--tinta); color: var(--blanco); text-align: center; }
.dark h2 { max-width: 15em; margin: 0 auto; font-size: clamp(36px, 6.4vw, 72px); font-weight: 600; line-height: 1.06; letter-spacing: -.035em; }
.dark p { text-wrap: balance; max-width: 32em; margin: 28px auto 0; color: #B9C4CE; font-size: clamp(18px, 2vw, 21px); }

.contact { padding: clamp(96px, 13vw, 160px) 24px; text-align: center; }
.contact h2 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; }
.contact p { margin: 16px 0 32px; color: var(--piedra); font-size: clamp(18px, 2vw, 21px); }

.footer { display: flex; justify-content: space-between; max-width: 1120px; margin: 0 auto; padding: 24px; border-top: 1px solid var(--linea); color: var(--piedra); font-size: 14px; }

@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; gap: 20px; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 8px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route-fill, .route-dot, .seg button, .btn { transition: none; }
}
