/* =============================================================================
   ft-modulos.css — FlexigoTech · rediseño 2026
   -----------------------------------------------------------------------------
   SOLO el bloque de los 102 módulos de la portada (dentro de la banda de prueba).
   Hoja aparte a propósito: la portada la están tocando varios a la vez y este
   bloque no debe pisar ni ft-2026.css ni ft-efectos.css.

   Se enlaza DESPUÉS de ft-2026.css. Reutiliza sus tokens (--ft-h-*) y sus piezas
   (.ft-h-frame, .ft-h-bar, .ft-h-clip, .ft-h-imgbox): aquí no se redefine ningún
   marco, solo la retícula de los dos caminos.

   Prefijo propio: .ft-h-mods-*  ·  Móvil primero  ·  Sin !important.
   ========================================================================== */

body.ft-home .ft-h-mods {
  border-top: 1px solid var(--ft-h-line);
  padding: 34px 0 38px;
}

/* --- Cabecera: la cifra y qué es --- */
body.ft-home .ft-h-mods-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 20px;
  row-gap: 6px;
}
body.ft-home .ft-h-mods-k {
  grid-row: span 2;
  font-size: clamp(44px, 8vw, 64px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .92;
  color: var(--ft-h-ink);
  white-space: nowrap;
}
body.ft-home .ft-h-mods-lead {
  margin: 4px 0 0;
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ft-h-ink);
}
body.ft-home .ft-h-mods-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ft-h-dim);
  max-width: 62ch;
}

/* --- Los dos caminos --- */
body.ft-home .ft-h-mods-grid {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
body.ft-home .ft-h-mods-way {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--ft-h-line);
  border-radius: var(--ft-h-r3, 18px);
  background: var(--ft-h-bg-1);
  padding: 14px;
  transition: border-color var(--ft-h-t), background var(--ft-h-t);
}
body.ft-home .ft-h-mods-way:hover,
body.ft-home .ft-h-mods-way:focus-visible {
  border-color: var(--ft-h-acc-line);
  background: var(--ft-h-bg-2);
}

/* La captura: caja de proporción fija para que las dos midan igual aunque el
   recorte de origen no sea idéntico. Sin esto, la fila baila. */
body.ft-home .ft-h-mods-shot {
  aspect-ratio: 900 / 440;
  background: var(--ft-h-bg-2);
}
/* Las dos capturas miden 900x440 exactas, asi que con height:auto ya encajarian.
   El object-fit es el cinturon por si algun dia se cambia una por otra de otra
   proporcion. La segunda regla lleva main#ft-main solo para empatar en
   especificidad con ft-2026.css (que fuerza height:auto desde un id) y ganar
   por orden de carga; sin ella, el ajuste no se aplicaria nunca. */
body.ft-home .ft-h-mods-shot img,
body.ft-home main#ft-main .ft-h-mods-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
body.ft-home .ft-h-mods-shot > .ft-h-imgbox { height: 100%; }

body.ft-home .ft-h-mods-txt { padding: 16px 4px 4px; }
body.ft-home .ft-h-mods-h {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ft-h-ink);
}
body.ft-home .ft-h-mods-way:hover .ft-h-mods-h,
body.ft-home .ft-h-mods-way:focus-visible .ft-h-mods-h { color: var(--ft-h-accent); }
body.ft-home .ft-h-mods-sign {
  color: var(--ft-h-accent);
  font-weight: 400;
  flex: 0 0 auto;
  transition: transform var(--ft-h-t);
}
body.ft-home .ft-h-mods-way:hover .ft-h-mods-sign { transform: translateX(3px); }
body.ft-home .ft-h-mods-d {
  margin: 7px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ft-h-dim);
}

/* --- Dos columnas a partir de tableta --- */
@media (min-width: 760px) {
  body.ft-home .ft-h-mods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  body.ft-home .ft-h-mods-head { column-gap: 26px; }
}
@media (min-width: 1024px) {
  body.ft-home .ft-h-mods { padding: 42px 0 46px; }
  body.ft-home .ft-h-mods-grid { margin-top: 30px; }
}

/* --- Movimiento reducido: nada se desplaza --- */
@media (prefers-reduced-motion: reduce) {
  body.ft-home .ft-h-mods-way,
  body.ft-home .ft-h-mods-sign { transition: none; }
  body.ft-home .ft-h-mods-way:hover .ft-h-mods-sign { transform: none; }
}

/* --- Impresión: las dos direcciones, escritas --- */
@media print {
  body.ft-home .ft-h-mods-shot { display: none; }
  body.ft-home .ft-h-mods-way { border-color: #999; }
}
