:root {
  --ink: #060c18;
  --night: #0a1426;
  --navy: #12284b;
  --red: #e21f26;
  --red-lit: #ff4a4f;
  --green: #19993c;
  --green-lit: #3ee07a;
  --paper: #f1efe9;
  --text: #e9edf4;
  --muted: #9aa8bf;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: Archivo, "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-anchor: none; overflow-x: clip; background: var(--ink); }
body { margin: 0; overflow-x: clip; color: var(--text); background: var(--ink); font-family: var(--display); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.kicker { display: flex; align-items: center; gap: 10px; color: var(--green-lit); }
.kicker::before { content: ""; width: 34px; height: 12px; background: linear-gradient(90deg, var(--red) 50%, var(--green-lit) 50%); clip-path: polygon(0 0, 24% 0, 50% 50%, 24% 100%, 0 100%, 26% 50%, 50% 0, 74% 0, 100% 50%, 74% 100%, 50% 100%, 76% 50%); }
h2 { font-size: clamp(3rem, 10vw, 8.5rem); font-weight: 900; font-style: italic; font-stretch: 112%; line-height: .9; letter-spacing: -.025em; text-transform: uppercase; }

.btn { display: inline-flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 30px; font-weight: 800; font-stretch: 110%; text-decoration: none; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); transition: gap .25s, background .25s; }
.btn b { font-size: 1.3em; }
.btn:hover { gap: 22px; }
.btn-go { color: var(--ink); background: var(--green-lit); }
.btn-go:hover { background: #fff; }
:focus-visible { outline: 3px solid var(--green-lit); outline-offset: 3px; }

/* Barra */
.bar { position: fixed; z-index: 50; inset: 12px 16px auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; padding: 6px 8px; background: rgba(6, 12, 24, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; }
.bar-logo { padding: 6px 12px; background: #fff; border-radius: 7px; }
.bar-logo img { width: auto; height: 34px; }
.bar-links { display: flex; gap: 26px; font-size: .86rem; font-weight: 600; }
.bar-links a { text-decoration: none; }
.bar-links a:hover { color: var(--green-lit); }
.bar-links span { font-family: var(--mono); font-size: .66rem; color: var(--muted); }
.bar-cta { display: flex; gap: 6px; }
.bar-cta a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 7px; font-size: .86rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.bar-call { border: 1px solid rgba(255, 255, 255, .28); }
.bar-wa { color: var(--ink); background: var(--green-lit); }

/* Portada */
.hero-stage { position: relative; display: flex; flex-direction: column; min-height: 100svh; padding: 92px 24px 26px; overflow: clip; background: radial-gradient(70% 58% at 50% 62%, #173159 0, var(--night) 55%, var(--ink) 100%); }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(34% 40% at 16% 74%, rgba(226, 31, 38, .32), transparent 70%), radial-gradient(34% 40% at 86% 66%, rgba(25, 153, 60, .3), transparent 70%); }
.hero-tag { position: relative; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.seal { padding-left: 12px; text-align: left; color: var(--text); border-left: 2px solid var(--red); }
.word { position: relative; z-index: 2; margin-top: 18px; font-size: 10.7vw; font-weight: 900; font-style: italic; font-stretch: 125%; line-height: .86; letter-spacing: -.035em; text-align: center; white-space: nowrap; color: #fff; }
.word-line { display: inline-flex; }
.word i { display: inline-block; font-style: inherit; }
.word-line:last-child { color: var(--green-lit); }
.film { position: absolute; z-index: 1; left: 50%; bottom: 0; width: max(100vw, 1000px); margin-left: calc(max(100vw, 1000px) / -2); aspect-ratio: 16 / 9; -webkit-mask-image: radial-gradient(62% 72% at 50% 56%, #000 58%, transparent 100%); mask-image: radial-gradient(62% 72% at 50% 56%, #000 58%, transparent 100%); }
.film img, .film canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-stage::after { content: ""; position: absolute; z-index: 2; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(6, 12, 24, .92) 62%); pointer-events: none; }
.hero-copy { position: relative; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: auto; }
.hero-copy h1 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); font-weight: 900; font-style: italic; font-stretch: 112%; line-height: 1; text-transform: uppercase; }
.hero-copy p { max-width: 42ch; margin-top: 8px; color: var(--muted); }
.hero-actions { margin-right: 124px; }

/* Manifiesto */
.manifest-stage { position: relative; display: grid; place-items: center; min-height: 100svh; padding: 110px 24px; overflow: clip; background: var(--ink); }
.manifest-copy { position: relative; z-index: 2; width: min(1120px, 100%); }
.manifest-text { margin-top: 26px; font-size: clamp(1.9rem, 4.7vw, 4.2rem); font-weight: 800; font-stretch: 105%; line-height: 1.08; letter-spacing: -.015em; }
.manifest-text em { font-style: italic; color: var(--green-lit); }
.chev { position: absolute; top: -10%; bottom: -10%; width: 58vw; opacity: .9; clip-path: polygon(0 0, 46% 0, 100% 50%, 46% 100%, 0 100%, 54% 50%); }
.chev-a { background: var(--red); }
.chev-b { background: var(--green); }

/* Cinta */
.ticker { overflow: hidden; padding: 16px 0; color: var(--ink); background: var(--green-lit); transform: rotate(-1.2deg) scale(1.02); }
.ticker-track { display: flex; gap: 46px; width: max-content; font-size: .84rem; }
.ticker-track span { display: flex; align-items: center; gap: 46px; white-space: nowrap; }
.ticker-track span::after { content: "›››"; color: var(--red); }

/* Licencias */
.licences { padding: clamp(80px, 12vw, 150px) 24px; background: linear-gradient(var(--ink), var(--night)); }
.section-head, .licence-grid, .service-list { width: min(1180px, 100%); margin-inline: auto; }
.section-head h2 { margin-top: 18px; }
.licence-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 22px; margin-top: 54px; perspective: 1400px; }
.licence { position: relative; display: flex; flex-direction: column; padding: 26px; overflow: hidden; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .13); background: linear-gradient(150deg, #16294a, #0b1527 62%); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; }
.licence::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--red) 0 34%, #fff 34% 38%, var(--green-lit) 38%); }
.licence-top { display: flex; justify-content: space-between; color: var(--muted); }
.licence-letter { position: absolute; top: 18px; right: 8px; font-size: 21rem; font-weight: 900; font-style: italic; font-stretch: 125%; line-height: .9; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .13); pointer-events: none; }
.licence h3 { position: relative; margin-top: 70px; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; font-style: italic; font-stretch: 112%; line-height: 1; text-transform: uppercase; }
.licence-stats { position: relative; display: flex; gap: 44px; margin-top: 22px; }
.licence-stats div { display: flex; flex-direction: column-reverse; }
.licence-stats dd { font-size: clamp(4rem, 8vw, 6.4rem); font-weight: 900; font-style: italic; font-stretch: 118%; line-height: .9; color: var(--green-lit); }
.licence-stats dt { margin-top: 6px; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mesh { position: relative; margin: 28px 0; }
.mesh li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: .95rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mesh li::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(var(--h) / 15 * 100%); background: var(--red-lit); transform-origin: left; }
.mesh b { font-family: var(--mono); font-weight: 500; font-size: .85rem; }
.licence .btn { align-self: flex-start; margin-top: auto; }

/* Ruta */
.route-stage { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px 44px; align-items: center; min-height: 100svh; padding: 100px 24px 40px; overflow: clip; color: var(--ink); background: var(--paper); }
.route-head { grid-column: 1 / -1; }
.route .kicker { color: var(--green); }
.route .kicker::before { background: linear-gradient(90deg, var(--red) 50%, var(--green) 50%); }
.route-head h2 { margin-top: 12px; font-size: clamp(2.3rem, 6.4vw, 5.6rem); color: var(--navy); }
.route-map { width: 100%; height: auto; max-height: 56svh; }
.route-map path { fill: none; stroke-linecap: round; }
.route-base { stroke: #d8d4c9; stroke-width: 26; }
.route-line { stroke: var(--navy); stroke-width: 26; stroke-dasharray: 1; stroke-dashoffset: 0; }
.route-stops circle { fill: #fff; stroke: var(--red); stroke-width: 5; }
.route-dot { fill: var(--green); stroke: #fff; stroke-width: 5; display: none; }
.route-steps > li + li { margin-top: 26px; }
.route-steps > li > .mono { color: var(--green); }
.route-steps h3 { margin: 6px 0 10px; font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 900; font-style: italic; font-stretch: 112%; line-height: 1; text-transform: uppercase; color: var(--navy); }
.route-steps ul li { position: relative; padding: 3px 0 3px 20px; }
.route-steps ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 10px; background: var(--red); clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* Servicios */
.services { padding: clamp(80px, 12vw, 150px) 24px; background: var(--ink); }
.service-list { margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, .16); }
.service-list li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 30px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.service-list > li > span { font-size: .9rem; color: var(--red-lit); }
.service-list h3 { font-size: clamp(1.8rem, 5vw, 3.8rem); font-weight: 900; font-style: italic; font-stretch: 112%; line-height: 1; text-transform: uppercase; }
.service-list p { max-width: 62ch; margin-top: 10px; color: var(--muted); }
.service-list .pending { display: inline-block; padding: 4px 10px; border: 1px dashed var(--muted); border-radius: 4px; }

/* Cierre */
.close { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 44px; align-items: center; padding: clamp(80px, 12vw, 140px) 24px; color: var(--ink); background: var(--green-lit); }
.close-photo { padding: 10px; background: #fff; transform: rotate(-2.5deg); box-shadow: 0 30px 60px rgba(6, 12, 24, .34); }
.close .kicker { color: var(--ink); }
.close .kicker::before { background: var(--ink); }
.close h2 { margin-top: 16px; font-size: clamp(2.4rem, 4.5vw, 4.6rem); }
.close-phone { display: block; margin: 22px 0; font-size: clamp(2.4rem, 5.2vw, 4.8rem); font-weight: 900; font-style: italic; font-stretch: 112%; line-height: 1; text-decoration: none; white-space: nowrap; }
.close .btn-go { color: var(--green-lit); background: var(--ink); }
.close .btn-go:hover { color: var(--ink); background: #fff; }

/* Pie */
.foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; padding: 48px 24px 28px; background: var(--ink); }
.foot h3 { margin-bottom: 8px; font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--green-lit); }
.foot p { color: var(--muted); }
.foot .todo { padding: 14px; border: 1px dashed var(--muted); border-radius: 8px; }
.foot small { grid-column: 1 / -1; color: var(--muted); }

/* Medidor */
.gauge { display: none; }

/* Movimiento: solo con JavaScript y sin preferencia de movimiento reducido */
.js .gauge { position: fixed; z-index: 40; right: 20px; bottom: 18px; display: grid; justify-items: center; width: 104px; padding: 8px 8px 7px; background: rgba(6, 12, 24, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; color: #fff; }
.gauge svg { width: 100%; }
.gauge path { fill: none; stroke-width: 8; stroke-linecap: round; }
.gauge-base { stroke: rgba(255, 255, 255, .16); }
.gauge-fill { stroke: var(--green-lit); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--page, 0)); }
.gauge b { margin-top: -22px; font-size: 1.05rem; letter-spacing: .04em; }
.gauge span { font-size: .52rem; color: var(--muted); }

.js .hero { height: 240vh; }
.js .hero-stage { position: sticky; top: 0; height: 100svh; }
.js .word i { transform: translateY(calc(var(--p, 0) * var(--d) * 1.25vh)) rotate(calc(var(--p, 0) * var(--r) * 2)); }
.js .hero-tag, .js .hero-copy { opacity: calc(1 - var(--p, 0) * 2.6); }

.js .manifest { height: 260vh; }
.js .manifest-stage { position: sticky; top: 0; height: 100svh; }
.js .chev-a { left: 0; transform: translateX(calc(115vw - var(--p, 0) * 290vw)); }
.js .chev-b { left: 0; transform: translateX(calc(150vw - var(--p, 0) * 300vw)); }
.js .manifest-text .w { opacity: clamp(.13, calc((var(--p, 0) * 1.5 - .16) * var(--n) - var(--i)), 1); }

.js .ticker-track { animation: run 34s linear infinite; }
@keyframes run { to { transform: translateX(-50%); } }

.js [data-reveal] { opacity: 0; translate: 0 46px; transition: opacity .7s, translate .7s cubic-bezier(.16, .84, .3, 1); }
.js [data-reveal].in { opacity: 1; translate: 0 0; }
.js .mesh li::after { transform: scaleX(0); transition: transform 1.1s .2s cubic-bezier(.16, .84, .3, 1); }
.js .in .mesh li::after { transform: scaleX(1); }

.js .route { height: 380vh; }
.js .route-stage { position: sticky; top: 0; height: 100svh; }
.js .route-line { stroke-dashoffset: calc(1 - var(--p, 0)); }
.js .route-dot { display: block; }
.js .route-steps { position: relative; align-self: center; min-height: 300px; }
.js .route-steps > li { position: absolute; inset: 0 0 auto; margin: 0; opacity: 0; translate: 0 24px; transition: opacity .35s, translate .35s; }
.js .route-steps > li.is-on { opacity: 1; translate: 0 0; }

@media (max-width: 1040px) {
  .bar-links { display: none; }
}
@media (max-width: 760px) {
  .bar { inset: 8px 8px auto; }
  .bar-logo { padding: 4px 8px; }
  .bar-logo img { height: 28px; }
  .bar-cta a { padding: 0 12px; font-size: .8rem; }
  .bar-call span { display: none; }
  .hero-stage { padding: 84px 16px 18px; }
  .film { top: 52svh; bottom: auto; width: 100vw; margin-left: -50vw; aspect-ratio: 9 / 16; transform: translateY(-48.5%); -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 84%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 84%, transparent); }
  .word { margin-top: 14px; font-size: 20.5vw; line-height: .88; }
  .word-line { display: flex; justify-content: center; }
  .hero-tag { font-size: .58rem; }
  .hero-actions { margin-right: 0; }
  h2 { font-size: 10.6vw; }
  .route-head h2 { font-size: 9.6vw; }
  .close h2 { font-size: 9.2vw; }
  .close-phone { font-size: 10.6vw; }
  .service-list li { grid-template-columns: 26px 1fr; }
  .service-list h3 { font-size: 1.5rem; }
  .licence h3 { font-size: 1.75rem; }
  .route-steps h3 { font-size: 1.5rem; }
  .js .route-steps { align-self: stretch; }
  .hero-copy { display: block; }
  .hero-copy h1 { font-size: 1.9rem; }
  .hero-actions { margin-top: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .btn { min-height: 52px; padding: 0 22px; }
  .licence-letter { font-size: 15rem; }
  .licences, .services, .close, .foot, .manifest-stage { padding-inline: 16px; }
  .route-stage { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 84px 16px 20px; }
  .route-map { max-height: 30svh; }
  .route-steps ul li { padding-block: 1px; font-size: .92rem; }
  .gauge, .js .gauge { display: none; }
}
@media (hover: hover) and (min-width: 761px) {
  body::after { content: ""; position: fixed; z-index: 60; inset: 0; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chev { display: none; }
}
