/* Landing comercial de ComexTrack (www.comextrack.io). Sitio estático: sin dependencias externas.
   Marca: docs/ComexTrack-requerimiento-arte-y-marca.pdf. Misma gráfica que el flyer y el pendón (marketing/). */

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("fuentes/barlow-semi-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fuentes/manrope-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fuentes/jetbrains-mono-variable.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --marino-profundo: #0b1d33;
  --marino: #122b47;
  --marino-linea: #24486f;
  --verde: #2ab09a;
  --verde-claro: #7fe0cf;
  --verde-texto: #107565; /* verde de marca oscurecido: cumple contraste AA sobre fondos claros */
  --gris: #7d8a95;
  --fondo: #f2f6fb;
  --tinta: #0f172a;
  --texto: #263445;
  --texto-suave: #4a5866;
  --claro: #d5e0ec;
  --claro-tenue: #a9bace;
  --borde: #d3deea;
  --titulos: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --cuerpo: Manrope, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --margen: 20px;
  --ancho: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--marino-profundo);
  color: var(--tinta);
  font-family: var(--cuerpo);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
svg { display: block; }
.oculto { position: absolute; width: 0; height: 0; overflow: hidden; }
.contenedor { width: 100%; max-width: calc(var(--ancho) + 2 * var(--margen)); margin: 0 auto; padding: 0 var(--margen); }

.saltar {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  background: #fff; color: var(--marino); padding: 10px 14px; font-weight: 700; border-radius: 4px;
}
.saltar:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--verde-claro); outline-offset: 3px; }
.seccion-clara :focus-visible { outline-color: var(--verde-texto); }

