/* MEXICONNECT · mexiconnect.trade · v2.1. Static pages; one first-party script refreshes live market figures. Archivo (SIL OFL), self-hosted. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("archivo-wdth.woff2") format("woff2-variations"), url("archivo-wdth.woff2") format("woff2");
}

:root {
  --azul: #0a3161;        /* ground: blue */
  --hondo: #071f45;       /* deeper blue */
  --verde: #006847;       /* Mexico green: buttons on light */
  --verde-luz: #3dd68c;   /* green on blue */
  --rojo: #c8102e;        /* red: links on light */
  --rojo-luz: #ff5c6c;    /* red on blue: goods moving north */
  --blanco: #ffffff;
  --papel: #f5f7fa;
  --tinta: #0e1b33;
  --gris: #4a5568;
  --niebla: #b8c4de;      /* secondary text on blue */
  --linea: #dce2ea;
  --measure: 36rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 74rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

a { color: var(--azul); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--rojo); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--verde-luz); outline-offset: 3px; border-radius: 3px; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
svg.ext { width: .72em; height: .72em; margin-left: .22em; vertical-align: baseline; opacity: .7; }

.skip { position: absolute; left: -999px; top: 0; background: var(--blanco); color: var(--tinta); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-head { background: var(--azul); color: var(--blanco); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.wordmark { display: inline-flex; align-items: center; padding: .35rem 0; }
.wordmark img { display: block; height: clamp(.95rem, 4.4vw, 1.3rem); width: auto; }
.nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.75rem); font-size: .9375rem; }
.nav a { color: var(--niebla); text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blanco); text-decoration: underline; text-decoration-color: var(--verde-luz); text-decoration-thickness: 2px; }
.nav .lang { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .25rem .75rem; color: var(--blanco); }
.nav .lang:hover { border-color: var(--blanco); text-decoration: none; }
@media (max-width: 47.99rem) {
  .bar { flex-wrap: wrap; }
  .nav { width: 100%; flex-wrap: wrap; justify-content: flex-start; font-size: .875rem; gap: .4rem 1rem; }
  .nav .lang { margin-left: auto; }
  .nav .lang { padding: .2rem .6rem; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(60rem 40rem at 75% 55%, rgba(61,214,140,.07), transparent 60%),
    linear-gradient(180deg, var(--azul) 0%, var(--hondo) 100%);
  color: var(--blanco);
  overflow: hidden;
}
.hero-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; padding-top: clamp(1.5rem, 5vw, 3.5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr); gap: 2.5rem; min-height: min(44rem, calc(100vh - 4.5rem)); } }

