/* ==========================================================
   Colorido Logistics — sistema visual "mapa de rutas"
   Las cuatro líneas del logo son rutas: rojo, amarillo, verde, morado.
   ========================================================== */

:root {
  /* color */
  --ink: #1B2433;          /* azul pizarra: texto y fondos oscuros */
  --ink-2: #4A5468;        /* texto secundario */
  --ink-3: #6B7487;
  --paper: #FFFFFF;
  --asphalt: #EEF0F3;      /* gris frío para secciones alternas */
  --rule: #D9DDE4;
  --red: #D7373A;
  --yellow: #E7B416;
  --green: #6FA23A;
  --purple: #7B4A96;
  --green-ink: #4C7A22;    /* verde con contraste AA sobre blanco */

  /* tipo */
  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --t-2xl: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem);
  --t-hero: clamp(3rem, 1.2rem + 6.4vw, 7.4rem);

  /* espacio */
  --s-1: .5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem; --s-5: 3rem; --s-6: 4.5rem; --s-7: clamp(4.5rem, 3rem + 6vw, 9rem);
  --shell: 1240px;
  --gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);
  --line-w: 10px;
  --header-h: 76px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--t-md); line-height: 1.6;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.35rem; border-radius: 999px;
  font-family: var(--f-body); font-weight: 700; font-size: var(--t-sm); line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer; border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: .9rem 1.7rem; font-size: var(--t-md); }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--red); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-bright { background: var(--yellow); color: var(--ink); }
.btn-bright:hover { background: #fff; }
.btn-wa { background: #1E8E4A; color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-row { height: 100%; display: flex; align-items: center; gap: var(--s-4); }
.brand img { height: 50px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: clamp(1rem, 2vw, 2rem); }
.main-nav a { text-decoration: none; font-weight: 600; font-size: var(--t-sm); color: var(--ink-2); padding: .4rem 0; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 3px; border-radius: 3px; background: var(--red); transition: right .25s var(--ease); }
.main-nav a:hover, .main-nav a[aria-current="true"] { color: var(--ink); }
.main-nav a:hover::after, .main-nav a[aria-current="true"]::after { right: 0; }
.main-nav .nav-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: var(--s-3); }
.lang-link { font-size: var(--t-sm); font-weight: 700; color: var(--ink-2); text-decoration: none; padding: .5rem .25rem; }
.lang-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 920px) { .header-actions .lang-link { display: none; } }
.link-quiet { font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); text-decoration: none; }
.link-quiet:hover { color: var(--ink); text-decoration: underline; }
.menu-toggle { display: none; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; cursor: pointer; position: relative; }
.bars, .bars::before, .bars::after { position: absolute; left: 50%; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transform: translateX(-50%); transition: transform .25s var(--ease), opacity .2s; }
.bars { top: 50%; margin-top: -1px; }
.bars::before { content: ""; top: -6px; }
.bars::after { content: ""; top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(2rem, 1rem + 4vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s-3); align-items: center; }
@media (min-width: 921px) { .route-map { margin-right: calc(var(--gutter) * -0.5); } }
.hero-copy { position: relative; z-index: 2; }
.hero-kicker { font-weight: 600; color: var(--ink-2); margin-bottom: var(--s-3); font-size: var(--t-md); }
.hero-title { font-size: var(--t-hero); line-height: .92; letter-spacing: -.035em; font-variation-settings: "opsz" 96; }
.ht-line { display: block; }
.hero-lead { margin-top: var(--s-4); max-width: 34rem; font-size: var(--t-lg); line-height: 1.55; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--s-4); }

