@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }
/* =====================================================================
   LM Consultores — lmconsultores.mx  (v3)
   Colores del logotipo (rojo y azul) sobre el navy de marca.
   Tipografía: Archivo (ancho variable), condensada en titulares.
   ===================================================================== */

:root {
  --ink: #0f1e3d;
  --ink-2: #172a52;
  --ink-3: #0a1630;
  --steel: #4a5a70;
  --steel-light: #a9b6c8;
  --fog: #eef1f5;
  --paper: #ffffff;

  --red: #fc2030;          /* rojo del logotipo */
  --red-ui: #d61a2a;       /* rojo para botones (AA con blanco) */
  --red-ui-hover: #b81523;
  --blue: #0c90d7;         /* azul del logotipo */
  --blue-ui: #0a73ad;
  --blue-soft: #e3f2fb;
  --green: #1fd17a;

  --rule: #d5dce6;
  --rule-dark: #2b3e66;

  --font: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5rem;
  --fs-xl: clamp(1.9rem, 1.4rem + 2vw, 2.7rem);
  --fs-hero: clamp(2.5rem, 1.3rem + 4.6vw, 4.6rem);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --space: clamp(64px, 8vw, 104px);
  --radius-s: 4px;
  --radius-m: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); font-weight: 700; line-height: 1.2; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; margin-top: 40px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink);
  padding: 10px 16px; font-weight: 700; text-decoration: none; border-radius: var(--radius-s);
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sprite de íconos (oculto; se usa con <use>) */
.sprite { display: none; }

/* Íconos */
.ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-sm { width: 20px; height: 20px; }
.ico-lg { width: 40px; height: 40px; stroke-width: 1.5; }

/* ---------------------------------------------------------------------
   Botones
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  font: 700 1rem/1 var(--font);
  text-decoration: none; border-radius: var(--radius-s);
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-brand { background: var(--red-ui); color: var(--paper); }
.btn-brand:hover { background: var(--red-ui-hover); }
.btn-line { border-color: #8fa0bb; color: var(--paper); background: transparent; }
.btn-line:hover { border-color: var(--paper); background: rgba(255,255,255,.06); }

/* ---------------------------------------------------------------------
   Encabezado
   --------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--paper);
  border-bottom: 1px solid var(--rule-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand { display: inline-flex; align-items: center; padding: 6px 0; }
.brand img { width: auto; height: 60px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; color: #d6deea; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.nav a:not(.btn):hover { color: var(--paper); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta { min-height: 42px; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; background: transparent; border: 0; cursor: pointer; color: var(--paper);
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 24px; height: 2px; background: currentColor; position: relative; content: "";
  }
  .nav-toggle-bar::before { position: absolute; top: -7px; }
  .nav-toggle-bar::after { position: absolute; top: 7px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--rule-dark);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--rule-dark); }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 16px; }
  .brand img { height: 52px; }
}

/* ---------------------------------------------------------------------
   Aviso de no afiliación
   --------------------------------------------------------------------- */