.hero h1 {
  margin: 0;
  font-weight: 760; font-stretch: 116%;
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  line-height: 1.04; letter-spacing: -0.012em;
  max-width: 16ch;
}
.lead { margin: 1.25rem 0 0; max-width: var(--measure); color: var(--niebla); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.25rem; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; border-radius: 999px; border: 2px solid transparent; }
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn-wa { background: var(--verde); color: var(--blanco); }
.btn-wa:hover { background: #00563b; color: var(--blanco); }
.btn-ghost { color: var(--blanco); border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { color: var(--blanco); border-color: var(--blanco); }
.btn-line { color: var(--azul); border-color: var(--azul); }
.btn-line:hover { color: var(--blanco); background: var(--azul); }

/* Map: a tilted 3D scene. The pointer tilts the whole scene as one rigid piece (hero.js), so nothing slides off the ground. */
.map { margin: 0; position: relative; --px: 0; --py: 0; }
.map svg { display: block; width: 100%; height: auto; overflow: visible; }
@media (min-width: 60rem) { .map svg { width: 120%; margin-left: -9%; } }
.map svg { transform: perspective(1100px) rotateY(calc(var(--px) * 5deg)) rotateX(calc(var(--py) * -4deg)); transform-origin: 50% 60%; }
.map .grid { fill: none; stroke: rgba(184,196,222,.13); stroke-width: .8; }
.map .land-ctx { fill: rgba(255,255,255,.025); stroke: rgba(184,196,222,.2); stroke-width: .7; }
.map .slab-us { fill: #041533; }
.map .slab-mx { fill: #02301f; }
.map .land-us { fill: #163a6e; stroke: rgba(255,255,255,.42); stroke-width: .9; }
.map .land-mx { fill: url(#m-mxfill); stroke: rgba(190,255,225,.55); stroke-width: .9; }
.map .shadow { fill: none; stroke: #020b1f; stroke-width: 3.5; stroke-linecap: round; opacity: .2; }
.map .route { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map .r-south { stroke: var(--blanco); stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 0; }
.map .r-north { stroke: var(--rojo-luz); stroke-width: 2.8; }
.map .r-fan { stroke: var(--rojo-luz); stroke-width: 1.6; opacity: .6; }
.map .trail, .map .trail-s { stroke-width: 4.5; stroke-dasharray: .16 1; stroke-dashoffset: .16; opacity: 0; }
.map .trail { stroke: #ffc2c8; }
.map .trail-s { stroke: var(--blanco); }
.map .beam { opacity: .75; transform-box: fill-box; transform-origin: 50% 100%; }
.map .beam-leon { fill: url(#m-beam); }
.map .beam-border { fill: url(#m-beam-r); }
.map .n-home { fill: var(--blanco); }
.map .n-mx { fill: var(--verde-luz); stroke: var(--hondo); stroke-width: 2; }
.map .n-leon { fill: var(--verde-luz); stroke: var(--blanco); stroke-width: 2.5; }
.map .n-border { fill: var(--hondo); stroke: var(--rojo-luz); stroke-width: 2.5; }
.map .n-us { fill: var(--rojo-luz); }
.map .ring, .map .ping { fill: none; stroke-width: 2; opacity: 0; }
.map .ring { stroke: var(--verde-luz); }
.map .ping { stroke: var(--rojo-luz); }
/* every element that scales does so around its own centre (otherwise it flies in from the corner) */
.map .n-home, .map .n-mx, .map .n-leon, .map .n-border, .map .n-us, .map .ring, .map .ping { transform-box: fill-box; transform-origin: center; }
.map .goods { fill: var(--blanco); stroke: var(--rojo-luz); stroke-width: 2; opacity: 0; offset-rotate: 0deg; }
.map .plane { fill: var(--blanco); opacity: 0; offset-rotate: auto; }
.map .lbl { fill: var(--blanco); font-family: "Archivo", sans-serif; font-weight: 700; font-stretch: 110%; font-size: 15px; paint-order: stroke; stroke: var(--hondo); stroke-width: 4px; stroke-linejoin: round; }
.map .lbl-lg { font-size: 19px; font-weight: 800; }
.map .lbl-sm { fill: var(--niebla); font-weight: 500; font-size: 12.5px; font-stretch: 100%; }

.legend { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9375rem; color: var(--niebla); }
.legend li { display: inline-flex; align-items: center; gap: .55rem; }
.legend i { display: inline-block; width: 1.6rem; height: 3px; border-radius: 2px; }
.legend .k-south { background: var(--blanco); }
.legend .k-north { background: var(--rojo-luz); }
.legend .k-us { width: .65rem; height: .65rem; border-radius: 50%; background: var(--rojo-luz); }

/* One orchestrated sequence: the ground rises, we fly south, goods shoot north and fan out. Then it keeps moving. */
@media (prefers-reduced-motion: no-preference) {
  .map svg { animation: float 7s ease-in-out 5s infinite alternate; }
  .map .slab, .map .land-ctx, .map .grid { opacity: 0; animation: rise 1s cubic-bezier(.2,.7,.2,1) .1s forwards; }
  .map .grid { animation-delay: .4s; }
  .map .shadow { opacity: 0; animation: shade .8s ease-out forwards; }
  .map .sh0, .map .sh1 { animation-delay: 1.6s; }
  .map .sh2 { animation-delay: 3.5s; }
  .map .shadow:nth-of-type(n+4) { animation-delay: 4.5s; }
  .map .hub-glow { opacity: 0; animation: fadein 1.2s ease-out 3s forwards, glow 3.2s ease-in-out 4.2s infinite alternate; }
  .map .n-home { opacity: 0; animation: pop .45s ease-out .7s forwards; }
  .map .r-south { stroke-dashoffset: 1; animation: draw 2.2s cubic-bezier(.45,0,.3,1) .9s forwards; }
  .map .plane { animation: fly 8.8s cubic-bezier(.45,0,.3,1) .9s infinite; }
  .map .trail-s { animation: streak-s 8.8s cubic-bezier(.45,0,.3,1) 9.7s infinite; }
  .map .n-mx, .map .n-leon { opacity: 0; animation: pop .45s ease-out forwards; }
  .map .n-tj { animation-delay: 1.15s; }
  .map .n-en { animation-delay: 1.3s; }
  .map .n-leon { animation-delay: 3s; }
  .map .beam { opacity: 0; animation: ignite .7s cubic-bezier(.2,.8,.2,1) forwards, flicker 2.6s ease-in-out infinite alternate; }
  .map .beam-leon { animation-delay: 3.05s, 3.8s; }
  .map .beam-border { animation-delay: 3.95s, 4.7s; }
  .map .ring { animation: ring 2.6s ease-out 3.2s infinite; }
  .map .r-north { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s cubic-bezier(.5,0,.3,1) 3.2s forwards; }
  .map .n-border { opacity: 0; animation: pop .35s ease-out 3.9s forwards; }
  .map .r-fan { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .8s cubic-bezier(.3,.6,.3,1) forwards; }
  .map .n-us { opacity: 0; animation: pop .4s ease-out forwards; }
  .map .goods { animation: ride 5.6s linear infinite; }
  .map .trail { animation: streak 5.6s linear infinite; }
  .map .ping { animation: ping 5.6s ease-out infinite; }
  .legend li { opacity: 0; animation: fadein .5s ease-out forwards; }
  .legend li:nth-child(1) { animation-delay: .9s; }
  .legend li:nth-child(2) { animation-delay: 3.2s; }
  .legend li:nth-child(3) { animation-delay: 4.2s; }
}
@keyframes float { from { translate: 0 0; } to { translate: 0 -7px; } }
@keyframes rise { from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shade { to { opacity: .2; } }
@keyframes glow { from { opacity: .55; } to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.3); } 70% { opacity: 1; transform: scale(1.3); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.6); } }
@keyframes ping { 0% { opacity: 0; transform: scale(.6); } 4% { opacity: .95; } 30%, 100% { opacity: 0; transform: scale(3.4); } }
@keyframes ignite { from { opacity: 0; transform: scaleY(0); } to { opacity: .75; transform: scaleY(1); } }
@keyframes flicker { from { opacity: .5; } to { opacity: .85; } }
@keyframes fly { 0% { offset-distance: 0%; opacity: 0; } 2% { opacity: 1; } 23% { opacity: 1; } 25%, 100% { offset-distance: 100%; opacity: 0; } }
@keyframes streak-s { 0% { stroke-dashoffset: .16; opacity: 0; } 2% { opacity: .9; } 23% { opacity: .9; } 25%, 100% { stroke-dashoffset: -.84; opacity: 0; } }
@keyframes ride { 0% { offset-distance: 0%; opacity: 0; } 4% { opacity: 1; } 58% { opacity: 1; } 62%, 100% { offset-distance: 100%; opacity: 0; } }
@keyframes streak { 0% { stroke-dashoffset: .16; opacity: 0; } 4% { opacity: .55; } 58% { opacity: .55; } 62%, 100% { stroke-dashoffset: -.84; opacity: 0; } }
@keyframes fadein { to { opacity: 1; } }

/* ---------- Pulse: one compact strip; scrolls sideways on small screens ---------- */
.pulse { background: var(--blanco); border-bottom: 1px solid var(--linea); }
.pulse-row { display: flex; align-items: stretch; gap: 0 1.5rem; padding-top: .7rem; padding-bottom: .7rem; }
.pulse-head { flex: none; display: flex; flex-direction: column; justify-content: center; gap: .15rem; padding-right: 1.5rem; border-right: 1px solid var(--linea); }
.pulse-head h2 { margin: 0; font-size: .9375rem; font-weight: 750; font-stretch: 112%; display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.pulse-head h2::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--verde); }
@media (prefers-reduced-motion: no-preference) { .pulse-head h2::before { animation: live 2.4s ease-out infinite; } }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(0,104,71,.45); } 80%, 100% { box-shadow: 0 0 0 .5rem rgba(0,104,71,0); } }
.pulse-head a { font-size: .8125rem; white-space: nowrap; }
.pulse-grid { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; display: flex; gap: 1.5rem; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.pulse-grid::-webkit-scrollbar { display: none; }
.pulse-grid li { position: relative; flex: 1 0 auto; max-width: 12.5rem; scroll-snap-align: start; padding-left: .7rem; border-left: 3px solid var(--azul); }
.pulse-grid li:nth-child(3n+2) { border-left-color: var(--rojo); }
.pulse-grid li:nth-child(3n) { border-left-color: var(--verde); }
.pulse-grid .k { display: block; font-size: .75rem; color: var(--gris); line-height: 1.25; white-space: nowrap; }
.pulse-grid .v { display: block; font-size: 1.1875rem; font-weight: 760; font-stretch: 110%; font-variant-numeric: tabular-nums lining-nums; line-height: 1.2; white-space: nowrap; }
.pulse-grid .n { display: block; font-size: .6875rem; color: var(--gris); line-height: 1.3; }
.pulse-grid .n a { color: var(--gris); }
@media (max-width: 47.99rem) {
  .pulse-row { flex-direction: column; gap: .4rem; padding-top: .55rem; padding-bottom: .6rem; }
  .pulse-head { flex-direction: row; align-items: baseline; justify-content: space-between; padding-right: 0; border-right: 0; }
  .pulse-grid { gap: 1.1rem; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
  .pulse-grid li { flex: 0 0 auto; max-width: 11.5rem; }
  .pulse-grid .v { font-size: 1.0625rem; }
}

/* ---------- Sections ---------- */
.section { padding-top: clamp(3rem, 7vw, 5.5rem); }
.section-last { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.split { display: grid; gap: 1.25rem 3rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .split { grid-template-columns: 17rem minmax(0, 1fr); } }
.split > * { min-width: 0; }
.section h2 { margin: 0; font-weight: 760; font-stretch: 116%; font-size: clamp(1.6rem, 2.8vw, 2.15rem); line-height: 1.08; }
.section h2 + .sub { margin: .6rem 0 0; color: var(--gris); max-width: 22rem; }
.items { display: grid; gap: 1.75rem; max-width: 42rem; }
.item h3 { margin: 0 0 .35rem; font-size: 1.1875rem; font-weight: 680; line-height: 1.3; }
.item p { margin: 0; color: var(--gris); }
.more { display: inline-block; margin-top: 1.5rem; font-weight: 650; }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; max-width: 46rem; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.75rem 3.5rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -.15rem; width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--azul); color: var(--blanco); font-weight: 750; font-variant-numeric: tabular-nums; }
.steps li::after { content: ""; position: absolute; left: 1.08rem; top: 2.3rem; bottom: .2rem; width: 2px; background: var(--linea); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps li:last-child::before { background: var(--rojo); }
.steps h3 { margin: 0 0 .3rem; font-size: 1.1875rem; font-weight: 680; }
.steps p { margin: 0; color: var(--gris); }
.steps-compact li { padding-bottom: 1.1rem; }
.steps-compact p { display: none; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); max-width: 46rem; }
.facts li { background: var(--blanco); border: 1px solid var(--linea); border-left: 4px solid var(--verde); border-radius: 6px; padding: 1rem 1.1rem; }
.facts strong { display: block; font-weight: 680; margin-bottom: .25rem; }
.facts span { color: var(--gris); font-size: .9375rem; }

/* Corredor lists */
.issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 46rem; }
.issues li { padding: 1.1rem 0; border-top: 1px solid var(--linea); }
.issues li:first-child { border-top: 0; padding-top: 0; }
.issues time { display: block; color: var(--gris); font-size: .875rem; font-variant-numeric: tabular-nums; }
.issues a { font-size: 1.1875rem; font-weight: 680; text-decoration: none; color: var(--tinta); }
.issues a:hover { color: var(--rojo); text-decoration: underline; }
.issues p { margin: .3rem 0 0; color: var(--gris); }

/* Calendar */
.cal { list-style: none; margin: 0; padding: 0; max-width: 50rem; }
.cal li { display: grid; grid-template-columns: 1fr; gap: .2rem 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--linea); }
@media (min-width: 44rem) { .cal li { grid-template-columns: 11.5rem 1fr; } }
.cal li:first-child { border-top: 0; }
.cal .when { font-weight: 650; font-variant-numeric: tabular-nums; }
.cal .when small { display: block; font-weight: 400; color: var(--gris); font-size: .8125rem; }
.cal .tag { display: inline-block; margin-top: .3rem; font-size: .75rem; font-weight: 650; padding: .1rem .5rem; border-radius: 999px; background: #e8eef7; color: var(--azul); }
.cal .tag.ok { background: #e3f4ec; color: var(--verde); }
.cal h3 { margin: 0; font-size: 1.125rem; font-weight: 680; line-height: 1.3; }
.cal h3 a { color: var(--tinta); text-decoration: none; }
.cal h3 a:hover { color: var(--rojo); text-decoration: underline; }
.cal .where { color: var(--gris); font-size: .9375rem; }
.cal p { margin: .25rem 0 0; color: var(--gris); }
.cal-compact li { grid-template-columns: 1fr; }
@media (min-width: 44rem) { .cal-compact li { grid-template-columns: 11.5rem 1fr; } }

/* WhatsApp */
.wa-box { display: grid; gap: 2rem; grid-template-columns: 1fr; max-width: 50rem; }
@media (min-width: 52rem) { .wa-box { grid-template-columns: 1fr auto; align-items: start; } }
.intents { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.intents a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1.1rem; background: var(--blanco); border: 1px solid var(--linea); border-radius: 10px; color: var(--tinta); text-decoration: none; font-weight: 620; }
.intents a:hover { border-color: var(--verde); color: var(--verde); }
.intents a svg { width: 1.25rem; height: 1.25rem; color: var(--verde); flex: none; }
.intents small { display: block; font-weight: 400; color: var(--gris); font-size: .875rem; margin-top: .1rem; }
.qr { display: none; text-align: center; }
@media (min-width: 52rem) { .qr { display: block; } }
.qr svg { width: 9.5rem; height: 9.5rem; background: var(--blanco); padding: .6rem; border: 1px solid var(--linea); border-radius: 10px; }
.qr p { margin: .5rem 0 0; font-size: .8125rem; color: var(--gris); max-width: 10rem; }
.mail { margin: 1.75rem 0 0; display: grid; gap: .5rem; color: var(--gris); }
.mail a { font-weight: 650; word-break: break-word; }

/* Floating WhatsApp button */
.wa-float { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.1rem; border-radius: 999px; background: var(--verde); color: var(--blanco); text-decoration: none; font-weight: 650; font-size: .9375rem; box-shadow: 0 6px 20px rgba(7,31,69,.28); }
.wa-float:hover { background: #00563b; color: var(--blanco); }
.wa-float svg { width: 1.25rem; height: 1.25rem; }
@media print { .wa-float { display: none; } }

/* ---------- Live market ---------- */
.live-status { margin: 1rem 0 0; font-size: .9375rem; color: var(--niebla); display: flex; align-items: center; gap: .5rem; }
.live-status::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--niebla); flex: none; }
.live-status.is-live::before { background: var(--verde-luz); }
@media (prefers-reduced-motion: no-preference) { .live-status.is-live::before { animation: live-on 2.4s ease-out infinite; } }
@keyframes live-on { 0% { box-shadow: 0 0 0 0 rgba(61,214,140,.5); } 80%, 100% { box-shadow: 0 0 0 .55rem rgba(61,214,140,0); } }
.stats { display: grid; gap: 1px 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); max-width: 46rem; }
.stat { padding: .85rem 0; border-top: 3px solid var(--azul); }
.stat .k { display: block; font-size: .9375rem; color: var(--gris); }
.stat .v { display: block; margin-top: .25rem; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 760; font-stretch: 112%; font-variant-numeric: tabular-nums lining-nums; line-height: 1.1; }
.stat .n { display: block; margin-top: .3rem; font-size: .8125rem; color: var(--gris); }
.stat .n a { color: var(--gris); }
.stats-big .stat:first-child { border-top-color: var(--verde); }
.stats-big .stat:first-child .v { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.stats-big .stat:nth-child(2) { border-top-color: var(--rojo); }
.groups { display: grid; gap: 2rem; }
.groups h3, .conv h3 { margin: 0 0 .25rem; font-size: 1.1875rem; font-weight: 680; }
.conv { margin: 2rem 0 0; padding: 1.1rem 1.2rem 1rem; background: var(--blanco); border: 1px solid var(--linea); border-radius: 10px; max-width: 46rem; }
.conv-row { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem 1rem; margin-top: .5rem; }
.conv label { display: grid; gap: .3rem; font-size: .875rem; color: var(--gris); flex: 1 1 12rem; }
.conv input { font: inherit; font-size: 1.25rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--tinta); padding: .6rem .75rem; border: 1px solid #b9c3d1; border-radius: 8px; background: var(--papel); width: 100%; }
.conv input:focus-visible { outline: 3px solid var(--verde); outline-offset: 1px; }
.conv-eq { font-size: 1.5rem; font-weight: 700; color: var(--gris); padding-bottom: .55rem; }
@media (max-width: 40rem) { .conv-eq { display: none; } }
.sub { color: var(--gris); }
.table-wrap { overflow-x: auto; max-width: 46rem; }
.bw { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.bw th, .bw td { text-align: left; padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--linea); white-space: nowrap; }
.bw thead th { font-size: .8125rem; font-weight: 650; color: var(--gris); border-bottom: 2px solid var(--azul); }
.bw tbody th { font-weight: 650; }
.bw td:nth-child(2) { font-weight: 700; }
.bw .w-lo { color: var(--verde); }
.bw .w-mid { color: #8a5a00; }
.bw .w-hi { color: var(--rojo); }
.bw .w-off { color: var(--gris); font-weight: 500; }
.srcline { margin: .75rem 0 0; font-size: .8125rem; color: var(--gris); }
.srcline a { color: var(--gris); }

/* ---------- Inner page header ---------- */
.page-head { display: flow-root; background: linear-gradient(180deg, var(--azul), var(--hondo)); color: var(--blanco); padding-bottom: clamp(2rem, 5vw, 3.25rem); }
.crumbs { font-size: .875rem; color: var(--niebla); padding-top: .5rem; }
.crumbs a { color: var(--niebla); }
.page-head h1 { margin: .75rem 0 0; font-weight: 760; font-stretch: 116%; font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.05; max-width: 20ch; }
.page-head .lead { margin-top: 1rem; }

/* Article (Corredor issue) */
.article { max-width: 44rem; }
.article .meta { color: var(--gris); font-size: .9375rem; margin: 0 0 2rem; }
.article section { padding: 1.75rem 0; border-top: 1px solid var(--linea); }
.article section:first-of-type { border-top: 0; padding-top: 0; }
.article h2 { margin: 0 0 .6rem; font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 720; font-stretch: 108%; line-height: 1.2; }
.article p { margin: 0 0 .9rem; }
.why { margin: 0 0 .9rem; padding: .85rem 1rem; background: var(--blanco); border-left: 4px solid var(--rojo); border-radius: 0 6px 6px 0; }
.why strong { display: block; font-size: .875rem; color: var(--rojo); margin-bottom: .2rem; }
.srcs { margin: 0; padding: 0; list-style: none; font-size: .875rem; color: var(--gris); }
.note { margin-top: 2rem; padding: 1rem 1.1rem; border: 1px solid var(--linea); border-radius: 8px; color: var(--gris); font-size: .875rem; background: var(--blanco); }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

/* Footer */
.foot { margin-top: clamp(3.5rem, 8vw, 6rem); background: var(--hondo); color: var(--niebla); }
.foot-grid { display: grid; gap: 1.5rem 3rem; grid-template-columns: 1fr; padding-top: 2.5rem; padding-bottom: 5.5rem; font-size: .9375rem; }
@media (min-width: 52rem) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot a { color: var(--blanco); }
.foot p { margin: 0 0 .5rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.foot .fine { grid-column: 1 / -1; border-top: 1px solid rgba(184,196,222,.2); padding-top: 1.25rem; font-size: .8125rem; }

/* 404 */
.lost { min-height: 70vh; display: grid; align-content: center; }
.lost h1 { margin: 0; font-weight: 760; font-stretch: 116%; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; }
.lost p { color: var(--niebla); margin: 1rem 0 0; }
.lost a { color: var(--blanco); }

/* generated by build.py from map-data.json */
@media (prefers-reduced-motion: no-preference) {
  .map .f0 { animation-delay: 4.00s; }
  .map .u0 { animation-delay: 4.70s; }
  .map .f1 { animation-delay: 4.09s; }
  .map .u1 { animation-delay: 4.79s; }
  .map .f2 { animation-delay: 4.18s; }
  .map .u2 { animation-delay: 4.88s; }
  .map .f3 { animation-delay: 4.27s; }
  .map .u3 { animation-delay: 4.97s; }
  .map .f4 { animation-delay: 4.36s; }
  .map .u4 { animation-delay: 5.06s; }
  .map .f5 { animation-delay: 4.45s; }
  .map .u5 { animation-delay: 5.15s; }
  .map .f6 { animation-delay: 4.54s; }
  .map .u6 { animation-delay: 5.24s; }
  .map .g6 { offset-path: path('M393.0 558.9L395.3 545.5L397.5 532.4L399.8 519.9L402.2 508.2L404.7 497.7L407.2 488.6L409.8 481.0L412.5 475.1L415.2 470.9L418.1 468.3L420.9 467.3L423.8 467.6L426.7 469.1L429.6 471.5L432.5 474.4L435.3 477.6L436.8 472.1L438.4 466.7L439.9 461.3L441.4 456.1L443.0 451.0L444.5 446.2L446.1 441.6L447.6 437.3L449.2 433.3L450.8 429.7L452.4 426.4L454.0 423.5L455.5 420.9L457.1 418.8L458.7 417.0L460.4 415.6L462.0 414.6L463.6 413.9L465.2 413.6L466.8 413.5L468.4 413.6L469.9 414.0L471.5 414.5L473.1 415.2L474.6 415.9L476.2 416.7'); animation-delay: 5.00s; }
  .map .t6 { animation-delay: 5.00s; }
  .map .p6 { animation-delay: 8.47s; }
  .map .g2 { offset-path: path('M393.0 558.9L395.3 545.5L397.5 532.4L399.8 519.9L402.2 508.2L404.7 497.7L407.2 488.6L409.8 481.0L412.5 475.1L415.2 470.9L418.1 468.3L420.9 467.3L423.8 467.6L426.7 469.1L429.6 471.5L432.5 474.4L435.3 477.6L441.3 461.6L447.2 445.7L453.2 430.0L459.2 414.7L465.2 399.9L471.3 385.8L477.3 372.5L483.4 360.1L489.4 348.7L495.4 338.4L501.4 329.3L507.4 321.4L513.3 314.7L519.1 309.4L524.8 305.2L530.5 302.3L536.0 300.5L541.5 299.8L546.8 300.1L552.1 301.3L557.2 303.1L562.2 305.6L567.1 308.6L571.9 311.9L576.6 315.4L581.2 319.0'); animation-delay: 5.80s; }
  .map .t2 { animation-delay: 5.80s; }
  .map .p2 { animation-delay: 9.27s; }
  .map .g3 { offset-path: path('M393.0 558.9L395.3 545.5L397.5 532.4L399.8 519.9L402.2 508.2L404.7 497.7L407.2 488.6L409.8 481.0L412.5 475.1L415.2 470.9L418.1 468.3L420.9 467.3L423.8 467.6L426.7 469.1L429.6 471.5L432.5 474.4L435.3 477.6L448.0 457.4L460.8 437.2L473.6 417.3L486.6 397.9L499.6 379.2L512.7 361.3L525.8 344.6L538.9 329.1L552.0 315.1L564.9 302.7L577.8 292.0L590.5 283.1L603.0 276.1L615.3 270.9L627.3 267.5L639.0 265.9L650.5 265.9L661.5 267.5L672.3 270.5L682.7 274.7L692.8 279.9L702.5 286.0L711.9 292.6L721.1 299.7L730.0 307.0L738.6 314.3'); animation-delay: 6.60s; }
  .map .t3 { animation-delay: 6.60s; }
  .map .p3 { animation-delay: 10.07s; }
  .map .g0 { offset-path: path('M393.0 558.9L395.3 545.5L397.5 532.4L399.8 519.9L402.2 508.2L404.7 497.7L407.2 488.6L409.8 481.0L412.5 475.1L415.2 470.9L418.1 468.3L420.9 467.3L423.8 467.6L426.7 469.1L429.6 471.5L432.5 474.4L435.3 477.6L424.9 453.0L414.5 428.5L404.1 404.4L393.7 380.8L383.4 358.0L373.0 336.3L362.8 315.9L352.7 296.9L342.8 279.6L333.1 264.1L323.7 250.6L314.5 239.0L305.6 229.6L297.1 222.3L288.8 217.0L281.0 213.6L273.5 212.2L266.4 212.4L259.6 214.2L253.2 217.3L247.1 221.5L241.3 226.7L235.8 232.5L230.5 238.8L225.4 245.3L220.5 251.8'); animation-delay: 7.40s; }
  .map .t0 { animation-delay: 7.40s; }
  .map .p0 { animation-delay: 10.87s; }
  .map .g4 { offset-path: path('M393.0 558.9L395.3 545.5L397.5 532.4L399.8 519.9L402.2 508.2L404.7 497.7L407.2 488.6L409.8 481.0L412.5 475.1L415.2 470.9L418.1 468.3L420.9 467.3L423.8 467.6L426.7 469.1L429.6 471.5L432.5 474.4L435.3 477.6L443.5 466.8L451.6 456.0L459.9 445.4L468.2 435.1L476.5 425.1L484.9 415.7L493.3 406.9L501.7 398.8L510.1 391.6L518.5 385.1L526.9 379.6L535.3 375.1L543.6 371.6L551.8 369.1L560.0 367.5L568.1 367.0L576.0 367.3L583.9 368.6L591.6 370.6L599.2 373.3L606.7 376.6L614.1 380.4L621.3 384.6L628.4 389.0L635.4 393.7L642.3 398.3'); animation-delay: 8.20s; }
  .map .t4 { animation-delay: 8.20s; }
  .map .p4 { animation-delay: 11.67s; }
  .map .g1 { offset-path: path('M393.0 558.9L395.3 545.5L397.5 532.4L399.8 519.9L402.2 508.2L404.7 497.7L407.2 488.6L409.8 481.0L412.5 475.1L415.2 470.9L418.1 468.3L420.9 467.3L423.8 467.6L426.7 469.1L429.6 471.5L432.5 474.4L435.3 477.6L432.6 465.0L429.9 452.4L427.2 440.0L424.5 428.0L421.8 416.3L419.2 405.2L416.6 394.6L414.0 384.7L411.5 375.6L409.0 367.3L406.6 359.8L404.2 353.3L401.9 347.6L399.6 342.9L397.5 339.2L395.4 336.3L393.4 334.2L391.4 333.0L389.5 332.5L387.7 332.6L385.9 333.3L384.2 334.5L382.6 336.1L381.0 337.9L379.4 339.9L377.8 341.9'); animation-delay: 9.00s; }
  .map .t1 { animation-delay: 9.00s; }
  .map .p1 { animation-delay: 12.47s; }
  .map .g5 { offset-path: path('M393.0 558.9L395.3 545.5L397.5 532.4L399.8 519.9L402.2 508.2L404.7 497.7L407.2 488.6L409.8 481.0L412.5 475.1L415.2 470.9L418.1 468.3L420.9 467.3L423.8 467.6L426.7 469.1L429.6 471.5L432.5 474.4L435.3 477.6L446.4 468.6L457.7 459.6L469.1 450.8L480.7 442.3L492.3 434.2L504.1 426.7L516.0 420.0L528.0 414.1L540.1 409.1L552.2 405.2L564.3 402.3L576.4 400.7L588.5 400.3L600.5 401.1L612.4 403.1L624.2 406.3L635.9 410.6L647.4 416.0L658.7 422.3L669.9 429.4L680.9 437.3L691.7 445.8L702.3 454.7L712.7 463.9L723.0 473.2L733.2 482.7'); animation-delay: 9.80s; }
  .map .t5 { animation-delay: 9.80s; }
  .map .p5 { animation-delay: 13.27s; }
  .map .plane { offset-path: path('M196.9 388.7L196.8 386.7L196.9 385.9L197.4 387.2L198.4 391.0L199.7 397.0L201.2 404.2L204.7 399.1L208.2 394.0L211.8 388.9L215.6 384.0L219.4 379.4L223.4 375.1L227.5 371.2L231.7 367.8L236.2 364.9L240.8 362.7L245.5 361.3L250.5 360.6L255.7 360.8L261.0 361.9L266.5 363.9L272.2 366.9L278.1 370.9L284.1 375.9L290.3 381.9L296.7 388.8L303.2 396.8L309.8 405.6L316.5 415.3L323.3 425.8L330.1 437.1L337.1 449.0L344.0 461.6L351.0 474.6L358.1 488.1L365.1 501.9L372.1 516.0L379.1 530.2L386.1 544.5L393.0 558.9'); }
}