.route-map { margin: 0; position: relative; }
.map-svg { width: 100%; height: auto; overflow: visible; }
.line { fill: none; stroke-width: var(--line-w); stroke-linecap: round; stroke-linejoin: round; }
.l-green { stroke: var(--green); }
.l-red { stroke: var(--red); }
.l-yellow { stroke: var(--yellow); }
.l-purple { stroke: var(--purple); }
.line-in { stroke: var(--ink); stroke-width: 4; stroke-dasharray: 2 10; stroke-linecap: round; }
.st { fill: #fff; stroke: var(--c); stroke-width: 5; }
.st-end { stroke-width: 6; }
.hub { fill: #fff; stroke: var(--ink); stroke-width: 6; }
.parcel { fill: var(--ink); }
.parcel-in { fill: var(--ink-3); }
.labels text { fill: var(--ink); font-family: var(--f-body); }
.lbl { font-family: var(--f-display); font-weight: 800; font-size: 21px; letter-spacing: -.01em; }
.lbl-hub { font-family: var(--f-display); font-weight: 800; font-size: 19px; }
.lbl-sm { font-size: 13.5px; fill: var(--ink-2) !important; font-weight: 500; }

/* animación de entrada del mapa: la única secuencia orquestada del sitio */
@media (prefers-reduced-motion: no-preference) {
  .js .line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) forwards; }
  .js .line-in { stroke-dasharray: 2 10; stroke-dashoffset: 0; animation: fadein .6s .1s both; }
  .js #r-green { animation-delay: .35s; }
  .js #r-red { animation-delay: .5s; }
  .js #r-yellow { animation-delay: .65s; }
  .js #r-purple { animation-delay: .8s; }
  .js .stations .st { animation: pop .45s var(--ease) both; transform-box: fill-box; transform-origin: center; }
  .js .stations .st:nth-child(odd) { animation-delay: 1.5s; }
  .js .stations .st:nth-child(even) { animation-delay: 1.65s; }
  .js .labels { animation: fadein .7s 1.7s both; }
  .js .ht-line { animation: rise .8s var(--ease) both; }
  .js .ht-line:nth-child(2) { animation-delay: .08s; }
  .js .ht-line:nth-child(3) { animation-delay: .16s; }
  .js .hero-lead, .js .hero-cta, .js .hero-kicker { animation: fadein .8s .35s both; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
.reduced .parcels { display: none; }

.carriers { margin-top: clamp(2rem, 1rem + 3vw, 4rem); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.carriers-row { display: flex; align-items: center; gap: var(--s-4); padding-block: 1.1rem; }
.carriers p { font-size: var(--t-sm); color: var(--ink-2); max-width: 17rem; line-height: 1.4; flex: none; }
.carriers ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.carriers li { font-family: var(--f-display); font-weight: 700; font-size: var(--t-lg); color: var(--ink); letter-spacing: -.01em; }

/* ---------- banda fotográfica ---------- */
.origin { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.origin-media { position: absolute; inset: 0; }
.origin-media img { width: 100%; height: 120%; object-fit: cover; object-position: 50% 40%; will-change: transform; }
.origin-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,36,51,.94) 0%, rgba(27,36,51,.78) 45%, rgba(27,36,51,.35) 100%); }
.origin-inner { position: relative; padding-block: var(--s-7); }
.origin-title { font-size: var(--t-2xl); max-width: 22ch; line-height: 1.06; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-6); }
.facts > div { border-top: var(--line-w) solid; padding-top: var(--s-2); }
.facts > div:nth-child(1) { border-color: var(--red); }
.facts > div:nth-child(2) { border-color: var(--yellow); }
.facts > div:nth-child(3) { border-color: var(--green); }
.facts > div:nth-child(4) { border-color: var(--purple); }
.facts dt { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.facts dd { margin-top: .5rem; color: #D5DAE3; font-size: var(--t-sm); max-width: 24ch; }

/* ---------- secciones comunes ---------- */
.section-title { font-size: var(--t-2xl); max-width: 20ch; }
.section-lead { margin-top: var(--s-3); font-size: var(--t-lg); color: var(--ink-2); max-width: 36rem; }

/* ---------- recorrido ---------- */
.journey { padding-block: var(--s-7); }
.journey-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--s-6); align-items: start; }
.journey-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.journey-intro .btn { margin-top: var(--s-4); }
.stops { list-style: none; position: relative; padding-left: 3.25rem; }
.stops::before, .stops::after { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: var(--line-w); border-radius: 10px; }
.stops::before { background: var(--asphalt); }
.stops::after {
  background: linear-gradient(180deg, var(--red) 0 25%, var(--yellow) 25% 50%, var(--green) 50% 75%, var(--purple) 75% 100%);
  transform-origin: top; transform: scaleY(var(--progress, 1));
}
.stop { position: relative; padding-bottom: var(--s-5); }
.stop:last-child { padding-bottom: 0; }
.stop::before { content: ""; position: absolute; left: calc(-3.25rem + 4px); top: .35rem; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 6px solid var(--c); z-index: 1; box-sizing: border-box; }
.stop h3 { font-size: var(--t-xl); margin-bottom: .5rem; }
.stop p { color: var(--ink-2); max-width: 38rem; }

