/* zbehoy.es — «noche, asfalto y semáforo» */
:root {
  --asphalt: #0B0F14;
  --asphalt-2: #121821;
  --asphalt-3: #1A222D;
  --line-dark: #273140;
  --paper: #F5F3EE;
  --card: #FFFFFF;
  --ink: #12161C;
  --ink-2: #3D4652;
  --mute: #6B7480;
  --line: #E4E0D8;
  --yellow: #FFC531;
  --yellow-ink: #3A2A00;
  --green: #21D07A;
  --amber: #FFB020;
  --red: #FF4D4D;
  --blue: #2F6BFF;
  --radius: 22px;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --sans: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--sans); }
img, svg { display: block; max-width: 100%; }
a { color: #1F57E0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: .005em; margin: 0 0 .6rem; }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.3rem); text-transform: uppercase; }
p { margin: 0 0 1rem; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--ink); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* Cabecera */
.top { background: var(--asphalt); border-bottom: 1px solid var(--line-dark); position: sticky; top: 0; z-index: 30; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 58px; }
.logo { display: flex; align-items: center; gap: .45rem; color: #fff; text-decoration: none; font: 800 1.55rem var(--display); letter-spacing: .02em; }
.logo { flex: none; }
.logo svg { width: 26px; height: 34px; flex: none; }
.logo b { color: var(--yellow); }
.nav { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: #C9D2DD; text-decoration: none; font-weight: 600; font-size: .9rem; padding: .45rem .7rem; border-radius: 999px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: #fff; background: var(--asphalt-3); }

/* Héroe nocturno con carretera */
.hero { position: relative; overflow: hidden; color: #E8EDF3; padding: 1.6rem 0 2.2rem;
  background: radial-gradient(900px 420px at 85% -10%, rgba(255,197,49,.16), transparent 60%), radial-gradient(700px 380px at 0% 100%, rgba(47,107,255,.18), transparent 60%), linear-gradient(180deg, #0B0F14 0%, #0E141C 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.hero .wrap { position: relative; }
.road { position: absolute; left: 50%; bottom: -10px; width: 760px; height: 300px; transform: translateX(-50%) perspective(420px) rotateX(62deg); transform-origin: bottom; background: linear-gradient(90deg, transparent 0, #141B24 14%, #18202B 50%, #141B24 86%, transparent 100%); opacity: .55; pointer-events: none; }
.road i { position: absolute; left: 50%; top: 0; bottom: 0; width: 10px; margin-left: -5px; background: repeating-linear-gradient(180deg, var(--yellow) 0 34px, transparent 34px 70px); animation: lane 1.1s linear infinite; opacity: .7; }
@keyframes lane { to { background-position: 0 70px; } }
.kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #FFE08A; background: rgba(255,197,49,.1); border: 1px solid rgba(255,197,49,.3); border-radius: 999px; padding: .3rem .8rem; margin: 0 0 .8rem; }
.kicker .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(2.5rem, 9vw, 4.6rem); text-transform: uppercase; color: #fff; margin-bottom: .5rem; }
.hl { color: var(--yellow); text-shadow: 0 0 28px rgba(255,197,49,.45); }
.sub { color: #B9C4D1; font-size: clamp(1rem, 2.6vw, 1.15rem); max-width: 46rem; margin-bottom: 1.2rem; }
.hero-city h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); }
.hero-slim { padding-bottom: 2.6rem; }
.crumbs { font-size: .82rem; color: #8B97A6; margin-bottom: .6rem; }
.crumbs a { color: #C9D2DD; }

/* La herramienta: salpicadero + semáforo */
.tool { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .tool { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: stretch; } }
.dash { background: linear-gradient(180deg, #161D27, #11171F); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 1.1rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.05); min-width: 0; }
.q { border: 0; margin: 0 0 1rem; padding: 0; min-width: 0; }
.q:last-child { margin-bottom: 0; }
.q-l { display: flex; align-items: center; gap: .55rem; font: 700 1.05rem var(--display); letter-spacing: .04em; text-transform: uppercase; color: #fff; margin-bottom: .55rem; padding: 0; }
.q-l em { font-style: normal; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--yellow); color: var(--yellow-ink); font-size: .95rem; }
.sel { position: relative; }
.sel::after { content: ""; position: absolute; right: 1rem; top: 50%; width: .6rem; height: .6rem; border-right: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sel select { width: 100%; appearance: none; -webkit-appearance: none; background: #0D1219; color: #fff; border: 1.5px solid #2E3A4A; border-radius: 14px; padding: .85rem 2.6rem .85rem 1rem; font: 600 1.05rem var(--sans); cursor: pointer; }
.sel select:focus { border-color: var(--yellow); outline: none; }
.sel select option { color: #12161C; }
.stks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .45rem; }
.stk-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .55rem .2rem .45rem; border-radius: 14px; border: 1.5px solid #2E3A4A; background: #0D1219; cursor: pointer; transition: transform .15s, border-color .15s, background .15s; min-width: 0; }
.stk-opt input { position: absolute; opacity: 0; pointer-events: none; }
.stk-opt > span:last-child { font-size: .72rem; font-weight: 700; color: #B9C4D1; text-align: center; line-height: 1.15; }
.stk-opt:hover { transform: translateY(-2px); border-color: #45556A; }
.stk-opt:has(input:checked) { border-color: var(--yellow); background: #1B2330; box-shadow: 0 0 0 3px rgba(255,197,49,.18); transform: translateY(-2px); }
.stk-opt:has(input:checked) > span:last-child { color: #fff; }
.stk-opt:has(input:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 2px; }
.q-help { display: inline-block; margin-top: .55rem; color: #FFE08A; font-size: .84rem; font-weight: 600; }

/* Pegatinas DGT (dibujadas con CSS) */
.stk { position: relative; display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; font-family: var(--display); color: #fff; box-shadow: 0 6px 14px -6px rgba(0,0,0,.7), inset 0 0 0 3px rgba(255,255,255,.85); flex: none; }
.stk b { font-size: 1.45rem; font-weight: 800; line-height: 1; }
.stk-cero { background: radial-gradient(circle at 35% 30%, #4F86FF, #1340C9); }
.stk-cero b { font-size: 1.6rem; margin-top: -.25rem; }
.stk-cero i { position: absolute; bottom: 9px; font: 700 .42rem var(--sans); letter-spacing: .04em; text-transform: uppercase; font-style: normal; }
.stk-eco { background: linear-gradient(135deg, #1D5FE0 0 50%, #1FAE5B 50% 100%); }
.stk-eco b { font-size: 1.05rem; letter-spacing: .02em; }
.stk-c { background: radial-gradient(circle at 35% 30%, #3EDB86, #10954B); }
.stk-b { background: radial-gradient(circle at 35% 30%, #FFE16B, #EDB100); color: #3A2A00; }
.stk-sin { background: repeating-linear-gradient(45deg, #3A4554 0 6px, #2C3542 6px 12px); color: #9AA6B4; box-shadow: 0 6px 14px -6px rgba(0,0,0,.7), inset 0 0 0 3px #56657A; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; background: #0D1219; border: 1.5px solid #2E3A4A; border-radius: 14px; padding: .3rem; }
.seg label { position: relative; min-width: 0; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; text-align: center; min-height: 2.6rem; padding: .35rem .3rem; border-radius: 10px; font-size: .8rem; font-weight: 700; color: #B9C4D1; cursor: pointer; line-height: 1.2; transition: background .15s, color .15s; }
.seg input:checked + span { background: var(--yellow); color: var(--yellow-ink); }
.seg input:focus-visible + span { outline: 3px solid #fff; outline-offset: 1px; }

/* Escena: el coche llega a la ZBE y pasa, espera o se queda fuera */
.scene { grid-column: 1 / -1; position: relative; height: 118px; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #0F1722 0%, #17202C 58%, #0B0F14 58.5%); border: 1px solid #222C39; }
.sc-sky::before, .sc-sky::after { content: ""; position: absolute; top: 14px; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 40px 10px 0 rgba(255,255,255,.6), 120px -4px 0 rgba(255,255,255,.5), 210px 18px 0 rgba(255,255,255,.7), 300px 2px 0 rgba(255,255,255,.4), 380px 14px 0 rgba(255,255,255,.6); opacity: .7; }
.sc-sky::before { left: 18px; }
.sc-sky::after { left: 60%; top: 22px; }
.sc-road { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(180deg, #1C232D, #12171E); }
.sc-road::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #2C3644; }
.sc-road i { position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1px; background: repeating-linear-gradient(90deg, var(--yellow) 0 22px, transparent 22px 44px); opacity: .55; }
.light:not([data-v="idle"]) .sc-road i { animation: roadMove .6s linear infinite; }
.light[data-v="bad"] .sc-road i, .light[data-v="warn"] .sc-road i { animation-iteration-count: 4; }
@keyframes roadMove { to { background-position: -44px 0; } }
.sc-sign { position: absolute; left: auto; right: 4%; top: 8px; width: 58px; padding: 4px 3px 5px; background: #1F5BD6; border: 2px solid #fff; border-radius: 6px; text-align: center; color: #fff; box-shadow: 0 6px 14px -6px rgba(0,0,0,.8); }
.sc-sign::after { content: ""; position: absolute; left: 50%; top: 100%; width: 3px; height: 40px; margin-left: -1.5px; background: #8A97A8; }
.sc-sign span { display: block; font: 800 1.15rem/1 var(--display); letter-spacing: .04em; }
.sc-sign small { display: block; font-size: .38rem; line-height: 1.1; text-transform: uppercase; font-weight: 700; margin-top: 2px; }
.sc-gate { position: absolute; left: 58%; bottom: 30%; width: 6px; height: 40px; }
.sc-post { position: absolute; left: 0; bottom: 0; width: 8px; height: 30px; border-radius: 3px; background: #DDE3EA; box-shadow: inset -2px 0 0 #9AA6B4; }
.sc-arm { position: absolute; left: 4px; bottom: 24px; width: min(70px, 16vw); height: 7px; border-radius: 4px; transform-origin: 0 50%; transform: rotate(-78deg); background: repeating-linear-gradient(90deg, #FF4D4D 0 12px, #fff 12px 24px); transition: transform .5s cubic-bezier(.3,1.4,.5,1) .55s; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.light[data-v="bad"] .sc-arm { transform: rotate(0deg); }
.light[data-v="warn"] .sc-arm { transform: rotate(-38deg); }
.car { position: absolute; bottom: 8px; left: 4%; width: 112px; transition: none; }
.car-svg { width: 100%; height: auto; filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); }
.car-body { fill: #C9D2DD; }
.car-stk { fill: #3A4554; stroke: #fff; stroke-width: 1.2; }
.light[data-e="cero"] .car-stk { fill: #2F6BFF; }
.light[data-e="eco"] .car-stk { fill: #1FAE5B; }
.light[data-e="c"] .car-stk { fill: #21D07A; }
.light[data-e="b"] .car-stk { fill: #FFC531; }
.light[data-v="idle"] .car { animation: idle 1.4s ease-in-out infinite; }
@keyframes idle { 50% { transform: translateY(-1px); } }
.light.go[data-v="ok"] .car { animation: pass 5.5s cubic-bezier(.45,0,.55,1) infinite; }
.light.go[data-v="warn"] .car { animation: toGate 1.4s cubic-bezier(.2,.7,.3,1) forwards, hazard .8s steps(2) 1.4s infinite; }
.light.go[data-v="bad"] .car { animation: toGate 1.4s cubic-bezier(.2,.7,.3,1) forwards, brake .35s 1.35s 2; }
.light.go[data-v="ok"] .wheel, .light.go[data-v="warn"] .wheel, .light.go[data-v="bad"] .wheel { transform-box: fill-box; transform-origin: center; }
@keyframes pass { 0% { left: 4%; } 45% { left: 108%; } 46% { left: -40%; } 72%, 100% { left: 4%; } }
@media (max-width: 600px) { .car { width: 92px; } .scene { height: 104px; } @keyframes toGate { from { left: 4%; } to { left: calc(58% - 98px); } } }
@media (prefers-reduced-motion: reduce) {
  .light.go[data-v] .car { animation: none !important; }
  .light[data-v="ok"] .car { left: 70%; }
  .light[data-v="warn"] .car, .light[data-v="bad"] .car { left: calc(58% - 118px); }
  .sc-road i { animation: none !important; }
}
@keyframes toGate { from { left: 4%; } to { left: calc(58% - 118px); } }
@keyframes brake { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(2.5deg) translateX(3px); } }
@keyframes hazard { 50% { filter: drop-shadow(0 0 10px rgba(255,176,32,.9)); } }
.light.go[data-v="ok"] .car .car-head, .light.go[data-v="warn"] .car .car-head { filter: drop-shadow(0 0 6px #FFE7A3); }
.light.go[data-v="bad"] .car .car-tail { filter: drop-shadow(0 0 8px #FF4D4D); }
.light[data-v="bad"] .scene::after { content: "✕"; position: absolute; left: calc(58% + 18px); bottom: 62%; font: 800 1.6rem/1 var(--display); color: var(--red); text-shadow: 0 0 12px rgba(255,77,77,.8); opacity: 0; animation: appear .3s 1.2s forwards; }
@keyframes appear { to { opacity: 1; } }

/* Semáforo */
.light { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; align-items: center; background: linear-gradient(180deg, #161D27, #0F141B); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 1.1rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); min-width: 0; scroll-margin-top: 80px; transition: border-color .3s, box-shadow .3s; }
.tl { position: relative; display: grid; gap: .55rem; padding: .7rem .6rem; background: linear-gradient(180deg, #232C38, #151B23); border: 2px solid #313C4B; border-radius: 26px; box-shadow: inset 0 2px 0 rgba(255,255,255,.06), 0 12px 24px -10px rgba(0,0,0,.8); }
.tl::after { content: ""; position: absolute; left: 50%; bottom: -26px; width: 10px; height: 24px; margin-left: -5px; background: linear-gradient(90deg, #1A212B, #2A3442, #1A212B); border-radius: 0 0 4px 4px; }
.tl i { display: block; width: 52px; height: 52px; border-radius: 50%; background: #1B222C; box-shadow: inset 0 4px 10px rgba(0,0,0,.7); transition: background .35s, box-shadow .35s; position: relative; }
.tl i::before { content: ""; position: absolute; top: -6px; left: 4px; right: 4px; height: 14px; border-radius: 50% 50% 0 0; background: #11161D; box-shadow: 0 2px 2px rgba(0,0,0,.4); }
.light[data-v="bad"] .l-red { background: radial-gradient(circle at 40% 35%, #FFB3B3, var(--red) 45%, #B11F1F); box-shadow: 0 0 22px 6px rgba(255,77,77,.55), 0 0 60px 10px rgba(255,77,77,.25); }
.light[data-v="warn"] .l-amb { background: radial-gradient(circle at 40% 35%, #FFE3A3, var(--amber) 45%, #B87300); box-shadow: 0 0 22px 6px rgba(255,176,32,.55), 0 0 60px 10px rgba(255,176,32,.25); }
.light[data-v="ok"] .l-grn { background: radial-gradient(circle at 40% 35%, #B8FFD8, var(--green) 45%, #0E8A4D); box-shadow: 0 0 22px 6px rgba(33,208,122,.55), 0 0 60px 10px rgba(33,208,122,.25); }
.light[data-v="idle"] .l-amb { animation: idleBlink 1.6s ease-in-out infinite; }
@keyframes idleBlink { 50% { background: #5A4210; box-shadow: 0 0 14px 2px rgba(255,176,32,.25); } }
.light[data-v="ok"] { border-color: rgba(33,208,122,.5); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(33,208,122,.25); }
.light[data-v="warn"] { border-color: rgba(255,176,32,.55); }
.light[data-v="bad"] { border-color: rgba(255,77,77,.55); }
.verdict { min-width: 0; }
.v-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8B97A6; margin: 0 0 .2rem; }
.v-title { font-size: clamp(1.9rem, 6vw, 2.6rem); text-transform: uppercase; color: #fff; margin: 0 0 .4rem; }
.light[data-v="ok"] .v-title { color: var(--green); }
.light[data-v="warn"] .v-title { color: var(--amber); }
.light[data-v="bad"] .v-title { color: var(--red); }
.v-text { color: #C9D2DD; font-size: .95rem; margin-bottom: .7rem; }
.v-now { display: inline-flex; align-items: center; gap: .45rem; font-size: .84rem; font-weight: 700; padding: .35rem .7rem; border-radius: 999px; margin-bottom: .7rem; background: rgba(255,255,255,.06); color: #E8EDF3; }
.v-now::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.v-now.on { color: #FF8A8A; background: rgba(255,77,77,.12); }
.v-now.off { color: #7DF0B5; background: rgba(33,208,122,.12); }
.v-chips { list-style: none; margin: 0 0 .7rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.v-chips li { font-size: .78rem; color: #C9D2DD; background: #0D1219; border: 1px solid #2E3A4A; border-radius: 10px; padding: .3rem .55rem; }
.v-chips b { color: #fff; }
.v-link { display: inline-block; color: var(--yellow); font-weight: 700; text-decoration: none; }
.v-link:hover { text-decoration: underline; }
.light.pop .tl { animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { 40% { transform: scale(1.06); } }
.nojs { color: #FFE08A; }
.disclaimer { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0 0; padding: .75rem .9rem; border-radius: 14px; background: linear-gradient(rgba(255,197,49,.08), rgba(255,197,49,.08)), #10151C; border: 1px dashed rgba(255,197,49,.4); position: relative; color: #E8D9A8; font-size: .85rem; line-height: 1.5; }
.disclaimer svg { width: 20px; height: 20px; flex: none; color: var(--yellow); margin-top: .1rem; }
.disclaimer strong { color: #fff; }
.disclaimer a { color: var(--yellow); }

/* Calculadora de etiqueta */
.tool-etq { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .tool-etq { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.fuel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.fuel label { position: relative; min-width: 0; }
.fuel input { position: absolute; opacity: 0; }
.fuel span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; text-align: center; min-height: 4.3rem; padding: .45rem .3rem; border-radius: 14px; border: 1.5px solid #2E3A4A; background: #0D1219; color: #B9C4D1; font-size: .78rem; font-weight: 700; line-height: 1.15; cursor: pointer; transition: border-color .15s, background .15s; }
.fuel span i { font-style: normal; font-size: 1.3rem; }
.fuel input:checked + span { border-color: var(--yellow); background: #1B2330; color: #fff; box-shadow: 0 0 0 3px rgba(255,197,49,.18); }
.fuel input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.yr { display: grid; grid-template-columns: minmax(0, 1fr) 6rem; gap: .7rem; align-items: center; }
.yr input[type=number] { width: 100%; background: #0D1219; color: #fff; border: 1.5px solid #2E3A4A; border-radius: 12px; padding: .65rem .7rem; font: 700 1.2rem var(--display); text-align: center; }
.yr input[type=range] { width: 100%; accent-color: var(--yellow); }
.chk { display: flex; align-items: center; gap: .55rem; color: #C9D2DD; font-size: .9rem; font-weight: 600; margin-top: .7rem; cursor: pointer; }
.chk input { width: 1.15rem; height: 1.15rem; accent-color: var(--yellow); }
.etq-out { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; align-items: center; background: linear-gradient(180deg, #161D27, #0F141B); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 1.2rem; min-width: 0; }
.etq-big .stk { width: 112px; height: 112px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.9), inset 0 0 0 6px rgba(255,255,255,.9); animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
.etq-big .stk b { font-size: 3.2rem; }
.etq-big .stk-eco b { font-size: 2.3rem; }
.etq-big .stk-cero i { font-size: .85rem; bottom: 20px; }
.etq-big .stk-sin { box-shadow: 0 18px 40px -16px rgba(0,0,0,.9), inset 0 0 0 6px #56657A; }
.btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--yellow); color: var(--yellow-ink); font: 800 1.05rem var(--display); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; padding: .75rem 1.2rem; border-radius: 12px; box-shadow: 0 10px 24px -12px rgba(255,197,49,.9); transition: transform .15s; }
.btn:hover { transform: translateY(-2px); color: var(--yellow-ink); }
.btn-ghost { background: transparent; color: var(--yellow); border: 1.5px solid rgba(255,197,49,.5); box-shadow: none; font-size: .95rem; }
.btn-ghost:hover { color: #fff; border-color: var(--yellow); }
.etq-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.etq-out .v-text { color: #C9D2DD; }

/* Multas: cifras grandes */
.fines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; max-width: 640px; }
.fine { background: #161D27; border: 1px solid var(--line-dark); border-radius: 18px; padding: .9rem; text-align: center; }
.fine b { display: block; font: 800 clamp(2rem, 8vw, 3rem) var(--display); color: var(--red); line-height: 1; }
.fine span { font-size: .8rem; color: #B9C4D1; font-weight: 600; }
.fine-ok b { color: var(--amber); }
.fine-pts b { color: var(--green); }

/* Mapa en vivo */
.mp-wrap { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); background: radial-gradient(600px 300px at 80% 0%, rgba(47,107,255,.14), transparent 60%), var(--asphalt); color: #D7DEE7; border-radius: 28px; padding: 1.4rem; overflow: hidden; }
@media (min-width: 900px) { .mp-wrap { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; padding: 2rem; } }
@media (max-width: 600px) { .mp-wrap { padding: 1.1rem .8rem; border-radius: 22px; } .mp-box { margin: 0 -.3rem; } }
.mp-side h2 { color: #fff; }
.mp-side .lead { color: #B9C4D1; }
.hl-dark { color: var(--yellow); }
.kicker-dark { margin-bottom: .7rem; }
.stks-light .stk-opt { background: #121821; }
.mp-sum { margin: 1rem 0 .6rem; font-size: .95rem; color: #C9D2DD; min-height: 1.5em; }
.mp-sum b { color: #fff; }
.mp-sum .ok { color: var(--green); font-weight: 800; }
.mp-sum .warn { color: var(--amber); font-weight: 800; }
.mp-sum .bad { color: var(--red); font-weight: 800; }
.mp-leg { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .8rem; color: #9AA6B4; }
.mp-leg li { display: flex; align-items: center; gap: .35rem; }
.mp-leg li::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: #56657A; }
.mp-leg .ok::before { background: var(--green); box-shadow: 0 0 8px var(--green); }
.mp-leg .warn::before { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.mp-leg .bad::before { background: var(--red); box-shadow: 0 0 8px var(--red); }
.mp-box { min-width: 0; }
.mapa { width: 100%; height: auto; overflow: visible; }
.mp-land { fill: url(#land); stroke: #3A4758; stroke-width: 1.5; stroke-linejoin: round; }
.mp-can-box { fill: none; stroke: #2B3542; stroke-dasharray: 4 4; }
.mp-soon circle { fill: #3A4554; stroke: #56657A; stroke-width: 1.5; }
.mp-dot { cursor: pointer; }
.mp-dot text { font: 800 17px var(--sans); fill: #E8EDF3; paint-order: stroke; stroke: #0B0F14; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.mp-dot .mp-c { fill: #8A97A8; stroke: #0B0F14; stroke-width: 2; transition: fill .3s; }
.mp-dot .mp-halo { fill: transparent; transform-box: fill-box; transform-origin: center; }
.mp-dot.ok .mp-c { fill: var(--green); }
.mp-dot.warn .mp-c { fill: var(--amber); }
.mp-dot.bad .mp-c { fill: var(--red); }
.mp-dot.ok .mp-halo { fill: rgba(33,208,122,.28); }
.mp-dot.warn .mp-halo { fill: rgba(255,176,32,.3); }
.mp-dot.bad .mp-halo { fill: rgba(255,77,77,.3); }
.lit .mp-dot .mp-halo { animation: ping 1.6s ease-out var(--d, 0ms) 2; }
.lit .mp-dot .mp-c { animation: dotIn .5s cubic-bezier(.3,1.6,.5,1) var(--d, 0ms) both; transform-box: fill-box; transform-origin: center; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
@keyframes dotIn { from { transform: scale(.2); } to { transform: scale(1); } }
.mp-dot:hover .mp-c, .mp-dot:focus .mp-c { stroke: #fff; }
.mp-dot:hover text { fill: var(--yellow); }
@media (prefers-reduced-motion: reduce) { .lit .mp-dot .mp-halo, .lit .mp-dot .mp-c { animation: none; } }

/* Bloques de contenido */
.block { padding: 2.4rem 0 .6rem; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.block-head a { font-weight: 700; }
.lead { color: var(--ink-2); font-size: 1.05rem; }
.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .7rem; margin-top: 1rem; }
.city { display: grid; gap: .35rem; padding: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); box-shadow: 0 10px 24px -20px rgba(18,22,28,.5); transition: transform .15s, box-shadow .15s, border-color .15s; min-width: 0; }
a.city:hover { transform: translateY(-3px); border-color: #CFC8BA; box-shadow: 0 18px 30px -20px rgba(18,22,28,.6); }
.city-n { font: 800 1.35rem var(--display); text-transform: uppercase; line-height: 1.05; }
.city-c { font-size: .8rem; color: var(--mute); }
.city.soon { background: transparent; border-style: dashed; color: var(--mute); box-shadow: none; }
.estado { display: inline-flex; align-items: center; gap: .4rem; width: fit-content; font-size: .74rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: .22rem .6rem; border-radius: 999px; }
.estado i { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.estado.bad { background: #FFE5E5; color: #C21F1F; }
.estado.warn { background: #FFF1D6; color: #9A5B00; }
.estado.ok { background: #DDF8EA; color: #0C7A44; }
.estado.soon { background: #ECE8E0; color: var(--mute); }
.hero .estado.bad { background: rgba(255,77,77,.16); color: #FF9A9A; }
.story-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.3rem; align-items: start; background: var(--asphalt); color: #D7DEE7; border-radius: 26px; padding: 1.5rem; position: relative; overflow: hidden; }
.story-in::after { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,197,49,.18), transparent 70%); }
.story-in h2 { color: #fff; }
.story-in strong { color: var(--yellow); }
.story-badge { width: 70px; height: 90px; background: var(--asphalt-3); border-radius: 18px; display: grid; place-items: center; }
.story-badge svg { width: 38px; height: 54px; }
.story-by { font-weight: 700; color: #fff; margin: 0; }
.etq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; margin: 1rem 0; }
.etq { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: .9rem; }
.etq p { margin: 0; font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
.etq strong { font-family: var(--display); font-size: 1.15rem; text-transform: uppercase; }
.etq-cta { margin-top: 1rem; }

/* Ficha de ciudad */
.matrix { display: grid; gap: .35rem; margin: 1rem 0 .4rem; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: .6rem; overflow-x: auto; }
.mx-row { display: grid; grid-template-columns: minmax(7.5rem, 1.1fr) repeat(3, minmax(6.5rem, 1fr)); gap: .35rem; align-items: center; }
.mx-head span { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); padding: .2rem .3rem; }
.mx-etq { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .9rem; }
.mx-etq .stk { width: 34px; height: 34px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.mx-etq .stk b { font-size: 1rem; }
.mx-etq .stk-eco b { font-size: .72rem; }
.mx-etq .stk-cero i { display: none; }
.mx-etq .stk-cero b { margin: 0; }
.mx-v { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 700; padding: .45rem .55rem; border-radius: 10px; cursor: help; line-height: 1.2; }
.mx-v i { width: .7rem; height: .7rem; border-radius: 50%; background: currentColor; flex: none; box-shadow: 0 0 8px currentColor; }
.mx-v.ok { background: #DDF8EA; color: #0C7A44; }
.mx-v.warn { background: #FFF1D6; color: #9A5B00; }
.mx-v.bad { background: #FFE5E5; color: #C21F1F; }
.note { font-size: .85rem; color: var(--mute); }
.facts { display: grid; gap: 0; margin: 1rem 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-weight: 800; font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); }
.facts dd { margin: 0; }
.pend { display: inline-block; font-size: .78rem; font-weight: 800; color: #9A5B00; background: #FFF1D6; border: 1px dashed #E5A73A; padding: .12rem .5rem; border-radius: 8px; }
.pend-hint { color: var(--mute); font-size: .86rem; }
.verif { background: #FFF8E2; border: 1px dashed #E5A73A; border-radius: 16px; padding: .9rem 1rem; margin: 1rem 0; font-size: .92rem; }
.verif strong { font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; color: #9A5B00; }
.verif ul { margin: .4rem 0 .5rem; padding-left: 1.2rem; }
.verif p { margin: 0; color: var(--mute); font-size: .85rem; }
.mora { background: #FFF8E2; border-left: 4px solid var(--yellow); padding: .7rem .9rem; border-radius: 0 12px 12px 0; }
.ex { padding-left: 1.2rem; }
.ex li { margin-bottom: .35rem; }
.rev { margin-top: 1.6rem; padding: .9rem 1rem; border-radius: 14px; background: #ECE8E0; font-size: .88rem; color: var(--ink-2); }
.steps { padding-left: 1.3rem; }
.steps li { margin-bottom: .7rem; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.tbl { width: 100%; border-collapse: collapse; min-width: 640px; }
.tbl th { text-align: left; font: 800 .9rem var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--mute); padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.tbl td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl td a { font: 800 1.2rem var(--display); text-transform: uppercase; color: var(--ink); text-decoration: none; }
.tbl td a:hover { color: #1F57E0; }
.tbl td small { display: block; color: var(--mute); font-size: .78rem; }
.tbl tr.soon td { color: var(--mute); font-size: .88rem; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: var(--asphalt); color: #fff; border-radius: 20px; padding: 1.2rem 1.4rem; margin: 2rem 0; }
.cta strong { display: block; font: 800 1.4rem var(--display); text-transform: uppercase; }
.cta span { color: #B9C4D1; font-size: .92rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: .5rem; }
.faq summary { cursor: pointer; padding: .9rem 1rem; font-weight: 700; list-style: none; position: relative; padding-right: 2.6rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font: 800 1.4rem var(--display); color: #C29100; }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 1rem 1rem; margin: 0; color: var(--ink-2); }
.ad-slot { min-height: 110px; display: grid; place-items: center; margin: 1.6rem 0; border: 1.5px dashed #CFC8BA; border-radius: 14px; color: #A49C8E; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.legal { padding-bottom: 3rem; }
.legal h1 { font-size: clamp(2.2rem, 7vw, 3rem); text-transform: uppercase; margin-top: 1rem; }

/* Pie */
.foot { margin-top: 3rem; background: var(--asphalt); color: #8B97A6; padding: 2rem 0 2.4rem; font-size: .86rem; }
.foot a { color: #C9D2DD; }
.foot-cities { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-bottom: 1rem; }
.foot-cities strong { width: 100%; color: #fff; font: 800 1.1rem var(--display); text-transform: uppercase; letter-spacing: .04em; }
.foot-warn { color: #E8D9A8; }
.foot-nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: .8rem; }

/* Móvil: la herramienta cabe sin hacer scroll */
@media (max-width: 600px) {
  .hero { padding-top: 1rem; }
  .hero h1 { font-size: 2.45rem; }
  .sub { font-size: .95rem; margin-bottom: .9rem; }
  .kicker { margin-bottom: .6rem; }
  .dash { padding: .85rem; }
  .q { margin-bottom: .8rem; }
  .stk { width: 44px; height: 44px; }
  .stk b { font-size: 1.25rem; }
  .stk-eco b { font-size: .9rem; }
  .stk-cero b { font-size: 1.35rem; }
  .stk-cero i { font-size: .36rem; bottom: 7px; }
  .light { grid-template-columns: auto minmax(0, 1fr); padding: .9rem; gap: .9rem; }
  .tl { padding: .5rem .45rem; gap: .4rem; border-radius: 20px; }
  .tl i { width: 40px; height: 40px; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .story-in { grid-template-columns: minmax(0, 1fr); }
  .etq-out { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .fuel span { min-height: 3.9rem; font-size: .72rem; }
  .road { width: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  .road i, .kicker .dot, .light[data-v="idle"] .l-amb { animation: none; }
  html { scroll-behavior: auto; }
}