.notice { background: var(--fog); border-bottom: 1px solid var(--rule); }
.notice .wrap { padding-top: 12px; padding-bottom: 12px; }
.notice p { margin: 0; font-size: 0.92rem; line-height: 1.5; max-width: 110ch; padding-left: 14px; border-left: 4px solid var(--ink); }
.notice p + p { padding-top: 3px; color: var(--steel); }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero { background: var(--ink); color: var(--paper); padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.h1-kw {
  display: block; margin-bottom: 18px;
  font-size: clamp(1rem, .9rem + .5vw, 1.25rem); font-weight: 600; letter-spacing: 0;
  color: #6cc3f2; line-height: 1.3;
}
.h1-big { display: block; min-height: 3.18em; }
.rotator { color: var(--blue); }
.rotator::after {
  content: ""; display: inline-block; width: 0.08em; height: 0.85em; margin-left: 0.06em;
  background: currentColor; vertical-align: -0.06em;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.lead { font-size: var(--fs-md); line-height: 1.55; color: #d6deea; max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .h1-big { min-height: 3.18em; }
}

/* Escena animada */
.scene {
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--rule-dark);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  aspect-ratio: 600 / 380;
}
.scene svg { width: 100%; height: 100%; }

.scene .truck   { animation: truck 12s cubic-bezier(.45,.05,.35,1) infinite; }
.scene .beam    { opacity: 0; animation: beam 12s linear infinite; }
.scene .light-red   { animation: lred 12s steps(1) infinite; }
.scene .light-green { opacity: .18; animation: lgreen 12s steps(1) infinite; }
.scene .okmark  { transform-box: fill-box; transform-origin: center; opacity: 0; animation: ok 12s ease-out infinite; }
.scene .lane path { animation: lane 1.2s linear infinite; }
.scene .flag    { transform-box: fill-box; transform-origin: left center; animation: wave 2.2s ease-in-out infinite alternate; }
.scene .flag-b  { animation-delay: -1.1s; }
.scene .stars circle { animation: twinkle 3s ease-in-out infinite; }
.scene .stars circle:nth-child(2n) { animation-delay: -1.5s; }
.scene .train   { animation: train 18s linear infinite; }
.scene .smoke circle { transform-box: fill-box; transform-origin: center; animation: smoke 3.6s ease-out infinite; }
.scene .smoke circle:nth-child(2) { animation-delay: -1.2s; }
.scene .smoke circle:nth-child(3) { animation-delay: -2.4s; }
.scene .crates use { animation: belt 1.4s linear infinite; }
.scene .crates use:first-child { animation-name: belt, fadein; }
.scene .crates .c3 { animation-name: belt, fadeout; }

@keyframes truck {
  0%   { transform: translateX(-300px); }
  30%  { transform: translateX(262px); }
  62%  { transform: translateX(262px); }
  100% { transform: translateX(720px); }
}
@keyframes beam {
  0%, 32%  { opacity: 0; transform: translateX(-118px); }
  34%      { opacity: 1; transform: translateX(-118px); }
  46%      { opacity: 1; transform: translateX(70px); }
  57%      { opacity: 1; transform: translateX(-118px); }
  59%, 100%{ opacity: 0; transform: translateX(-118px); }
}
@keyframes lred   { 0% { opacity: 1; } 60% { opacity: .18; } 100% { opacity: 1; } }
@keyframes lgreen { 0% { opacity: .18; } 60% { opacity: 1; } 92% { opacity: .18; } }
@keyframes ok {
  0%, 59%  { opacity: 0; transform: scale(.3); }
  63%      { opacity: 1; transform: scale(1.12); }
  66%      { transform: scale(1); }
  82%      { opacity: 1; }
  88%, 100%{ opacity: 0; }
}
@keyframes lane { to { stroke-dashoffset: -48; } }
@keyframes train { from { transform: translateX(-320px); } to { transform: translateX(640px); } }
@keyframes smoke { 0% { opacity: .0; transform: translateY(8px) scale(.6); } 30% { opacity: .55; } 100% { opacity: 0; transform: translateY(-18px) scale(1.4); } }
@keyframes belt { from { transform: translateX(0); } to { transform: translateX(24px); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeout { from { opacity: 1; } to { opacity: 0; } }
@keyframes wave { from { transform: skewY(0deg) scaleX(1); } to { transform: skewY(5deg) scaleX(.93); } }
@keyframes twinkle { 50% { opacity: .25; } }

/* ---------------------------------------------------------------------
   Cifras
   --------------------------------------------------------------------- */
.facts { background: var(--paper); border-bottom: 1px solid var(--rule); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 34px 20px 30px; border-left: 1px solid var(--rule); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact .num {
  display: block; font-weight: 700; font-size: clamp(2.6rem, 2rem + 2.4vw, 3.8rem); line-height: 1; color: var(--blue-ui); font-variant-numeric: tabular-nums;
}
.fact:nth-child(2n) .num { color: var(--red-ui); }
.fact .label { display: block; margin-top: 8px; color: var(--steel); font-size: 0.95rem; line-height: 1.35; max-width: 22ch; }
@media (max-width: 760px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 24px 16px; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* ---------------------------------------------------------------------
   Secciones
   --------------------------------------------------------------------- */
.section { padding: var(--space) 0; }
.section-ink { background: var(--ink); color: var(--paper); }
.section-fog { background: var(--fog); }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head p { color: var(--steel); font-size: var(--fs-md); line-height: 1.5; }
.section-ink .section-head p { color: var(--steel-light); }

/* Servicios principales */
.services-main { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc {
  display: flex; flex-direction: column;
  padding: 26px 22px 22px; background: var(--paper);
  border: 1px solid var(--rule); border-top: 4px solid var(--ink); border-radius: 6px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,30,61,.12); border-top-color: var(--blue); }
.svc-featured { border-top-color: var(--red); }
.svc-ico {
  display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px;
  border-radius: 50%; background: var(--blue-soft); color: var(--blue-ui);
}
.svc-featured .svc-ico { background: #fde4e6; color: var(--red-ui); }
.svc-ico .ico { width: 28px; height: 28px; }
.svc h3 { font-size: var(--fs-lg); font-weight: 700; }
.svc p { color: var(--steel); font-size: 0.98rem; }
.svc-link { margin-top: auto; font-weight: 700; color: var(--blue-ui); }
@media (max-width: 960px) { .services-main { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .services-main { grid-template-columns: 1fr; } }

.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.mini-grid li {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--fog); border-radius: 6px; font-weight: 700;
}
.mini-grid .ico { color: var(--blue-ui); }
@media (max-width: 760px) { .mini-grid { grid-template-columns: 1fr; } }

/* Franja de sectores */
.ticker { background: var(--blue-ui); color: var(--paper); overflow: hidden; padding: 16px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 10px; padding: 0 30px; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------------
   Inspección de 7 puntos
   --------------------------------------------------------------------- */
.inspect17 { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 1000px) { .inspect17 { grid-template-columns: 1fr; } }

.rig {
  position: relative; background: var(--ink-2); border: 1px solid var(--rule-dark);
  border-radius: var(--radius-m); padding: 28px 18px 18px; aspect-ratio: 800 / 330;
}
.rig-art { position: absolute; inset: 28px 18px 18px; width: calc(100% - 36px); height: calc(100% - 46px); }
.hot {
  position: absolute; z-index: 2;
  left: calc(18px + (100% - 36px) * var(--x) / 100%);
  top: calc(28px + (100% - 46px) * var(--y) / 100%);
  transform: translate(-50%, -50%);
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; padding: 0; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink);
  font: 700 0.8rem/1 var(--font); box-shadow: 0 2px 8px rgba(0,0,0,.35);
  transition: background-color .15s, color .15s, transform .15s;
}
.hot::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--blue); opacity: 0;
}
.hot:hover { transform: translate(-50%, -50%) scale(1.12); }
.hot[aria-pressed="true"] { background: var(--blue); color: var(--ink); }
.hot[aria-pressed="true"]::before { animation: ring 1.6s ease-out infinite; }
@keyframes ring { from { opacity: .9; transform: scale(.8); } to { opacity: 0; transform: scale(1.6); } }
@media (max-width: 560px) {
  .rig { padding: 18px 8px 8px; }
  .rig-art { inset: 18px 8px 8px; width: calc(100% - 16px); height: calc(100% - 26px); }
  .hot { width: 20px; height: 20px; font-size: 0.66rem; border-width: 1.5px;
    left: calc(8px + (100% - 16px) * var(--x) / 100%); top: calc(18px + (100% - 26px) * var(--y) / 100%); }
}
.hot[data-point="1"] { --x: 98%; --y: 76%; }
.hot[data-point="2"] { --x: 92%; --y: 55%; }
.hot[data-point="3"] { --x: 87.5%; --y: 88%; }
.hot[data-point="4"] { --x: 83.5%; --y: 64%; }
.hot[data-point="5"] { --x: 81%; --y: 82%; }
.hot[data-point="6"] { --x: 80%; --y: 40%; }
.hot[data-point="7"] { --x: 75%; --y: 83%; }
.hot[data-point="8"] { --x: 69.5%; --y: 90%; }
.hot[data-point="9"] { --x: 70.5%; --y: 72%; }
.hot[data-point="10"] { --x: 37%; --y: 86%; }
.hot[data-point="11"] { --x: 4%; --y: 47%; }
.hot[data-point="12"] { --x: 35%; --y: 66%; }
.hot[data-point="13"] { --x: 22%; --y: 37%; }
.hot[data-point="14"] { --x: 64%; --y: 48%; }
.hot[data-point="15"] { --x: 40%; --y: 22%; }
.hot[data-point="16"] { --x: 68.5%; --y: 28%; }
.hot[data-point="17"] { --x: 75.5%; --y: 16%; }

.inspect-detail {
  padding: 18px 20px; background: var(--ink-2); border-left: 4px solid var(--blue);
  border-radius: 4px; min-height: 150px;
}
.detail-num { margin: 0 0 4px; font-size: var(--fs-sm); color: var(--steel-light); }
.inspect-detail h3 { margin-bottom: 6px; color: #6cc3f2; }
.inspect-detail p:last-child { margin: 0; color: #dfe6f1; }
.inspect-detail.flash { animation: flash .35s ease-out; }
@keyframes flash { from { background: #24407a; } to { background: var(--ink-2); } }

.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.chips-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 600; color: var(--steel-light); font-size: 0.92rem; }
.chips-title .ico { width: 20px; height: 20px; color: var(--blue); }
.chips ul { display: grid; gap: 4px; }
.chip {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 6px 8px; border: 0; border-radius: 4px; background: transparent; color: #dfe6f1;
  font: 500 0.9rem/1.25 var(--font); cursor: pointer;
}
.chip span {
  display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--rule-dark); color: var(--paper); font-size: 0.72rem; font-weight: 700;
}
.chip:hover { background: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink-2); color: var(--paper); }
.chip[aria-pressed="true"] span { background: var(--blue); color: var(--ink); }
@media (max-width: 480px) { .chips { grid-template-columns: 1fr; } }

.inspect-note { margin: 18px 0 0; font-size: 0.82rem; color: var(--steel-light); }

/* ---------------------------------------------------------------------
   Pasos
   --------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: paso; position: relative; }
.steps li { counter-increment: paso; position: relative; padding: 0 28px 0 0; }
.steps li::before {
  content: counter(paso); position: absolute; top: 4px; left: 72px;
  font-weight: 700; font-size: 1rem; color: var(--steel);
}
.step-ico {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--ink); color: var(--paper); margin-bottom: 20px; position: relative; z-index: 1;
}
.steps li:last-child .step-ico { background: var(--red-ui); }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 32px; left: 64px; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue) 50%, transparent 50%) 0 0 / 14px 3px repeat-x;
  transform-origin: left; transform: scaleX(0); transition: transform 1s ease .3s;
}
.steps li.is-in:not(:last-child)::after { transform: scaleX(1); }
html:not(.js) .steps li:not(:last-child)::after { transform: scaleX(1); }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--steel); margin: 0; max-width: 34ch; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding: 0 0 0 86px; min-height: 64px; }
  .step-ico { position: absolute; left: 0; top: 0; }
  .steps li::before { left: 70px; }
  .steps li:not(:last-child)::after { display: none; }
}

/* ---------------------------------------------------------------------
   Corredor T-MEC con banderas
   --------------------------------------------------------------------- */
.corridor { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.country {
  background: var(--paper); border-radius: var(--radius-m); padding: 28px 24px;
  border: 1px solid var(--rule); text-align: center;
}
.flag-lg {
  width: 96px; height: 64px; margin: 0 auto 18px; border-radius: 4px;
  box-shadow: 0 6px 16px rgba(15,30,61,.18);
  transform-origin: left center; animation: wave-card 3s ease-in-out infinite alternate;
}
.country:nth-child(2) .flag-lg { animation-delay: -1s; }
.country:nth-child(3) .flag-lg { animation-delay: -2s; }
@keyframes wave-card { from { transform: perspective(300px) rotateY(0deg); } to { transform: perspective(300px) rotateY(-14deg); } }
.country h3 { font-size: var(--fs-lg); margin-bottom: 8px; }
.country .prog { font-weight: 700; margin: 0 0 4px; }
.country .auth {
  display: inline-block; margin: 6px 0 0; padding: 3px 10px; border-radius: 999px;
  background: var(--fog); color: var(--steel); font-size: var(--fs-sm); font-weight: 600;
}
@media (max-width: 760px) { .corridor { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   Quién puede participar + acordeón
   --------------------------------------------------------------------- */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 48px; }
.who li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1px solid var(--rule); border-radius: 6px; font-weight: 700;
  transition: border-color .2s, background-color .2s;
}
.who li:hover { border-color: var(--blue); background: var(--blue-soft); }
.who .ico { color: var(--blue-ui); }
@media (max-width: 860px) { .who { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .who { grid-template-columns: 1fr; } }

.accordion { max-width: 880px; }
.accordion details { border-bottom: 1px solid var(--rule); }
.accordion details:first-child { border-top: 1px solid var(--rule); }
.accordion summary, .faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  padding: 20px 0; font-weight: 700; font-size: 1.12rem;
}
.accordion summary .ico { color: var(--blue-ui); }
.accordion summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.accordion summary::after, .faq summary::after {
  content: ""; margin-left: auto; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.accordion details[open] summary::after, .faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.acc-body { padding: 0 0 22px 40px; }
.acc-body p { color: var(--steel); max-width: 70ch; }
.callout { background: var(--fog); color: var(--ink) !important; border-left: 4px solid var(--red); padding: 14px 16px; }
.ticks li { position: relative; padding: 6px 0 6px 26px; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 14px; width: 9px; height: 5px;
  border-left: 2px solid var(--blue-ui); border-bottom: 2px solid var(--blue-ui); transform: rotate(-45deg);
}
details[open] .acc-body, details[open] > p { animation: open .25s ease-out; }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* ---------------------------------------------------------------------
   Cursos
   --------------------------------------------------------------------- */
.courses { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.courses li {
  background: var(--paper); border-radius: var(--radius-m); padding: 24px 18px; text-align: center;
  border: 1px solid var(--rule); transition: transform .2s, box-shadow .2s;
}
.courses li:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,30,61,.1); }
.c-ico {
  display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 14px;
  border-radius: 50%; background: var(--ink); color: var(--paper);
}
.courses h3 { font-size: 1.1rem; margin-bottom: 6px; }
.courses p { color: var(--steel); font-size: 0.92rem; margin: 0; }
@media (max-width: 960px) { .courses { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .courses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .courses { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   Nosotros
   --------------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 0.6fr 1.4fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-logo { width: 100%; max-width: 280px; height: auto; margin: 0 auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }
.about-grid h2 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); }
.about-lead { font-size: var(--fs-md); color: var(--paper); font-weight: 600; }
.about-grid p { color: #d6deea; max-width: 60ch; }
.offices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.offices li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid var(--rule-dark); border-radius: 999px; font-weight: 600;
}
.offices .ico { width: 18px; height: 18px; color: var(--red); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.pillars li { background: var(--ink-2); border: 1px solid var(--rule-dark); border-radius: var(--radius-m); padding: 26px 22px; }
.pillars .ico-lg { color: var(--blue); margin-bottom: 14px; }
.pillars h3 { color: var(--paper); margin-bottom: 6px; }
.pillars p { color: var(--steel-light); margin: 0; font-size: 0.95rem; }
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .about-logo { max-width: 180px; margin: 0; } }
@media (max-width: 480px) { .pillars { grid-template-columns: 1fr; } }

/* Guía paso a paso */
.guide-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: g; }
.guide-steps li { counter-increment: g; position: relative; padding: 64px 18px 22px; border-radius: var(--radius-m); background: var(--fog); }
.guide-steps li::before {
  content: counter(g); position: absolute; top: 18px; left: 18px;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-weight: 700;
}
.guide-steps li:last-child::before { background: var(--red-ui); }
.guide-steps h3 { font-size: 1.08rem; margin-bottom: 6px; }
.guide-steps p { color: var(--steel); font-size: 0.93rem; margin: 0; }
@media (max-width: 1000px) { .guide-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .guide-steps { grid-template-columns: 1fr; } }

/* Ciudades exportadoras */
.coverage { margin-top: 18px; color: var(--steel-light) !important; }
.cities { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.cities li {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--rule); border-radius: 8px; transition: border-color .2s, background-color .2s;
}
.cities li:hover { border-color: var(--blue); background: var(--blue-soft); }
.cities .ico { width: 20px; height: 20px; color: var(--red-ui); }
.cities span { display: flex; flex-direction: column; line-height: 1.25; }
.cities strong { font-weight: 600; }
.cities small { color: var(--steel); font-size: 0.8rem; }
@media (max-width: 1000px) { .cities { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .cities { grid-template-columns: repeat(2, 1fr); } }

/* Industrias */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.industries li {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: 30px 16px; border-radius: var(--radius-m); background: var(--ink); color: var(--paper); font-weight: 700;
  transition: background-color .2s;
}
.industries li:hover { background: var(--blue-ui); }
.industries .ico-lg { color: var(--blue); }
.industries li:hover .ico-lg { color: var(--paper); }
@media (max-width: 760px) { .industries { grid-template-columns: repeat(2, 1fr); } }

/* Preguntas */
.faq-wrap { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq details p { color: var(--steel); max-width: 70ch; padding-bottom: 20px; margin: 0; }

/* ---------------------------------------------------------------------
   Contacto
   --------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-info > p { color: var(--steel-light); font-size: var(--fs-md); line-height: 1.5; }
.channels { display: grid; gap: 14px; margin-top: 28px; }
.channel-group { border: 1px solid var(--rule-dark); border-radius: 10px; overflow: hidden; }
.channel-title {
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 16px;
  background: var(--ink-2); font-weight: 600; font-size: 0.95rem; color: var(--steel-light);
}
.channel-title .ico { width: 20px; height: 20px; color: var(--blue); }
.channel-group li + li { border-top: 1px solid var(--rule-dark); }
.channel-group a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 13px 16px; text-decoration: none; transition: background-color .2s;
}
.channel-group a:hover { background: var(--ink-2); }
.channel-group .city { color: var(--steel-light); font-size: 0.92rem; }
.channel-group .num { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .01em; word-break: break-word; }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  background: var(--ink-2); border: 1px solid var(--rule-dark); border-radius: var(--radius-m);
  padding: clamp(20px, 3vw, 32px);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; }
.opt { font-weight: 400; color: var(--steel-light); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 2px solid transparent; border-radius: var(--radius-s);
  padding: 11px 12px; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: #ff8a7a; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); flex: none; }
.check[data-invalid="true"] label { color: #ffb4a8; }
.form-error { grid-column: 1 / -1; margin: 0; color: #ffb4a8; font-weight: 600; }
.form-ok { margin: 0; padding: 12px 14px; border-radius: 6px; background: rgba(31,209,122,.14); color: #9ff0c6; font-weight: 600; border-left: 4px solid var(--green); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* Protección contra copia (disuasiva); se permite en formulario y contacto */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, .channels, .contact-form { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.privacy { margin: 0; font-size: 0.82rem; color: var(--steel-light); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact-form { grid-template-columns: 1fr; } }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #1faa59; color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.25);
  animation: pulse 2.6s ease-out infinite;
}
.wa-float .ico { width: 30px; height: 30px; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31,170,89,.55), 0 10px 24px rgba(0,0,0,.25); }
  70% { box-shadow: 0 0 0 16px rgba(31,170,89,0), 0 10px 24px rgba(0,0,0,.25); }
  100% { box-shadow: 0 0 0 0 rgba(31,170,89,0), 0 10px 24px rgba(0,0,0,.25); }
}

/* ---------------------------------------------------------------------
   Pie de página
   --------------------------------------------------------------------- */
.site-footer { background: var(--ink-3); color: #c7d1df; padding: 56px 0 40px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px 64px; }
.footer-brand img { height: 72px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 40ch; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; align-content: start; max-width: 440px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; color: var(--paper); }
.legal { grid-column: 1 / -1; border-top: 1px solid var(--rule-dark); padding-top: 24px; }
.legal p { font-size: 0.9rem; max-width: 100ch; margin-bottom: 8px; }
.disclaimer {
  background: var(--paper); color: var(--ink);
  border-left: 6px solid var(--red); border-radius: 6px;
  padding: 18px 22px; margin-bottom: 22px;
}
.disclaimer p { font-size: 1rem; line-height: 1.55; margin: 0; max-width: none; }
.disclaimer p + p { margin-top: 6px; color: var(--steel); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* Página interior (aviso de privacidad) */
.doc { padding: var(--space) 0; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: var(--fs-xl); }
.doc h2 { font-size: 1.35rem; margin-top: 2em; }
.doc p, .doc li { color: var(--steel); max-width: 72ch; }

/* ---------------------------------------------------------------------
   Aparición al hacer scroll (solo con JavaScript activo)
   --------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------
   Movimiento reducido: todo estático
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .scene .truck { transform: translateX(262px); }
  .scene .train { transform: translateX(180px); }
  .scene .okmark { opacity: 1; }
  .scene .light-green { opacity: 1; }
  .scene .light-red { opacity: .18; }
  .rotator::after { display: none; }
  .ticker-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .steps li:not(:last-child)::after { transform: scaleX(1); }
}

/* =====================================================================
   Blog (páginas generadas por el plugin LM Blog Estático)
   ===================================================================== */
.post-hero { background: var(--ink); color: var(--paper); padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); }
.post-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); max-width: 24ch; margin-bottom: 14px; }
.lead-dark { color: #d6deea; font-size: var(--fs-md); max-width: 60ch; margin: 0; }
.crumbs { font-size: var(--fs-sm); color: var(--steel-light); margin-bottom: 18px; }
.crumbs a { color: #6cc3f2; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.post-meta { display: flex; align-items: center; gap: 8px; color: var(--steel-light); margin: 0; font-size: 0.95rem; }
.post-meta .ico { color: var(--blue); }
.post-wrap { max-width: 820px; }
.post-cover { width: 100%; height: auto; border-radius: var(--radius-m); margin: -28px 0 32px; position: relative; box-shadow: 0 18px 40px rgba(15,30,61,.18); }
.post-hero + .wrap .post-body:first-child { margin-top: 40px; }
.post-body { padding: 8px 0 24px; font-size: 1.1rem; line-height: 1.75; color: #1d2a44; }
.post-body > * { max-width: 72ch; }
.post-body h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); margin: 1.8em 0 .6em; }
.post-body h3 { font-size: 1.3rem; margin: 1.5em 0 .5em; }
.post-body p { margin: 0 0 1.1em; }
.post-body ul, .post-body ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin: .35em 0; }
.post-body li::marker { color: var(--blue-ui); }
.post-body a { color: var(--blue-ui); font-weight: 600; }
.post-body strong { color: var(--ink); }
.post-body img { width: 100%; height: auto; border-radius: 8px; margin: 1.2em 0; }
.post-body blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--blue); background: var(--fog); border-radius: 0 6px 6px 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .98rem; display: block; overflow-x: auto; }
.post-body th, .post-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.post-body th { background: var(--fog); }
.post-body figure { margin: 1.4em 0; }
.post-body figcaption { font-size: .88rem; color: var(--steel); }
.post-cta { margin: 24px 0 16px; padding: 28px; border-radius: var(--radius-m); background: var(--ink); color: var(--paper); }
.post-cta h2 { font-size: 1.5rem; }
.post-cta p { color: #d6deea; }
.post-back { margin: 0 0 64px; }
.post-back a { color: var(--blue-ui); font-weight: 600; }

.post-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-cards li { border: 1px solid var(--rule); border-radius: var(--radius-m); overflow: hidden; background: var(--paper); transition: transform .2s, box-shadow .2s; }
.post-cards li:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,30,61,.12); }
.post-cards a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.post-cards img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--fog); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.card-body time { font-size: var(--fs-sm); color: var(--steel); }
.card-body strong { font-size: 1.15rem; line-height: 1.3; color: var(--ink); }
.card-excerpt { color: var(--steel); font-size: .95rem; }
@media (max-width: 960px) { .post-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-cards { grid-template-columns: 1fr; } }

/* Artículos recientes en la página principal */
.latest .section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; max-width: none; }
.latest .section-head > div { max-width: 62ch; }
.latest-all { font-weight: 700; color: var(--blue-ui); white-space: nowrap; }
.latest { background: var(--fog); }
.latest .post-cards li { background: var(--paper); }