/* ---------- servicios ---------- */
.services { padding-block: var(--s-7); background: var(--asphalt); }
.services-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-5); }
.tabs { display: inline-flex; background: #fff; border-radius: 999px; padding: 5px; gap: 4px; }
.tabs [role="tab"] { border: 0; background: transparent; border-radius: 999px; padding: .75rem 1.2rem; min-height: 46px; font-weight: 700; font-size: var(--t-sm); cursor: pointer; color: var(--ink-2); transition: background-color .2s, color .2s; }
.tabs [aria-selected="true"] { background: var(--ink); color: #fff; }
.svc-intro { font-size: var(--t-lg); color: var(--ink-2); max-width: 42rem; margin-bottom: var(--s-4); }
.svc-list { list-style: none; border-top: 2px solid var(--ink); }
.svc-list li {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-4); align-items: baseline;
  padding: var(--s-4) 0 var(--s-4) 1.75rem; border-bottom: 1px solid var(--rule); position: relative;
}
.svc-list li::before { content: ""; position: absolute; left: 0; top: var(--s-4); bottom: var(--s-4); width: 8px; border-radius: 8px; background: var(--c); transition: width .3s var(--ease); }
.svc-list li:hover::before { width: 14px; }
.svc-list h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem); letter-spacing: -.025em; }
.svc-list p { color: var(--ink-2); font-size: var(--t-md); max-width: 40rem; }
.svc-panel:not([hidden]) { animation: fadein .35s both; }

/* ---------- tecnología ---------- */
.tech { padding-block: var(--s-7); background: var(--ink); color: #fff; }
.tech .section-title { max-width: 24ch; }
.tech-grid { display: grid; gap: var(--s-7); margin-top: var(--s-6); }
.wms { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.wms-photo { grid-row: span 2; border-radius: 0 64px 0 64px; overflow: hidden; aspect-ratio: 4 / 3; }
.wms h3 { align-self: end; }
.wms-list { align-self: start; }
.wms-photo img { width: 100%; height: 100%; object-fit: cover; }
.wms h3, .codpay h3 { font-size: var(--t-xl); margin-bottom: var(--s-3); }
.wms-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-4); }
.wms-list dt { font-weight: 700; color: #fff; margin-bottom: .25rem; }
.wms-list dd { color: #C3C9D5; font-size: var(--t-sm); }
.codpay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s-6); align-items: center; border-top: 1px solid rgba(255,255,255,.15); padding-top: var(--s-6); }
.codpay .phone { order: 2; justify-self: center; transform: rotate(-4deg); }
.codpay h3 { font-size: var(--t-2xl); max-width: 16ch; }
.codpay-copy p { color: #C3C9D5; margin-bottom: var(--s-3); }
.ticks { list-style: none; display: grid; gap: .65rem; margin-bottom: var(--s-4); }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--yellow); }
.phone { width: 200px; border-radius: 34px; background: #0F1520; padding: 10px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.phone-screen { border-radius: 26px; background: #F6F7F9; color: var(--ink); padding: 18px 12px; display: grid; gap: 8px; min-height: 370px; align-content: start; }
.ph-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 4px; }
.ph-logo { font-family: var(--f-display); font-weight: 800; font-size: 15px; }
.ph-route { background: var(--asphalt); border-radius: 999px; padding: 2px 8px; color: var(--ink-2); }
.ph-card { background: #fff; border-radius: 12px; padding: 10px 12px; border-left: 5px solid var(--rule); }
.ph-card b { display: block; font-size: 12.5px; line-height: 1.3; }
.ph-card span { font-size: 11px; color: var(--ink-3); }
.ph-done { border-left-color: var(--green); }
.ph-pay { border-left-color: var(--yellow); }
.ph-qr { margin: 8px auto 0; width: 84px; height: 84px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px; background: #fff; border-radius: 8px; }
.ph-qr i { background: var(--ink); border-radius: 2px; }
.ph-qr i:nth-child(2), .ph-qr i:nth-child(4), .ph-qr i:nth-child(9) { background: transparent; border: 3px solid var(--ink); }

/* ---------- integraciones ---------- */
.integrations { padding-block: var(--s-7); background: var(--asphalt); }
.int-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); align-items: end; }
.int-head .section-title { max-width: 16ch; }
.int-head .section-lead { margin-top: 0; }
/* una ruta: canales de venta (verde) → bodega → couriers (rojo) */
.int-flow { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 15rem minmax(0, 1fr); margin-top: var(--s-6); }
.int-stage { position: relative; padding-top: 3.25rem; }
.int-stage::before { content: ""; position: absolute; top: 9px; height: var(--line-w); background: var(--c); }
.int-in::before { left: 0; right: 0; border-radius: 10px 0 0 10px; }
.int-out::before { left: 0; right: 0; border-radius: 0 10px 10px 0; }
.int-stage::after { content: ""; position: absolute; top: 0; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 6px solid var(--c); box-sizing: border-box; }
.int-in::after { left: 0; }
.int-out::after { right: 0; }
.int-in { padding-right: var(--s-5); }
.int-out { padding-left: var(--s-5); }
.int-stage h3 { font-size: var(--t-2xl); margin-bottom: .5rem; }
.int-stage > p { color: var(--ink-2); max-width: 30ch; margin-bottom: var(--s-4); }
.int-names { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.int-names li { font-family: var(--f-display); font-weight: 700; font-size: var(--t-lg); letter-spacing: -.01em; line-height: 1.2; background: #fff; border-radius: 999px; padding: .5rem 1rem; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .2s; }
.int-names li:hover { box-shadow: inset 0 0 0 2px var(--c); }
.int-names .int-more { background: transparent; color: var(--ink-2); font-family: var(--f-body); font-weight: 600; font-size: var(--t-md); padding-inline: .25rem; }
.int-names .int-more:hover { box-shadow: none; }
.int-hub { position: relative; text-align: center; padding: 3.25rem var(--s-2) 0; }
.int-hub::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: var(--line-w); background: linear-gradient(90deg, var(--green) 50%, var(--red) 50%); }
.int-hub-mark { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); width: 84px; height: 52px; border-radius: 26px; background: #fff; border: 6px solid var(--ink); box-sizing: border-box; }
.int-hub h3 { font-size: var(--t-xl); margin-bottom: .4rem; }
.int-hub p { color: var(--ink-2); font-size: var(--t-sm); }
.int-foot { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.int-foot p { font-family: var(--f-display); font-weight: 700; font-size: var(--t-xl); }
.carriers a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; }

.carriers .more { font-family: var(--f-body); font-weight: 500; font-size: var(--t-md); align-self: center; }
.carriers .more a { color: var(--ink-2); }
.int-names .int-more { align-self: center; }

/* ---------- autorizaciones ---------- */
.permits { padding-block: var(--s-7); border-top: 1px solid var(--rule); }
.permits-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s-6); align-items: start; }
.permits-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.permit-docs { display: grid; gap: .75rem; margin-top: var(--s-4); }
.permit-docs > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); flex-wrap: wrap; padding: 1rem 1.25rem; border-radius: 16px; background: var(--ink); color: #fff; }
.permit-docs dt { font-weight: 600; color: #C3C9D5; font-size: var(--t-sm); }
.permit-docs dd { font-family: var(--f-display); font-weight: 800; font-size: var(--t-xl); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.permits-note { margin-top: var(--s-3); color: var(--ink-2); }
.permits-note a { font-weight: 700; color: var(--ink); text-underline-offset: 3px; }
.cargo { width: 100%; border-collapse: collapse; }
.cargo thead th { text-align: left; font-size: var(--t-sm); font-weight: 700; color: var(--ink-3); padding: 0 0 .75rem; border-bottom: 2px solid var(--ink); }
.cargo thead th:first-child { padding-left: 2.25rem; }
.cargo tbody tr { border-bottom: 1px solid var(--rule); }
.cargo tbody th, .cargo td { text-align: left; vertical-align: top; padding: 1.1rem 0; }
.cargo tbody th { font-family: var(--f-display); font-weight: 700; font-size: var(--t-lg); line-height: 1.25; letter-spacing: -.01em; padding-left: 2.25rem; padding-right: var(--s-3); position: relative; width: 58%; }
.cargo tbody th::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: 18px; height: 18px; border-radius: 6px; background: var(--c); }
.cargo tbody th::after { content: ""; position: absolute; left: 6px; top: 1.45rem; width: 5px; height: 9px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.cargo td { color: var(--ink-2); }

/* ---------- seguridad / verde ---------- */
.care { padding-block: var(--s-7); }
.care-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-6); align-items: center; }
.care-media { position: relative; }
.care-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.care-media::after { content: ""; position: absolute; right: 0; top: 0; width: 28%; height: 22%; background: linear-gradient(225deg, var(--green) 0 50%, transparent 50%); }
.care-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-5); }
.care-cols h3 { font-size: var(--t-xl); padding-bottom: .75rem; margin-bottom: var(--s-3); border-bottom: var(--line-w) solid var(--red); }
.care-cols > div:nth-child(2) h3 { border-color: var(--green); }
.plain { list-style: none; display: grid; gap: var(--s-2); }
.plain li { color: var(--ink-2); }
.plain b { color: var(--ink); }

