/* MOVA Technologies · capítulos de color.
   Cada sección es un capítulo a pantalla completa con su propio color plano: la noche de MOVA
   y el cian del isotipo para el software a medida, y el color de marca de cada app para su
   capítulo. Un solo sistema de letra (Bricolage Grotesque y Geist), una rejilla y un margen. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 600 800; font-style: normal; font-display: swap; src: url("/assets/fonts/bricolage-latin.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 400 600; font-style: normal; font-display: swap; src: url("/assets/fonts/geist-latin.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  /* Campos de color: cada uno con su tinta asignada. */
  --noche: #07090f;
  --noche-2: #0f131c;
  --noche-3: #151a25;
  --noche-4: #1f2737;
  --papel: #eef1f6;
  --tinta: #07090f;
  --gris: #9aa4b4;
  --cian: #19c9c9;
  --cian-campo: #8fe3e3;
  --cian-foco: #b7eeee;
  --cian-marca: #bdeeee;
  --tinta-suave: #2d3445;
  --papel-suave: #c9d0db;
  --enfila-paso: #0a565e;
  --tinta-hover: #1b2230;
  --cian-hover: #5fdada;
  --campo-ejemplo: #2f5d60;
  --error: #7a0f1e;
  --alpaso: #b3136b;      /* tinta: papel */
  --mesapulso: #e0583c;   /* tinta: noche */
  --enfila: #0d6e78;      /* tinta: papel */
  --skills: #3fa86a;      /* tinta: noche */

  /* Letra: dos familias, cinco medidas. */
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --texto: "Geist", "Helvetica Neue", Arial, sans-serif;
  --t-small: 0.875rem;
  --t-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --t-lead: clamp(1.375rem, 1.1rem + 0.8vw, 2rem);
  --t-head: clamp(2.125rem, 1rem + 5.6vw, 7rem);
  --t-display: clamp(2rem, 0.2rem + 8.8vw, 9.25rem);

  /* Espacio y forma */
  --m: clamp(20px, 4vw, 56px);
  --gap: clamp(16px, 2vw, 32px);
  --capitulo: clamp(96px, 10vw, 160px);
  --radio: 18px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; background: var(--noche); }