/* Rótulos en mono espaciado, como en las piezas impresas */
.rotulo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--verde);
}
.seccion-clara .rotulo { color: var(--verde-texto); }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  font-family: var(--cuerpo); font-weight: 800; font-size: 17px; line-height: 1.2;
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 4px; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.boton-principal { background: var(--verde); color: var(--marino-profundo); }
.boton-principal:hover { background: var(--verde-claro); }
.boton-contorno { border-color: #5d7896; color: #fff; }
.boton-contorno:hover { border-color: #fff; }
.boton-chico { min-height: 42px; padding: 8px 13px; font-size: 15px; white-space: nowrap; }
.boton svg { flex: none; width: 20px; height: 20px; }

/* Cabecera */
.cabecera {
  position: sticky; top: 0; z-index: 20;
  background: var(--marino-profundo);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { width: 128px; height: auto; flex: none; }
.cabecera nav { display: flex; align-items: center; gap: 4px; }
@media (max-width: 350px) { .cabecera .enlace-ingresar { display: none; } } /* en pantallas muy angostas «Ingresar» queda en la portada */
.enlace-ingresar {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 9px;
  color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; border-radius: 4px;
}
.enlace-ingresar:hover { color: var(--verde-claro); }
.solo-ancho { display: none; }

/* Portada */
.portada { position: relative; overflow: hidden; background: var(--marino-profundo); color: #fff; }
.portada .contenedor { position: relative; padding-top: 44px; padding-bottom: 178px; }
.portada h1 {
  margin: 16px 0 0 -0.02em;
  font-family: var(--titulos); font-weight: 800; text-transform: uppercase;
  font-size: clamp(4rem, 21.5vw, 10rem); line-height: 0.9; letter-spacing: -0.01em;
}
.portada h1 span { display: block; }
.portada h1 .verde { color: var(--verde); }
.bajada { margin-top: 24px; max-width: 21em; font-weight: 600; font-size: clamp(1.25rem, 5.4vw, 1.6rem); line-height: 1.3; }
.acciones { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.acciones .boton { flex: 1 1 100%; }
.emblema {
  position: absolute; right: -52px; bottom: -44px;
  width: 190px; height: auto; pointer-events: none;
}

/* Los tres pasos */
.pasos { background: var(--marino-profundo); color: #fff; padding: 8px 0 72px; }
.pasos ol { display: grid; gap: 0; }
.paso { position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding-bottom: 34px; }
.paso:last-child { padding-bottom: 0; }
.paso::before { /* línea que une los números */
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--marino-linea);
}
.paso:last-child::before { display: none; }
.numero {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--verde); color: #fff;
  font-family: var(--titulos); font-weight: 800; font-size: 24px; line-height: 1;
}
.paso h2 {
  margin-top: 4px;
  font-family: var(--titulos); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1; letter-spacing: 0.005em;
}
.paso p { margin-top: 8px; color: var(--claro); font-size: 17px; line-height: 1.4; }
.paso-banco .numero { background: var(--verde); color: var(--marino-profundo); }
.paso-banco .cuerpo { background: var(--verde); color: var(--marino-profundo); padding: 18px 18px 20px; }
.paso-banco .rotulo, .paso-banco p { color: var(--marino-profundo); }
.paso-banco p { font-weight: 700; }

/* Secciones claras */
.seccion-clara { background: var(--fondo); color: var(--tinta); padding: 64px 0; }
.titulo-seccion {
  font-family: var(--titulos); font-weight: 800; text-transform: uppercase; color: var(--marino);
  font-size: clamp(2.6rem, 12.5vw, 5.25rem); line-height: 0.95; letter-spacing: -0.005em;
}
.titulo-seccion span { display: block; }
.entrada { margin-top: 18px; max-width: 37em; color: var(--texto); font-weight: 500; font-size: 18px; line-height: 1.45; }
.audiencias { margin-top: 36px; display: grid; gap: 18px; }
.tarjeta { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--borde); padding: 26px 22px 24px; }
.tarjeta h3 {
  margin-top: 10px;
  font-family: var(--titulos); font-weight: 800; color: var(--marino);
  font-size: clamp(1.7rem, 7.4vw, 2.05rem); line-height: 1.08;
}
.lista { margin-top: 18px; display: grid; gap: 12px; }
.lista li { display: grid; grid-template-columns: 20px 1fr; column-gap: 12px; align-items: start; color: var(--texto); font-weight: 500; line-height: 1.4; }
.lista svg { width: 20px; height: 20px; margin-top: 2px; }
.enlace-demo {
  margin-top: auto; padding-top: 22px; align-self: flex-start;
  color: var(--verde-texto); font-weight: 800; text-decoration: none;
}
.enlace-demo span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.enlace-demo:hover { color: var(--marino); }

/* Banco */
.banco { background: var(--fondo); padding: 0 0 64px; }
.banco .panel { background: var(--marino); color: #fff; padding: 36px 24px; display: grid; gap: 26px; }
.banco h2 {
  margin-top: 12px;
  font-family: var(--titulos); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.3rem, 10.5vw, 3.4rem); line-height: 0.98;
}
.banco .lista li { color: #fff; font-weight: 700; font-size: 18px; }
.banco .rotulo { color: var(--verde); }

/* Demostración */
.demo { background: var(--marino-profundo); color: #fff; padding: 64px 0 72px; }
.demo .rejilla { display: grid; gap: 30px; }
.demo h2 {
  margin-top: 12px;
  font-family: var(--titulos); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 12.5vw, 4.5rem); line-height: 0.95;
}
.demo .entrada { color: var(--claro); }
.formulario { display: grid; gap: 16px; background: var(--marino); padding: 24px 20px; border: 1px solid var(--marino-linea); }
.campo { display: grid; gap: 6px; }
.campo label { font-weight: 700; font-size: 15px; color: #fff; }
.campo input, .campo select {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 500 17px/1.3 var(--cuerpo); color: var(--tinta);
  background: #fff; border: 2px solid transparent; border-radius: 4px;
  appearance: none; -webkit-appearance: none;
}
.campo select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23122b47' stroke-width='2.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.campo input:focus-visible, .campo select:focus-visible { outline: 3px solid var(--verde-claro); outline-offset: 2px; border-color: var(--verde); }
.envios { display: grid; gap: 12px; margin-top: 4px; }
.nota { color: var(--claro-tenue); font-size: 14px; line-height: 1.45; }
.directo { margin-top: 26px; display: grid; gap: 8px; }
.directo a { color: #fff; font-weight: 700; font-size: 19px; text-decoration: none; overflow-wrap: anywhere; }
.directo a:hover { color: var(--verde-claro); }
.directo .etiqueta { color: var(--claro-tenue); font-size: 14px; font-weight: 600; }

/* Pie */
.pie { background: var(--marino-profundo); color: var(--claro-tenue); border-top: 1px solid rgba(255, 255, 255, 0.09); padding: 34px 0 40px; font-size: 14px; }
.pie .contenedor { display: grid; gap: 22px; }
.pie .logo { width: 170px; }
.claim { margin-top: 12px; font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--claro-tenue); }
.pie nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.pie nav a { color: #fff; font-weight: 700; text-decoration: none; padding: 6px 0; }
.pie nav a:hover { color: var(--verde-claro); }

/* Tablet y escritorio */
@media (min-width: 560px) {
  :root { --margen: 32px; }
  .solo-ancho { display: inline; }
  .solo-angosto { display: none; }
  .logo { width: 172px; }
  .cabecera nav { gap: 8px; }
  .boton-chico { padding: 8px 16px; }
  .acciones .boton { flex: 0 0 auto; }
  .envios { grid-template-columns: 1fr 1fr; }
  .emblema { width: 250px; right: -60px; }
  .formulario { padding: 30px 28px; }
  .tarjeta { padding: 30px 28px 28px; }
  .banco .panel { padding: 44px 36px; }
}
@media (min-width: 860px) {
  body { font-size: 18px; }
  .cabecera .contenedor { min-height: 72px; }
  .portada .contenedor { padding-top: 72px; padding-bottom: 96px; }
  .emblema { width: min(32vw, 430px); right: -40px; bottom: -70px; }
  .pasos { padding: 24px 0 96px; }
  .pasos ol { grid-template-columns: repeat(3, 1fr); column-gap: 28px; }
  .paso { display: block; padding-bottom: 0; }
  .paso::before { left: 44px; right: -28px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .paso .cuerpo { margin-top: 20px; }
  .paso-banco .cuerpo { padding: 20px 22px 24px; }
  .paso:not(.paso-banco) .cuerpo { padding-top: 20px; }
  .seccion-clara { padding: 96px 0 72px; }
  .audiencias { grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }
  .banco { padding-bottom: 96px; }
  .banco .panel { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding: 56px; }
  .demo { padding: 96px 0; }
  .demo .rejilla { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .pie .contenedor { grid-template-columns: 1fr auto; align-items: end; }
  .pie .legal { grid-column: 1 / -1; }
}