/* ---------- testimonios ---------- */
.voices { padding-block: var(--s-7); background: var(--asphalt); }
.voice-stage { margin-top: var(--s-5); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--s-5); align-items: start; }
.voice-tabs { display: grid; gap: .5rem; }
.voice-tabs [role="tab"] { text-align: left; border: 0; background: transparent; padding: .9rem 1rem .9rem 1.4rem; border-radius: 12px; font-family: var(--f-display); font-weight: 700; font-size: var(--t-lg); cursor: pointer; color: var(--ink-3); position: relative; min-height: 48px; transition: background-color .2s, color .2s; }
.voice-tabs [role="tab"]::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 6px; border-radius: 6px; background: var(--c); opacity: .35; transition: opacity .2s; }
.voice-tabs [aria-selected="true"] { background: #fff; color: var(--ink); }
.voice-tabs [aria-selected="true"]::before { opacity: 1; }
.voice { margin: 0; }
.voice:not([hidden]) { animation: fadein .4s both; }
.voice blockquote { margin: 0; }
.voice p { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.45rem, 1rem + 1.7vw, 2.5rem); line-height: 1.2; letter-spacing: -.015em; max-width: 30ch; text-wrap: pretty; }
.voice p::before { content: "“"; display: block; font-size: 5rem; line-height: .7; font-weight: 800; color: var(--c); margin-bottom: .2rem; }
.voice figcaption { margin-top: var(--s-4); display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; }
.voice figcaption b { font-size: var(--t-md); }
.voice figcaption span { color: var(--ink-2); }

/* ---------- nosotros ---------- */
.about { padding-block: var(--s-7); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s-6); align-items: center; }
.about-copy p { margin-top: var(--s-3); color: var(--ink-2); max-width: 38rem; }
.about-copy p:first-of-type { margin-top: var(--s-4); }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 50%; border-radius: 999px 999px 24px 24px; }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--s-7); border-top: 1px solid var(--rule); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-5); }
.faq-list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 1.35rem 3rem 1.35rem 0; position: relative; font-family: var(--f-display); font-weight: 700; font-size: var(--t-lg); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; margin-top: -10px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq details p { padding-bottom: 1.35rem; color: var(--ink-2); max-width: 46rem; }

/* ---------- cotizar ---------- */
.quote { padding-block: var(--s-7); background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.quote::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--line-w); background: linear-gradient(90deg, var(--red) 0 25%, var(--yellow) 25% 50%, var(--green) 50% 75%, var(--purple) 75%); }
.quote .section-lead { color: #C3C9D5; }
.quote-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-6); align-items: start; }
.contact-list { list-style: none; margin-top: var(--s-5); display: grid; gap: var(--s-3); }
.contact-list li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--s-2); border-top: 1px solid rgba(255,255,255,.15); padding-top: var(--s-2); }
.contact-list span { color: #9AA3B4; font-size: var(--t-sm); }
.contact-list a { color: #fff; text-decoration: none; font-weight: 600; margin-right: .75rem; }
.contact-list a[href^="tel"] { white-space: nowrap; }
.contact-list a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; }
.quote-form { background: #fff; color: var(--ink); border-radius: 28px; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-3); }
.field { display: grid; gap: .4rem; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: var(--t-sm); }
.field small { font-weight: 500; color: var(--ink-3); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .75rem .9rem; border: 2px solid var(--rule); border-radius: 12px; background: #fff; font-size: 1rem; transition: border-color .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B8BFCB; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(123,74,150,.3); }
.field [aria-invalid="true"] { border-color: var(--red); }
.err { color: #B3262A; font-size: var(--t-xs); font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .25rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 600; color: var(--green-ink); min-height: 1.5em; }

/* ---------- footer ---------- */
.site-footer { background: #fff; padding-top: var(--s-6); position: relative; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.footer-brand img { width: 170px; margin-bottom: var(--s-2); }
.footer-brand p { color: var(--ink-2); max-width: 26rem; font-size: var(--t-sm); }
.site-footer h2 { font-family: var(--f-body); font-size: var(--t-sm); font-weight: 700; color: var(--ink-3); margin-bottom: .75rem; letter-spacing: 0; }
.site-footer ul { list-style: none; display: grid; gap: .5rem; }
.site-footer ul a { text-decoration: none; font-weight: 600; font-size: var(--t-sm); }
.site-footer ul a:hover { text-decoration: underline; }
.footer-legal { display: flex; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-5); padding-block: var(--s-3); border-top: 1px solid var(--rule); color: var(--ink-3); font-size: var(--t-xs); }
.footer-lines { display: grid; grid-template-columns: repeat(4, 1fr); height: var(--line-w); }
.footer-lines i:nth-child(1) { background: var(--red); }
.footer-lines i:nth-child(2) { background: var(--yellow); }
.footer-lines i:nth-child(3) { background: var(--green); }
.footer-lines i:nth-child(4) { background: var(--purple); }

.mobile-bar { display: none; }

/* ==========================================================
   responsive
   ========================================================== */
@media (max-width: 1080px) {
  .header-actions .link-quiet { display: none; }
}

@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .brand img { height: 42px; }
  /* sin backdrop-filter: si no, el header se vuelve el bloque contenedor del menú fijo */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .main-nav { height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .menu-toggle { display: inline-block; }
  .header-actions .btn { display: none; }
  .header-actions { margin-left: auto; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; margin: 0;
    padding: var(--s-4) var(--gutter); display: flex; flex-direction: column;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--rule); }
  .main-nav a { display: block; padding: 1rem 0; font-family: var(--f-display); font-size: 1.75rem; font-weight: 700; color: var(--ink); }
  .main-nav a::after { display: none; }
  .main-nav .nav-extra { display: block; }
  .main-nav .nav-extra a { font-family: var(--f-body); font-size: var(--t-md); color: var(--ink-2); }
  .main-nav .nav-cta { border: 0; padding-top: var(--s-4); }
  .main-nav .nav-cta a.btn { display: flex; width: 100%; color: #fff; font-weight: 700; padding: .9rem 1.7rem; }

  .hero-grid { grid-template-columns: 1fr; }
  .route-map { margin-inline: calc(var(--gutter) * -0.25); }
  .carriers-row { flex-direction: column; align-items: flex-start; gap: var(--s-2); }
  .carriers p { max-width: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .journey-grid, .care-grid, .about-grid, .quote-grid, .faq-grid, .tech-grid { grid-template-columns: 1fr; }
  .journey-intro { position: static; }
  .permits-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .permits-intro { position: static; }
  .cargo thead { display: none; }
  .cargo tbody tr { display: block; padding: 1rem 0 1rem 2.25rem; position: relative; }
  .cargo tbody th, .cargo td { display: block; padding: 0; width: auto; }
  .cargo tbody th { position: static; font-size: var(--t-md); padding-right: 0; }
  .cargo tbody th::before { top: 1.1rem; }
  .cargo tbody th::after { top: 1.3rem; }
  .cargo td { font-size: var(--t-sm); margin-top: .2rem; }
  .int-head { grid-template-columns: 1fr; gap: var(--s-3); }
  .int-flow { grid-template-columns: 1fr; padding-left: 2.75rem; }
  .int-stage, .int-hub { padding: 0 0 var(--s-5); text-align: left; }
  .int-out { padding-bottom: 0; }
  .int-stage::before, .int-hub::before { left: calc(-2.75rem + 9px); right: auto; top: 0; bottom: 0; width: var(--line-w); height: auto; border-radius: 0; }
  .int-in::before { top: 14px; border-radius: 10px 10px 0 0; }
  .int-out::before { bottom: auto; height: 14px; }
  .int-hub::before { background: linear-gradient(180deg, var(--green) 50%, var(--red) 50%); }
  .int-in::after, .int-out::after { left: -2.75rem; right: auto; top: 0; }
  .int-hub-mark { left: calc(-2.75rem - 2px); top: -4px; transform: none; width: 32px; height: 52px; border-radius: 16px; }
  .int-in, .int-out { padding-left: 0; padding-right: 0; }
  .int-stage h3 { font-size: var(--t-xl); }
  .int-names li { font-size: var(--t-md); padding: .4rem .85rem; }
  .wms, .codpay { grid-template-columns: 1fr; gap: var(--s-4); }
  .wms-photo { grid-row: auto; aspect-ratio: 16 / 10; }
  .codpay .phone { order: 0; }
  .svc-list li { grid-template-columns: 1fr; gap: .5rem; }
  .voice-stage { grid-template-columns: 1fr; gap: var(--s-4); }
  .voice-tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .voice-tabs [role="tab"] { font-size: var(--t-md); }
  .care-media img { aspect-ratio: 16 / 11; }
  .about-media { order: -1; }
  .about-media img { aspect-ratio: 16 / 12; border-radius: 200px 200px 20px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--rule);
    transform: translateY(110%); transition: transform .3s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  body { padding-bottom: 72px; }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(2.8rem, 12.5vw, 4rem); }
  .hero-lead { font-size: var(--t-md); }
  .hero-cta .btn { width: 100%; }
  .labels .lbl { font-size: 26px; }
  .labels .lbl-hub { font-size: 23px; }
  .labels .lbl-sm { font-size: 18px; }
  .labels .opt { display: none; }
  .carriers li { font-size: var(--t-md); }
  .facts { gap: var(--s-4) var(--s-3); }
  .wms-list, .care-cols { grid-template-columns: 1fr; }
  .quote-form { grid-template-columns: 1fr; border-radius: 20px; }
  .form-actions .btn { width: 100%; }
  .contact-list li { grid-template-columns: 1fr; gap: .15rem; }
  .stops { padding-left: 2.75rem; }
  .stop::before { left: calc(-2.75rem + 4px); }
  .footer-legal { flex-direction: column; }
}