body { background: var(--noche); color: var(--papel); font: 400 var(--t-body)/1.55 var(--texto); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 0.95; letter-spacing: -0.035em; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
p { text-wrap: pretty; }
b { font-weight: 600; }
::selection { background: var(--cian); color: var(--tinta); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 6px; }
.iconos { display: none; }
svg use { pointer-events: none; }
.saltar { position: fixed; left: var(--m); top: 12px; transform: translateY(-200%); z-index: 30; padding: 12px 18px; border-radius: 999px; background: #fff; color: var(--tinta); font-weight: 600; }
.saltar:focus-visible { transform: none; }

/* Botones: cápsula. Blanca sobre la noche, tinta sobre los campos claros. */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 0.3em; min-height: 48px; padding: 0 24px; border-radius: 999px; background: #fff; color: var(--tinta); font-weight: 600; font-size: var(--t-body); line-height: 1.3; text-align: center; text-decoration: none; text-wrap: balance; transition: transform 160ms var(--ease-out), background-color 180ms ease, color 180ms ease; }
.boton:active { transform: scale(0.97); }
.boton-tinta { background: var(--tinta); color: #fff; }
.boton-claro { background: #fff; color: var(--tinta); }
.enlace { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: text-decoration-color 180ms ease; }
.enlace svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .boton:hover { background: #dfe5ee; }
  .boton-tinta:hover { background: var(--tinta-hover); }
  .enlace:hover { text-decoration-color: currentColor; }
  .enlace:hover svg { transform: translateX(3px); }
}

/* ---------- Barra ---------- */
.barra { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding: 12px var(--m); background: var(--noche); }
.marca { display: flex; align-items: center; gap: 12px; margin-right: auto; min-height: 44px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.marca svg { width: 36px; height: 36px; }
.barra-enlaces { display: flex; gap: 28px; font-size: var(--t-small); color: var(--gris); }
.barra-enlaces a { padding: 12px 0; text-decoration: none; transition: color 180ms ease; }
.boton-barra { min-height: 44px; padding: 0 18px; font-size: var(--t-small); }
@media (hover: hover) and (pointer: fine) { .barra-enlaces a:hover { color: var(--papel); } }

/* ---------- Capítulo 0 · Portada ---------- */
.portada { min-height: calc(100svh - 68px); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; }
.portada-cabeza { display: grid; align-content: center; gap: clamp(28px, 4vh, 48px); padding: clamp(24px, 6vh, 80px) var(--m) clamp(32px, 5vh, 64px); }
.portada h1 { font-size: var(--t-display); letter-spacing: -0.045em; line-height: 0.92; }
.lineas .linea { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lineas [data-linea] { display: block; }
.portada-fila { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.portada-apoyo { max-width: 46ch; font-size: var(--t-lead); line-height: 1.3; color: var(--gris); }
.portada-apoyo b { color: var(--papel); font-weight: 400; }
.acciones { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 24px; }
.tiras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiras a { position: relative; display: flex; flex-direction: column; gap: 6px; height: clamp(220px, 32vh, 320px); padding: 22px 22px 0; overflow: hidden; text-decoration: none; }
.tira-nombre { font-family: var(--display); font-weight: 800; font-size: var(--t-lead); line-height: 0.95; letter-spacing: -0.035em; }
.tira-texto { max-width: 26ch; font-size: var(--t-small); line-height: 1.4; }
.tira-pasos { margin-top: 14px; font-family: var(--display); font-weight: 700; font-size: var(--t-body); line-height: 1.3; }
.tiras img { width: 118%; max-width: none; margin-top: auto; border-radius: 10px 10px 0 0; transform: translateY(10px); transition: transform 420ms var(--ease-out); }
.t-alpaso a { background: var(--alpaso); color: var(--papel); }
.t-mesapulso a { background: var(--mesapulso); color: var(--tinta); }
.t-enfila a { background: var(--enfila); color: var(--papel); }
.t-skills a { background: var(--skills); color: var(--tinta); }
@media (hover: hover) and (pointer: fine) { .tiras a:hover img { transform: translateY(0); } .tiras a:hover .tira-nombre { text-decoration: underline; text-decoration-thickness: 3px; } }

/* ---------- Capítulos ---------- */
.capitulo { min-height: 90svh; padding: var(--capitulo) var(--m); }
.capitulo h2 { font-size: var(--t-head); }

/* Capítulo 1 · Software a medida, en cian */
.servicios { background: var(--cian); color: var(--tinta); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.servicios-fijo { grid-column: 1 / span 5; position: sticky; top: 96px; display: grid; gap: 28px; justify-items: start; }
.servicios-fijo p { max-width: 30ch; font-size: var(--t-lead); line-height: 1.3; }
.servicios-fijo .servicios-nota { font-size: var(--t-body); line-height: 1.5; max-width: 40ch; }
.servicios-lista { grid-column: 7 / span 6; display: grid; gap: clamp(72px, 8vw, 120px); padding-top: 8px; }
.servicios-lista h3 { font-size: var(--t-lead); letter-spacing: -0.02em; margin-bottom: 18px; }
.servicios-lista li { font-size: var(--t-body); padding-left: 1.3em; position: relative; }
.servicios-lista li + li { margin-top: 12px; }
.servicios-lista li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.55em; height: 0.55em; border-radius: 2px; background: var(--tinta); }

/* Capítulos de app */
.app { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.app h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.18em; min-width: 0; font-size: var(--t-head); }
.app h2 .logo { width: 0.62em; height: 0.62em; flex: none; border-radius: 0.14em; }
.app-texto { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; justify-items: start; min-width: 0; }
.app-lema { font-family: var(--display); font-weight: 700; font-size: var(--t-lead); line-height: 1.3; letter-spacing: -0.015em; max-width: 26ch; }
.app-hechos { display: grid; gap: 10px; max-width: 46ch; }
.app-hechos li { padding-left: 1.3em; position: relative; }
.app-hechos li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.55em; height: 0.55em; border-radius: 2px; background: currentColor; }
.app-estado { font-size: var(--t-small); font-weight: 600; opacity: 0.9; max-width: 60ch; }
.app-enlaces { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.app-medio { margin: 0; min-width: 0; }
.obturador { overflow: hidden; }
.app-medio video, .app-medio img { width: 100%; border-radius: var(--radio); }
.app-medio figcaption { margin-top: 12px; font-size: var(--t-small); }

.app-alpaso { background: var(--alpaso); color: var(--papel); }
.app-alpaso .app-texto { grid-column: 1 / span 5; }
.app-alpaso .app-medio { grid-column: 7 / span 6; }

.app-mesapulso { background: var(--mesapulso); color: var(--tinta); }
.app-mesapulso .app-medio-par { grid-column: 1 / span 6; display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: var(--gap); align-items: center; }
.app-mesapulso .telefono { border-radius: 28px; }
.app-mesapulso .app-texto { grid-column: 7 / span 6; padding-left: clamp(0px, 2vw, 32px); }

.app-enfila { background: var(--enfila); color: var(--papel); align-content: center; row-gap: clamp(40px, 5vw, 72px); }
.app-skills { background: var(--skills); color: var(--tinta); align-content: center; row-gap: clamp(40px, 5vw, 72px); }
.enfila-cabeza { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.enfila-cabeza > div:first-child { display: grid; gap: 16px; }
.enfila-pie { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; }

/* El selector de negocio */
.selector { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(0, 0, 0, 0.25); }
.selector[hidden] { display: none; }
.selector button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: 600 var(--t-small)/1.1 var(--texto); cursor: pointer; transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out); }
.selector button:active { transform: scale(0.97); }
.selector button[aria-checked="true"] { background: var(--papel); color: var(--tinta); }
@media (hover: hover) and (pointer: fine) { .selector button[aria-checked="false"]:hover { background: rgba(255, 255, 255, 0.12); } }

/* El flujo de Enfila: un fragmento de interfaz */
.flujo { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.flujo-config { font-size: var(--t-small); font-weight: 600; }
.flujo-pasos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.flujo-pasos li { position: relative; min-width: 0; display: grid; align-content: start; gap: 8px; min-height: 172px; padding: 20px 18px; border-radius: 14px; background: var(--enfila-paso); }
.flujo-pasos li:not(:last-child)::after { content: ""; position: absolute; top: 34px; right: -10px; width: 10px; height: 3px; background: var(--papel); }
.flujo-pasos b { font-family: var(--display); font-weight: 800; font-size: var(--t-lead); line-height: 1; letter-spacing: -0.02em; }
.flujo-pasos span { font-size: var(--t-small); line-height: 1.4; }
.flujo-pasos li.salta { background: transparent; border: 2px solid rgba(238, 241, 246, 0.4); }
.flujo-pasos li.salta b, .flujo-pasos li.salta span { opacity: 0.7; }
.flujo-aviso { display: flex; align-items: center; gap: 10px; font-size: var(--t-body); font-weight: 600; }
.flujo-aviso svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes aparece { from { opacity: 0; transform: translateY(8px); } }
.cifras { display: flex; flex-wrap: wrap; gap: 16px 56px; }
.cifras div { display: flex; flex-direction: column-reverse; }
.cifras dd { font-family: var(--display); font-weight: 800; font-size: var(--t-head); line-height: 1; letter-spacing: -0.04em; }
.cifras dt { font-size: var(--t-small); font-weight: 600; }

/* El tubo de Skills 2: fases con una aprobación humana entre cada una */
.tubo { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: stretch; row-gap: 10px; }
.tubo > li { flex: 1 1 9rem; min-width: 0; display: grid; align-content: start; gap: 8px; min-height: 180px; padding: 20px 18px; border-radius: 14px; background: var(--tinta); color: var(--papel); }
.tubo > li b { font-family: var(--display); font-weight: 800; font-size: var(--t-lead); line-height: 1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.tubo > li span { font-size: var(--t-small); line-height: 1.4; color: var(--papel-suave); }
.tubo .tubo-despues { background: transparent; color: var(--tinta); border: 3px solid var(--tinta); }
.tubo .tubo-despues span { color: var(--tinta); }
.tubo .tubo-puerta { flex: 0 0 auto; min-height: 0; padding: 0; background: transparent; display: grid; place-items: center; width: 44px; position: relative; }
.tubo .tubo-puerta::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; background: var(--tinta); }
.tubo .tubo-puerta span { position: relative; writing-mode: vertical-rl; transform: rotate(180deg); padding: 10px 5px; border-radius: 999px; background: var(--papel); color: var(--tinta); font-size: var(--t-small); font-weight: 700; }
.app-hechos-fila { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 24px; max-width: 900px; }

/* Capítulo 6 · Cómo trabajamos, en la noche */
.metodo { background: var(--noche); display: grid; align-content: center; gap: 56px; }
.barra-etapas { display: flex; gap: 6px; }
.barra-etapas li { flex: var(--g, 1) 1 0; min-width: 16%; display: grid; gap: 18px; align-content: start; }
.etapa-tiempo { display: block; min-height: max(180px, 24vh); padding: 20px; border-radius: var(--radio); font-family: var(--display); font-weight: 700; font-size: var(--t-lead); line-height: 1.05; letter-spacing: -0.015em; }
.barra-etapas li:nth-child(1) .etapa-tiempo { background: var(--noche-3); }
.barra-etapas li:nth-child(2) .etapa-tiempo { background: var(--noche-4); }
.barra-etapas li:nth-child(3) .etapa-tiempo { background: var(--cian); color: var(--tinta); }
.barra-etapas li:nth-child(4) .etapa-tiempo { background: var(--papel); color: var(--tinta); }
.etapa-texto { max-width: 26ch; color: var(--papel-suave); }
.etapa-texto b { color: var(--papel); }
.metodo-nota { max-width: 70ch; color: var(--gris); }

/* Capítulo 7 · Nosotros, en papel */
.nosotros { background: var(--papel); color: var(--tinta); display: grid; align-content: center; gap: clamp(40px, 5vw, 72px); }
.nosotros h2 { max-width: 12ch; }
.nosotros-texto { columns: 2; column-gap: clamp(32px, 4vw, 64px); font-size: var(--t-lead); line-height: 1.3; color: var(--tinta-suave); hyphens: auto; }
.nosotros-texto p + p { margin-top: 0.7em; }
.nosotros-texto b { color: var(--tinta); }
.nosotros-texto mark { background: var(--cian-marca); color: var(--tinta); padding: 0 0.12em; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.nosotros-cierre { background: var(--tinta); color: var(--papel); padding: 0 0.18em; border-radius: 4px; text-decoration: none; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .nosotros-cierre:hover { background: var(--enfila); } }

/* Capítulo 8 · Preguntas: una franja por pregunta */
.preguntas-cabeza { min-height: 40svh; display: flex; align-items: flex-end; padding: var(--m); background: var(--noche-4); }
.preguntas-cabeza h2 { font-size: var(--t-head); }
.franja { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: 56px var(--m); background: var(--noche); }
.franja:nth-child(even) { background: var(--noche-2); }
.franja dt { grid-column: 1 / span 5; font-family: var(--display); font-weight: 700; font-size: var(--t-lead); line-height: 1.3; letter-spacing: -0.015em; }
.franja dd { grid-column: 7 / span 6; max-width: 56ch; color: var(--papel-suave); line-height: 1.5; }

/* Capítulo 9 · Contacto, en cian */
.contacto { background: var(--cian); color: var(--tinta); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-content: center; row-gap: 40px; }
.contacto-texto { grid-column: 1 / span 6; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; min-width: 0; }
.contacto-texto p { max-width: 40ch; font-size: var(--t-lead); line-height: 1.3; }
.contacto-texto a { font-weight: 600; }
.contacto-texto a[href^="mailto:"] { overflow-wrap: anywhere; }
.formulario { grid-column: 8 / span 5; display: grid; gap: 6px; }
.formulario label { font-size: var(--t-small); font-weight: 600; margin-top: 10px; }
.formulario label:first-child { margin-top: 0; }
.formulario select, .formulario textarea, .formulario input { width: 100%; min-height: 52px; padding: 14px 16px; border: 2px solid transparent; border-radius: 12px; background: var(--cian-campo); color: var(--tinta); font: 400 var(--t-body)/1.4 var(--texto); transition: border-color 160ms ease, background-color 160ms ease; }
.formulario textarea { resize: vertical; min-height: 96px; }
.formulario ::placeholder { color: var(--campo-ejemplo); }
.formulario select:focus-visible, .formulario textarea:focus-visible, .formulario input:focus-visible { outline: none; border-color: var(--tinta); background: var(--cian-foco); }
.formulario [aria-invalid="true"] { border-color: var(--error); }
.formulario button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; margin-top: 16px; border: 0; border-radius: 999px; background: var(--tinta); color: #fff; font: 600 var(--t-body)/1 var(--texto); cursor: pointer; transition: transform 160ms var(--ease-out), background-color 180ms ease; }
.formulario button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms var(--ease-out); }
.formulario button:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .formulario button:hover { background: var(--tinta-hover); } .formulario button:hover svg { transform: translateX(3px); } }
.aviso { min-height: 1.4em; font-size: var(--t-small); font-weight: 600; }

/* ---------- Pie: las dos últimas filas de un tablero ---------- */
.pie { background: var(--noche); padding: 10px; }
.pie-tablero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.pt { border-radius: 14px; padding: 24px; background: var(--noche-3); min-height: 220px; }
.pt-frase { grid-column: 1 / span 4; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.pt-frase p:first-child { font-family: var(--display); font-weight: 700; font-size: var(--t-lead); line-height: 1.15; letter-spacing: -0.015em; max-width: 22ch; }
.pt-legal { font-size: var(--t-small); color: var(--gris); }
.pt-legal a { display: inline-block; padding: 8px 0; }
.pt-nav { grid-column: 5 / span 3; display: grid; align-content: start; }
.pt-nav a { min-height: 32px; display: flex; align-items: center; text-decoration: none; }
.pt-hora { grid-column: 8 / span 2; display: flex; flex-direction: column; justify-content: space-between; }
.pt-hora p:first-child { font-family: var(--display); font-weight: 700; font-size: var(--t-lead); }
.pt-hora p:last-child { color: var(--gris); }
.pt-contacto { grid-column: 10 / span 3; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.pt-contacto a:first-child { font-family: var(--display); font-weight: 700; font-size: var(--t-lead); line-height: 1.2; text-decoration: none; color: var(--cian); }
.pt-contacto a:last-child, .pt-contacto a[href^="mailto:"] { min-height: 44px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.pt-marca { grid-column: 1 / span 8; min-height: 320px; display: grid; place-items: center; background: var(--papel); color: var(--tinta); font-family: var(--display); font-weight: 800; font-size: var(--t-display); letter-spacing: -0.06em; line-height: 0.8; }
.pt-accion { grid-column: 9 / span 4; min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; background: var(--cian); color: var(--tinta); text-decoration: none; transition: background-color 200ms ease; }
.pt-accion span { font-family: var(--display); font-weight: 800; font-size: var(--t-lead); line-height: 1.05; letter-spacing: -0.02em; max-width: 12ch; }
.pt-accion svg { align-self: flex-end; width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .pt-nav a:hover, .pt-contacto a:last-child:hover { color: var(--cian); } .pt-accion:hover { background: var(--cian-hover); } .pt-accion:hover svg { transform: translateX(6px); } }

/* ---------- Movimiento (solo con JS y sin «reducir movimiento») ---------- */
@media (prefers-reduced-motion: no-preference) {
  .flujo.cambia li { animation: aparece 380ms var(--ease-out) both; animation-delay: calc(var(--n, 0) * 45ms); }
  .js .lineas [data-linea] { animation: sube 900ms var(--ease-out) both; animation-delay: calc(var(--i) * 110ms + 80ms); }
  .js .portada-fila { animation: asoma 700ms var(--ease-out) both 420ms; }
  .js .tiras li { animation: obtura 1100ms var(--ease-out) both; animation-delay: calc(560ms + var(--n, 0) * 90ms); }
  .revela [data-entra] > * { opacity: 0; transform: translateY(24px); }
  .revela [data-entra].visto > * { opacity: 1; transform: none; transition: opacity 640ms var(--ease-out), transform 760ms var(--ease-out); transition-delay: calc(var(--n, 0) * 75ms); }
  .revela .obturador { clip-path: inset(100% 0 0 0); }
  .revela .obturador video { transform: scale(1.12); }
  .revela .obturador.visto { clip-path: inset(0 0 0 0); transition: clip-path 1100ms var(--ease-in-out); }
  .revela .obturador.visto video { transform: none; transition: transform 1400ms var(--ease-out); }
  .revela .flujo-pasos li, .revela .tubo > li { opacity: 0; transform: translateY(18px); }
  .revela .visto .flujo-pasos li, .revela .tubo.visto > li { opacity: 1; transform: none; transition: opacity 560ms var(--ease-out), transform 640ms var(--ease-out); transition-delay: calc(var(--n, 0) * 70ms); }
}
@keyframes sube { from { transform: translateY(105%); } }
@keyframes asoma { from { opacity: 0; transform: translateY(16px); } }
@keyframes obtura { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .flujo-pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flujo-pasos li:nth-child(3)::after { display: none; }
  .tubo { flex-wrap: wrap; row-gap: 10px; }
  .tubo > li:not(.tubo-puerta) { flex-basis: calc(50% - 44px); }
  .app-hechos-fila { grid-auto-flow: row; }
}
@media (max-width: 900px) {
  .barra-enlaces { display: none; }
  .tiras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .servicios, .app, .contacto { grid-template-columns: minmax(0, 1fr); }
  .servicios-fijo, .servicios-lista, .app-alpaso .app-texto, .app-alpaso .app-medio, .app-mesapulso .app-texto, .app-mesapulso .app-medio-par, .contacto-texto, .formulario { grid-column: 1; }
  .servicios-fijo { position: static; margin-bottom: 64px; }
  .app { row-gap: 48px; }
  .app-mesapulso .app-texto { order: -1; }
  .franja { grid-template-columns: minmax(0, 1fr); row-gap: 12px; padding: 40px var(--m); }
  .franja dt, .franja dd { grid-column: 1; }
  .barra-etapas { flex-direction: column; }
  .barra-etapas li { min-width: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; }
  .etapa-tiempo { min-height: calc(56px + var(--g, 1) * 16px); }
  .nosotros-texto { columns: 1; hyphens: manual; }
  .pie-tablero { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .pt { grid-column: auto; min-height: 0; padding: 20px; }
  .pt-marca { grid-column: 1 / -1; order: -2; min-height: 160px; }
  .pt-accion { grid-column: 1 / -1; order: -1; min-height: 160px; }
  .pt-frase { grid-column: 1 / -1; }
  .pt-contacto { grid-column: 1 / -1; }
}

/* ---------- Celular ---------- */
@media (max-width: 720px) {
  .solo-ancho { display: none; }
  .boton-barra { padding: 0 16px; }
  .portada { min-height: 0; }
  .portada-cabeza { padding-top: 32px; }
  .portada-fila { flex-direction: column; align-items: stretch; gap: 24px; }
  .portada-apoyo { font-size: 1.1875rem; }
  .acciones { justify-content: flex-start; }
  .acciones .boton { width: 100%; }
  .tiras a { height: auto; min-height: 210px; padding: 16px 16px 0; }
  .tira-pasos { padding-bottom: 16px; }
  .tira-texto { font-size: 0.875rem; }
  .capitulo { min-height: 0; padding: 88px var(--m); }
  .app-mesapulso .app-medio-par { grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr); gap: 10px; }
  .enfila-cabeza { flex-direction: column; align-items: stretch; }
  .selector { display: flex; flex-wrap: wrap; border-radius: 24px; }
  .selector button { flex: 1 1 auto; }
  .selector[hidden] { display: none; }
  .selector button { padding: 0 6px; }
  .flujo-pasos { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .flujo-pasos li { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px; }
  .flujo-pasos b { overflow-wrap: anywhere; }
  .flujo-pasos li::after { display: none; }
  .flujo-pasos li:not(:last-child)::before { content: ""; position: absolute; left: 28px; bottom: -8px; width: 3px; height: 8px; background: var(--papel); }
  .tubo { flex-direction: column; }
  .tubo > li:not(.tubo-puerta) { flex-basis: auto; min-height: 0; }
  .tubo .tubo-puerta { width: auto; height: 40px; }
  .tubo .tubo-puerta::before { left: 50%; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .tubo .tubo-puerta span { writing-mode: horizontal-tb; transform: none; padding: 5px 12px; }
  .barra-etapas li { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .barra-etapas li + li { margin-top: 18px; }
  .cifras { gap: 16px 32px; }
  .preguntas-cabeza { min-height: 30svh; }
}

/* ---------- Celulares chicos (320 a 360 px): el título se ajusta al ancho ---------- */
@media (max-width: 360px) {
  .portada h1 { font-size: 8.6vw; }
  .boton { white-space: normal; text-align: center; line-height: 1.3; padding: 12px 20px; }
}