/* ============ Páginas de servicio y ciudad ============ */
.post-body .btn { color: var(--paper); text-decoration: none; }
.lp-hero { padding-bottom: 0; }
.lp-hero .hero-actions { margin: 26px 0 44px; }
.lp-route { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0 0 34px; list-style: none; counter-reset: etapa; }
.lp-route::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--red), var(--blue)); }
.lp-route li { position: relative; padding: 24px 16px 0 0; color: #c7d1df; font-size: .95rem; line-height: 1.35; counter-increment: etapa; }
.lp-route li::before { content: counter(etapa); position: absolute; top: -12px; left: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); border: 2px solid var(--blue); color: var(--paper); font-size: .75rem; font-weight: 700; }
.lp-route li:first-child::before { border-color: var(--red); }
.lp-route li:last-child { color: var(--paper); font-weight: 600; }
@media (max-width: 760px) {
  .lp-route { grid-template-columns: 1fr; padding: 4px 0 30px 34px; }
  .lp-route::before { top: 4px; bottom: 52px; left: 11px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--red), var(--blue)); }
  .lp-route li { padding: 2px 0 16px; }
  .lp-route li::before { top: 0; left: -34px; }
}
.lp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 48px; padding-bottom: 40px; align-items: start; }
.lp-body h2 { scroll-margin-top: 96px; }
.lp-body > h2:first-child { margin-top: 0; }
.post-hero + .wrap.lp-grid .lp-body:first-child { margin-top: 0; }
.lp-faq { margin-top: 2.4em; }
.lp-faq .faq { max-width: 72ch; }
.lp-aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.lp-card { border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 20px; background: var(--paper); font-size: .95rem; }
.lp-card-ink { background: var(--ink); border-color: var(--ink); color: #d6deea; }
.lp-card-ink p { margin: 0 0 12px; }
.lp-card-ink .btn { width: 100%; justify-content: center; margin: 4px 0 16px; }
.lp-card-title { margin: 0 0 10px; font-weight: 700; font-size: 1rem; color: var(--ink); }
.lp-card-ink .lp-card-title { color: var(--paper); }
.lp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lp-list a { color: var(--blue-ui); text-decoration: none; }
.lp-list a:hover { text-decoration: underline; }
.lp-phones { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--rule-dark); display: grid; gap: 10px; }
.lp-phones a { display: flex; flex-direction: column; color: #a9b6c8; text-decoration: none; font-size: .85rem; }
.lp-phones span { color: var(--paper); font-weight: 600; font-size: .98rem; }
.lp-download { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 18px 20px; background: var(--blue-soft); border-radius: var(--radius-m); }
.lp-download span { color: var(--steel); font-size: .95rem; }
@media (max-width: 960px) { .lp-grid { grid-template-columns: 1fr; gap: 32px; } .lp-aside { position: static; } }
.more-link { font-weight: 600; color: var(--blue-ui); }
.page-404 { min-height: 100vh; }
.lp-list.on-dark { margin-top: 20px; }
.lp-list.on-dark a { color: #6cc3f2; }
.section-ink .more-link { color: #6cc3f2; }
.cities a { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.cities a strong { text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 3px; }
.footer-grid { grid-template-columns: minmax(0, 1fr) auto; }
.footer-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 24px 48px; align-items: start; }
.site-footer .footer-cols nav { flex-direction: column; flex-wrap: nowrap; gap: 8px; max-width: none; }
.footer-col-title { margin: 0 0 4px; color: var(--paper); font-weight: 600; }
.site-footer .legal { grid-column: 1 / -1; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }
