/* SGA Lince · web comercial
   Idea: una nave vista en plano. Marino de noche, el ambar de las cajas (que es
   el de la marca) y el verde de lo que ya esta en SAP. Las letras, de rotulo
   de nave: Archivo ancha para titulares y una monoespaciada para codigos. */

@font-face {
  font-family: 'Archivo';
  src: url('/fuentes/archivo-var.woff2') format('woff2-variations'), url('/fuentes/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/fuentes/plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --noche: #0B1D38;
  --marino: #13294B;
  --azul: #274B7A;
  --azul-claro: #4B6FA5;
  --niebla: #9DB0CA;
  --hielo: #EAF1FA;
  --ambar: #FFB627;
  --ambar-fuerte: #E09A00;
  --verde: #16a34a;
  --verde-vivo: #22C55E;
  --rojo: #DC2626;
  --papel: #F6F4EF;
  --papel-2: #ECE7DC;
  --linea: #DCD5C6;
  --tinta: #13294B;
  --tinta-suave: #44587A;
  --mono: 'Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --texto: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radio: 16px;
  --sombra: 0 1px 2px rgba(11, 29, 56, .06), 0 12px 32px rgba(11, 29, 56, .10);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font-family: var(--texto); font-size: 18px; line-height: 1.6;
  font-stretch: 100%; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 780; font-stretch: 112%; }
h3 { font-size: 24px; font-weight: 720; font-stretch: 106%; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.envoltorio { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.tenue { color: var(--tinta-suave); font-size: 15px; }
.saltar { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ambar); color: var(--noche); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.saltar:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 3px; border-radius: 6px; }

.etiqueta-mono {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ambar-fuerte); margin-bottom: 18px;
}
.punto-vivo { width: 9px; height: 9px; border-radius: 50%; background: var(--verde-vivo); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: latido 2s infinite; }
@keyframes latido { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* ── Botones ─────────────────────────────────────────────────────────────── */

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 2px solid transparent;
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.boton:hover { transform: translateY(-2px); }
.boton:active { transform: translateY(0); }
.boton-grande { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.boton-ambar { background: var(--ambar); color: var(--noche); box-shadow: 0 8px 24px rgba(255, 182, 39, .28); }
.boton-ambar:hover { background: #FFC24A; box-shadow: 0 12px 30px rgba(255, 182, 39, .38); }
.boton-hueco { border-color: currentColor; color: inherit; background: transparent; }
.boton-hueco:hover { background: rgba(255, 255, 255, .08); }

/* ── Barra ───────────────────────────────────────────────────────────────── */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 14px max(24px, calc((100vw - 1220px) / 2 + 24px));
  color: var(--hielo); transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav.solida { background: rgba(11, 29, 56, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); padding-top: 10px; padding-bottom: 10px; }
.nav-marca img { height: 36px; width: auto; }
.nav-enlaces { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 600; }
.nav-enlaces a { text-decoration: none; opacity: .82; position: relative; }
.nav-enlaces a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--ambar); transform: scaleX(0); transition: transform .25s ease; transform-origin: left; }
.nav-enlaces a:hover { opacity: 1; }
.nav-enlaces a:hover::after { transform: scaleX(1); }
.nav-cta { min-height: 42px; padding: 8px 18px; font-size: 15px; }
@media (max-width: 900px) { .nav-enlaces { display: none; } .nav-cta { margin-left: auto; } }

/* ── Portada ─────────────────────────────────────────────────────────────── */

.portada { position: relative; background: var(--noche); color: var(--hielo); padding: 132px 0 28px; overflow: hidden; isolation: isolate; }
.plano {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(157, 176, 202, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 176, 202, .07) 1px, transparent 1px),
    linear-gradient(rgba(157, 176, 202, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 176, 202, .05) 1px, transparent 1px);
  background-size: 200px 200px, 200px 200px, 40px 40px, 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 40%, transparent 100%);
  animation: plano 40s linear infinite;
}
@keyframes plano { to { background-position: 200px 200px, 200px 200px, 40px 40px, 40px 40px; } }

.portada-rejilla { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, .68fr); gap: 48px; align-items: center; }
.portada h1 { font-size: clamp(40px, 4.9vw, 70px); font-weight: 820; font-stretch: 112%; letter-spacing: -.025em; line-height: 1; margin-bottom: 26px; }
/* El subrayado va de fondo y no con ::after: asi acompaña a cada linea si el titular parte. */
.subrayado {
  color: var(--ambar); padding-bottom: .08em;
  background: repeating-linear-gradient(90deg, var(--ambar) 0 18px, transparent 18px 26px) 0 100% / 100% .08em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  animation: traza 1.4s .4s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes traza { from { background-size: 0 .08em; } }
.entradilla { font-size: clamp(18px, 1.6vw, 21px); color: #C9D6E8; max-width: 620px; }
.portada-botones { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }
.portada-datos { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; color: var(--niebla); }
.portada-datos li { display: flex; align-items: center; gap: 8px; }
.portada-datos li + li::before { content: ''; width: 5px; height: 5px; background: var(--ambar); border-radius: 1px; transform: rotate(45deg); margin-right: 18px; }
.portada-datos b { color: var(--hielo); font-weight: 750; }
.pie-ilustracion { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: #5F78A0; text-align: center; margin-top: 12px; }
@media (max-width: 960px) { .portada-rejilla { grid-template-columns: 1fr; } }

/* La PDA */
.pda-escena { display: flex; flex-direction: column; align-items: center; perspective: 1400px; }
.pda {
  position: relative; width: 300px; padding: 26px 14px 22px; border-radius: 40px;
  background: linear-gradient(160deg, #1d2a3e, #0a1220 70%); border: 1px solid #2c3d58;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 6px rgba(255, 255, 255, .02);
  transform: rotateY(-14deg) rotateX(4deg) rotateZ(2deg);
  animation: flota 7s ease-in-out infinite;
}
@keyframes flota { 50% { transform: rotateY(-10deg) rotateX(2deg) rotateZ(1deg) translateY(-10px); } }
.pda-ventana { position: absolute; top: -10px; left: 50%; width: 120px; height: 18px; margin-left: -60px; border-radius: 9px 9px 4px 4px; background: #111b2b; border: 1px solid #2c3d58; }
.pda-ventana i { position: absolute; inset: 4px 14px; border-radius: 4px; background: #3a1418; transition: background .1s, box-shadow .1s; }
.pda.lee .pda-ventana i { background: #FF5A5A; box-shadow: 0 0 18px 6px rgba(255, 90, 90, .7), 0 -40px 40px 10px rgba(255, 90, 90, .18); }
.pda-pantalla { position: relative; overflow: hidden; border-radius: 18px; background: #f2f5f9; color: var(--tinta); min-height: 470px; display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
.pda-barra { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; justify-items: center; background: var(--marino); padding: 9px 10px; }
.pda-volver { color: var(--niebla); font-size: 16px; }
.pda-barra img { height: 20px; width: auto; }
.pda-titulo { background: var(--marino); color: #fff; padding: 2px 14px 12px; font-weight: 720; font-size: 15.5px; }
.pda-titulo small { display: block; font-weight: 500; font-size: 12px; color: var(--niebla); }
.pda-escaneo { margin: 10px; display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid #274B7A; border-radius: 10px; padding: 9px 10px; box-shadow: 0 0 0 4px rgba(39, 75, 122, .12); }
.pda-icono { width: 16px; height: 14px; flex: none; background: repeating-linear-gradient(90deg, var(--tinta) 0 2px, transparent 2px 3px, var(--tinta) 3px 4px, transparent 4px 6px); opacity: .8; }
.pda-codigo { font-family: var(--mono); font-size: 12px; color: #7C8AA0; white-space: nowrap; overflow: hidden; }
.pda-codigo.escrito { color: var(--tinta); }
.pda-cursor { width: 2px; height: 15px; background: var(--azul); animation: cursor 1s steps(1) infinite; }
@keyframes cursor { 50% { opacity: 0; } }
.pda-lineas { display: flex; flex-direction: column; gap: 7px; padding: 0 10px; }
.pda-lineas li { position: relative; display: grid; gap: 1px; background: #fff; border: 1px solid #e1e8f1; border-left: 4px solid #c3cfdf; border-radius: 10px; padding: 8px 10px; transition: border-color .3s, transform .3s, box-shadow .3s; }
.pda-lineas li b { font-family: var(--mono); font-size: 12px; }
.pda-lineas li > span { color: var(--tinta-suave); font-size: 12px; }
.pda-lineas em { display: block; height: 5px; border-radius: 9px; background: #e7eef8; margin: 5px 0 3px; overflow: hidden; }
.pda-lineas em i { display: block; height: 100%; width: 0; background: var(--ambar-fuerte); border-radius: 9px; transition: width .35s ease; }
.pda-lineas small { font-size: 11.5px; color: var(--tinta-suave); }
.pda-lineas li.empezada { border-left-color: var(--ambar-fuerte); }
.pda-lineas li.empezada .pda-estado { color: #a55a00; font-weight: 700; }
.pda-lineas li.terminada { border-left-color: var(--verde); }
.pda-lineas li.terminada em i { background: var(--verde); }
.pda-lineas li.terminada .pda-estado { color: var(--verde); font-weight: 700; }
.pda-lineas li.activa { transform: scale(1.02); box-shadow: 0 6px 18px rgba(19, 41, 75, .14); }
.pda-pie { margin-top: auto; padding: 10px; }
.pda-boton { display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 10px; background: #c3cfdf; color: #fff; font-weight: 700; transition: background .3s; }
.pda-boton.listo { background: var(--azul); animation: pulsa 1s ease-in-out 2; }
.pda-boton.pulsado { background: var(--marino); transform: scale(.97); }
@keyframes pulsa { 50% { box-shadow: 0 0 0 6px rgba(39, 75, 122, .25); } }
.pda-aviso { position: absolute; left: 10px; right: 10px; bottom: 60px; padding: 10px 12px; border-radius: 10px; background: var(--verde); color: #fff; font-weight: 700; font-size: 12.5px; transform: translateY(140%); opacity: 0; transition: transform .4s cubic-bezier(.2, .9, .3, 1.2), opacity .3s; }
.pda-aviso::before { content: '✓  '; }
.pda-aviso.ver { transform: none; opacity: 1; }
@media (max-width: 960px) { .pda-escena { margin-top: 10px; } .pda { transform: none; animation: none; } }

/* La nave */
.nave { position: relative; margin-top: 30px; overflow: hidden; }
.nave-lienzo { position: relative; width: max(100%, 980px); aspect-ratio: 1440 / 480; left: 50%; transform: translateX(-50%); }
.nave-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.nave-svg * { transform-box: fill-box; }
.caja-cinta { animation: cinta 12s linear infinite; transform-box: view-box; }
.caja-cinta:nth-child(2) { animation-delay: -3s; }
.caja-cinta:nth-child(3) { animation-delay: -6s; }
.caja-cinta:nth-child(4) { animation-delay: -9s; }
@keyframes cinta {
  0% { transform: translateX(0); opacity: 0; }
  4% { opacity: 1; }
  93% { opacity: 1; }
  100% { transform: translateX(800px); opacity: 0; }
}
.cinta-banda { animation: banda .36s linear infinite; }
@keyframes banda { to { stroke-dashoffset: -24; } }
.rodillo { transform-origin: center; animation: gira .75s linear infinite; }
.rueda { transform-origin: center; animation: gira 1.2s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.flechas-suelo { animation: suelo .6s linear infinite; transform-box: view-box; }
@keyframes suelo { to { transform: translateX(40px); } }
.hueco { animation: hueco 1.6s ease-in-out infinite; }
@keyframes hueco { 50% { stroke-opacity: .25; } }
.ruta-datos { animation: datos 1s linear infinite; }
@keyframes datos { to { stroke-dashoffset: -28; } }

.haz { opacity: .1; animation: laser 3s linear infinite; }
.haz-linea { opacity: .25; animation: laser 3s linear infinite; }
@keyframes laser { 0%, 72% { opacity: .1; } 75%, 80% { opacity: .95; } 86%, 100% { opacity: .1; } }
.arco-luz { animation: luz 3s linear infinite; }
@keyframes luz { 0%, 74% { fill: #FF5A5A; } 76%, 92% { fill: #22C55E; } 94%, 100% { fill: #FF5A5A; } }
.leido { opacity: 0; transform-origin: center; animation: leido 3s ease-out infinite; }
@keyframes leido {
  0%, 75% { opacity: 0; transform: translateY(8px) scale(.6); }
  79% { opacity: 1; transform: translateY(0) scale(1.1); }
  88% { opacity: 1; transform: translateY(-6px) scale(1); }
  96%, 100% { opacity: 0; transform: translateY(-14px) scale(.9); }
}

.carretilla { animation: carretilla 9s ease-in-out infinite; transform-box: view-box; }
@keyframes carretilla {
  0%, 8% { transform: translateX(46px); }
  28%, 46% { transform: translateX(0); }
  72%, 100% { transform: translateX(46px); }
}
.horquilla { animation: horquilla 9s ease-in-out infinite; transform-box: view-box; }
@keyframes horquilla { 0%, 30% { transform: translateY(0); } 38%, 72% { transform: translateY(-18px); } 82%, 100% { transform: translateY(0); } }
.carga { animation: carga 9s ease-in-out infinite; }
@keyframes carga { 0%, 31% { opacity: 0; } 35%, 74% { opacity: 1; } 80%, 100% { opacity: 0; } }
.baliza { animation: baliza .8s steps(1) infinite; }
@keyframes baliza { 50% { fill: #7a4d00; } }
.camion-carga rect { animation: carga-camion 9s ease-in-out infinite; }
.camion-carga rect:nth-child(2) { animation-delay: 3s; }
.camion-carga rect:nth-child(3) { animation-delay: 6s; }
@keyframes carga-camion { 0%, 10% { opacity: 0; } 20%, 85% { opacity: 1; } 95%, 100% { opacity: 0; } }

.sap-tarjeta {
  position: absolute; left: 76%; top: 6%; width: 22%; min-width: 230px;
  background: #fff; color: var(--tinta); border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 182, 39, .4);
}
.sap-cab { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sap-icono { width: 22px; height: 22px; border-radius: 6px; background: var(--azul); position: relative; }
.sap-icono::before, .sap-icono::after { content: ''; position: absolute; left: 5px; right: 5px; height: 4px; border-radius: 3px; background: #fff; }
.sap-icono::before { top: 5px; } .sap-icono::after { bottom: 5px; }
.sap-vivo { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--verde); display: inline-flex; align-items: center; gap: 5px; }
.sap-vivo::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--verde-vivo); animation: latido 2s infinite; }
.sap-cifra { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 8px; }
.sap-cifra b { font-size: 34px; font-weight: 800; font-stretch: 112%; font-variant-numeric: tabular-nums; line-height: 1; }
.sap-cifra b.sube { animation: sube .5s ease; }
@keyframes sube { 30% { color: var(--verde); transform: translateY(-3px); } }
.sap-cifra span { font-size: 12.5px; color: var(--tinta-suave); line-height: 1.2; }
.sap-lista { display: flex; flex-direction: column; gap: 5px; min-height: 96px; }
.sap-lista li { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.25; padding: 6px 8px; border-radius: 8px; background: #f0fdf4; animation: entra .45s cubic-bezier(.2, .9, .3, 1.2); }
.sap-lista li::before { content: '✓'; color: var(--verde); font-weight: 800; }
.sap-lista li small { margin-left: auto; font-family: var(--mono); color: var(--tinta-suave); font-size: 10.5px; }
@keyframes entra { from { opacity: 0; transform: translateY(-10px); } }
@media (max-width: 720px) {
  .nave { padding-bottom: 224px; }
  /* El lienzo es mas ancho que la pantalla y va centrado: su 50% es el centro de la pantalla. */
  .sap-tarjeta { left: 50%; top: calc(100% + 10px); transform: translateX(-50%); width: min(340px, calc(100vw - 32px)); min-width: 0; }
}

/* ── Franja ──────────────────────────────────────────────────────────────── */

.franja { background: var(--ambar); color: var(--noche); padding: 64px 0; position: relative; overflow: hidden; }
.franja::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(11, 29, 56, .06) 0 22px, transparent 22px 44px); animation: rayas 6s linear infinite; }
@keyframes rayas { to { background-position: 124px 0; } }
.franja-texto { position: relative; }
.franja p { font-size: clamp(26px, 3.4vw, 44px); font-weight: 800; font-stretch: 114%; line-height: 1.12; letter-spacing: -.02em; max-width: 1040px; }
.franja span { color: rgba(11, 29, 56, .62); }

/* ── Cabeceras de seccion ────────────────────────────────────────────────── */

section { position: relative; }
.recorrido, .panel, .suelo, .procesos, .equipos, .marcha { padding: 120px 0; }
.cabecera { max-width: 820px; margin-bottom: 64px; }
.cabecera-sub { font-size: 20px; color: var(--tinta-suave); margin-top: 18px; }
.cabecera-oscura h2 span { color: var(--ambar); }

/* ── El recorrido ────────────────────────────────────────────────────────── */

.recorrido-rejilla { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 48px; }
.via-pegajosa { position: sticky; top: 120px; height: min(640px, calc(100vh - 170px)); aspect-ratio: 120 / 640; margin: 0 auto; }
.via-svg { width: 100%; height: 100%; overflow: visible; }
.via-fondo { fill: none; stroke: var(--linea); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 2 12; }
.via-hecha { fill: none; stroke: var(--ambar); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
.estacion circle { fill: var(--papel); stroke: var(--linea); stroke-width: 4; transition: fill .3s, stroke .3s; }
.estacion text { font-family: var(--mono); font-size: 14px; text-anchor: middle; fill: var(--tinta-suave); transition: fill .3s; }
.estacion.hecha circle { fill: var(--ambar); stroke: var(--ambar-fuerte); }
.estacion.hecha text { fill: var(--noche); }
.estacion.ahora circle { fill: var(--noche); stroke: var(--ambar); }
.estacion.ahora text { fill: var(--ambar); }
.via-caja {
  position: absolute; left: 50%; top: calc((20 + var(--p, 0) * 600) / 640 * 100%);
  width: 44px; height: 38px; margin: -19px 0 0 -22px; border-radius: 4px;
  background: linear-gradient(var(--ambar) 0 22%, #FFC95A 22% 26%, var(--ambar) 26%);
  box-shadow: 0 10px 22px rgba(224, 154, 0, .45);
  transform: rotate(calc(var(--p, 0) * 360deg * 3)) ; transition: transform .1s linear;
}
.via-caja::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; margin-left: -3px; background: rgba(224, 154, 0, .8); }
.via-caja span { position: absolute; left: 5px; top: 14px; width: 13px; height: 14px; border-radius: 1px; background: #fff repeating-linear-gradient(90deg, var(--tinta) 0 1px, transparent 1px 2.5px) 2px 2px / 9px 10px no-repeat; }

.pasos { display: flex; flex-direction: column; }
.paso {
  min-height: 62vh; display: flex; flex-direction: column; justify-content: center; gap: 16px;
  padding: 24px 0 24px 32px; border-left: 4px solid transparent; opacity: .32; transition: opacity .5s ease, border-color .5s ease;
}
.paso.ahora { opacity: 1; border-left-color: var(--c); }
.paso-fase { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.paso h3 { font-size: clamp(26px, 3vw, 40px); font-weight: 780; font-stretch: 110%; max-width: 720px; }
.paso p { font-size: 19px; color: var(--tinta-suave); max-width: 680px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--linea); }
@media (max-width: 760px) {
  .recorrido-rejilla { grid-template-columns: 1fr; }
  .via { display: none; }
  .paso { min-height: 0; opacity: 1; padding: 28px 0 28px 20px; border-left-color: var(--c); margin-bottom: 8px; }
}

/* ── Nada se pierde ──────────────────────────────────────────────────────── */

.nada { background: var(--noche); color: var(--hielo); padding: 120px 0; overflow: hidden; }
.nada::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(157, 176, 202, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(157, 176, 202, .05) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.nada .envoltorio { position: relative; }
.nada-rejilla { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 56px; align-items: start; }
.maquina { display: flex; flex-direction: column; gap: 28px; }
.maquina-nodos { display: grid; grid-template-columns: 1fr 44px 1fr 44px 1fr; align-items: center; }
.nodo-rama { display: flex; flex-direction: column; gap: 12px; }
.nodo {
  --e: var(--niebla);
  position: relative; padding: 14px 14px 14px 36px; border-radius: 14px;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(157, 176, 202, .2);
  transition: background .35s, border-color .35s, box-shadow .35s, transform .35s;
}
.nodo b { display: block; font-size: 16.5px; }
.nodo small { display: block; color: var(--niebla); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.nodo-punto { position: absolute; left: 14px; top: 19px; width: 12px; height: 12px; border-radius: 50%; background: rgba(157, 176, 202, .35); transition: background .35s, box-shadow .35s; }
.nodo[data-estado="medias"] { --e: var(--ambar); }
.nodo[data-estado="enviando"] { --e: #60A5FA; }
.nodo[data-estado="contabilizada"] { --e: var(--verde-vivo); }
.nodo[data-estado="rechazada"] { --e: #F87171; }
.nodo.ahora { background: color-mix(in srgb, var(--e) 14%, transparent); border-color: var(--e); box-shadow: 0 0 0 4px color-mix(in srgb, var(--e) 16%, transparent); transform: translateY(-2px); }
.nodo.ahora .nodo-punto { background: var(--e); box-shadow: 0 0 12px var(--e); }
.flecha { position: relative; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, rgba(157, 176, 202, .5) 0 6px, transparent 6px 11px); }
.flecha::after { content: ''; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left-color: rgba(157, 176, 202, .7); border-right: 0; }
.flecha i { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 2px; background: var(--ambar); opacity: 0; }
.flecha.viaja i { animation: viaja .9s ease-in-out; }
@keyframes viaja { 0% { left: 0; opacity: 0; } 12%, 80% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }

.maquina-documento {
  --e: var(--ambar);
  position: relative; background: #fff; color: var(--tinta); border-radius: 18px; padding: 20px 22px;
  border-top: 6px solid var(--e); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); max-width: 560px; transition: border-color .35s;
}
.maquina-documento[data-estado="enviando"] { --e: #3B82F6; }
.maquina-documento[data-estado="contabilizada"] { --e: var(--verde); }
.maquina-documento[data-estado="rechazada"] { --e: var(--rojo); animation: tiembla .4s; }
@keyframes tiembla { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.doc-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.doc-tipo { font-weight: 750; }
.doc-estado { font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--e) 16%, #fff); color: color-mix(in srgb, var(--e) 70%, #000); white-space: nowrap; }
.doc-lineas { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.doc-lineas div { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: #f2f5f9; font-family: var(--mono); font-size: 13.5px; }
.doc-lineas b { font-variant-numeric: tabular-nums; }
.doc-mensaje { margin-top: 14px; font-size: 15px; color: var(--tinta-suave); min-height: 48px; }
.maquina-documento[data-estado="rechazada"] .doc-mensaje { color: var(--rojo); font-weight: 600; }
.maquina-documento[data-estado="contabilizada"] .doc-mensaje { color: var(--verde); font-weight: 600; }
.doc-senal { position: absolute; top: 20px; right: -14px; display: flex; align-items: flex-end; gap: 3px; height: 22px; padding: 6px 8px; border-radius: 10px; background: var(--marino); box-sizing: content-box; }
.doc-senal i { width: 5px; border-radius: 2px; background: var(--verde-vivo); transition: background .3s; }
.doc-senal i:nth-child(1) { height: 8px; } .doc-senal i:nth-child(2) { height: 14px; } .doc-senal i:nth-child(3) { height: 22px; }
.doc-senal.sin i { background: #5F78A0; }
.doc-senal.sin::after { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 3px; background: #F87171; transform: rotate(-35deg); border-radius: 2px; }

.nada-razones { display: flex; flex-direction: column; gap: 22px; }
.nada-razones li { padding-left: 22px; border-left: 3px solid rgba(255, 182, 39, .5); color: #C9D6E8; font-size: 17px; }
.nada-razones b { display: block; color: #fff; font-size: 18px; margin-bottom: 4px; }
@media (max-width: 960px) {
  .nada-rejilla { grid-template-columns: 1fr; }
  .maquina-nodos { grid-template-columns: 1fr; gap: 10px; }
  .flecha { width: 2px; height: 26px; margin: 0 auto; background: repeating-linear-gradient(rgba(157, 176, 202, .5) 0 6px, transparent 6px 11px); }
  .flecha::after { right: -5px; top: auto; bottom: -4px; border: 6px solid transparent; border-top-color: rgba(157, 176, 202, .7); border-bottom: 0; }
  .flecha i { display: none; }
  .nodo-rama { flex-direction: row; } .nodo-rama .nodo { flex: 1; }
  .doc-senal { right: 12px; top: -18px; }
}

/* ── Panel ───────────────────────────────────────────────────────────────── */

.tablero { background: #fff; border-radius: 22px; box-shadow: 0 2px 4px rgba(11, 29, 56, .05), 0 40px 90px rgba(11, 29, 56, .16); border: 1px solid #e1e8f1; overflow: hidden; }
.tablero-barra { display: flex; align-items: center; gap: 14px; padding: 16px 24px; background: var(--marino); color: #fff; }
.tablero-barra span { font-weight: 750; font-stretch: 108%; }
.tablero-barra small { color: var(--niebla); font-size: 14px; }
.tablero-barra em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ambar); border: 1px solid rgba(255, 182, 39, .5); border-radius: 999px; padding: 3px 10px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 24px 24px 8px; }
.kpi { padding: 18px; border-radius: 14px; background: #f2f5f9; }
.kpi b { display: block; font-size: 40px; font-weight: 800; font-stretch: 110%; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 14px; color: var(--tinta-suave); }
.kpi-ambar { background: #fdf0d5; } .kpi-ambar b { color: #a55a00; }
.kpi-rojo { background: #fee2e2; } .kpi-rojo b { color: #b91c1c; }
.fases { display: flex; align-items: stretch; padding: 16px 24px; }
.fase { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 14px; border: 1px solid #e1e8f1; border-top: 5px solid var(--c); background: linear-gradient(color-mix(in srgb, var(--c) 6%, #fff), #fff); }
.fase small { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.fase b { font-size: 17px; }
.fase strong { font-size: 34px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; margin-top: 6px; }
.fase span { font-size: 13px; color: var(--tinta-suave); }
.barrita { display: block; height: 6px; border-radius: 9px; background: #e7eef8; margin-top: 10px; overflow: hidden; }
.barrita i { display: block; height: 100%; width: 0; background: var(--c); border-radius: 9px; transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.tablero.visible .barrita i { width: var(--w); }
.conector { position: relative; width: 34px; align-self: center; height: 4px; background: repeating-linear-gradient(90deg, #c3cfdf 0 6px, transparent 6px 10px); }
.conector i { position: absolute; top: -3px; width: 10px; height: 10px; border-radius: 2px; background: var(--ambar); animation: conector 1.6s linear infinite; }
@keyframes conector { from { left: -6px; } to { left: calc(100% - 4px); } }
.tablero-doble { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 8px 24px 26px; }
.tablero-doble h4 { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 10px 0 12px; }
.equipo { display: flex; flex-direction: column; gap: 10px; }
.equipo li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #f7f9fc; }
.equipo div { flex: 1; min-width: 0; }
.equipo b { display: block; font-size: 15.5px; }
.equipo small { color: var(--tinta-suave); font-size: 13px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; background: var(--a); flex: none; }
.en-linea { width: 10px; height: 10px; border-radius: 50%; background: var(--verde-vivo); box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.en-linea.ambar { background: var(--ambar); box-shadow: 0 0 0 3px rgba(255, 182, 39, .2); }
.tiempo { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 196px; padding-left: 18px; }
.tiempo::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: #e1e8f1; }
.tiempo li { position: relative; display: flex; gap: 12px; align-items: baseline; font-size: 14.5px; animation: entra .5s cubic-bezier(.2, .9, .3, 1.2); }
.tiempo li::before { content: ''; position: absolute; left: -18px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--verde)); box-shadow: 0 0 0 3px #fff; }
.tiempo time { font-family: var(--mono); font-size: 12.5px; color: var(--tinta-suave); flex: none; }
.tiempo small { color: var(--tinta-suave); }
@media (max-width: 860px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .fases { flex-direction: column; gap: 0; }
  .conector { width: 4px; height: 22px; margin: 0 auto; background: repeating-linear-gradient(#c3cfdf 0 6px, transparent 6px 10px); }
  .conector i { left: -3px; animation-name: conector-v; }
  @keyframes conector-v { from { top: -6px; } to { top: calc(100% - 4px); } }
  .tablero-doble { grid-template-columns: 1fr; }
  .tablero-barra small { display: none; }
}

/* ── Hecho para el suelo ─────────────────────────────────────────────────── */

.suelo { background: var(--papel-2); }
.baldosas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.baldosa { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.baldosa:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: var(--ambar); }
.baldosa b { display: block; font-size: 21px; font-stretch: 106%; margin: 18px 0 8px; }
.baldosa p { color: var(--tinta-suave); font-size: 16.5px; }
.b-icono { display: block; width: 56px; height: 56px; border-radius: 14px; background: var(--noche) center / 30px 30px no-repeat; transition: transform .3s ease; }
.baldosa:hover .b-icono { transform: rotate(-6deg) scale(1.06); }
.b-guante { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB627' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 13V5a1.5 1.5 0 013 0v6M11 11V4a1.5 1.5 0 013 0v7M14 11V5.5a1.5 1.5 0 013 0V14c0 4-2.5 7-6 7-2.5 0-4-1.2-5.5-3.5L3.8 14.6a1.5 1.5 0 012.5-1.6L8 15'/%3E%3C/svg%3E"); }
.b-laser { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB627' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6v12M7 6v12M10 6v12M14 6v12M17 6v12M20 6v12'/%3E%3Cpath d='M2 12h20' stroke='%23FF5A5A' stroke-width='2.4'/%3E%3C/svg%3E"); }
.b-tres { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB627' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h7l2 2v3H6z'/%3E%3Cpath d='M6 13l-1 6h3l1-6'/%3E%3Crect x='14' y='4' width='7' height='12' rx='1.5'/%3E%3Cpath d='M14 20h7'/%3E%3C/svg%3E"); }
.b-ojo { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB627' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.b-pin { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB627' stroke-width='2' stroke-linecap='round'%3E%3Crect x='4' y='10' width='16' height='10' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 018 0v3'/%3E%3Cpath d='M9 15h.01M12 15h.01M15 15h.01' stroke-width='3'/%3E%3C/svg%3E"); }
.b-app { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB627' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2.5' width='12' height='19' rx='2.5'/%3E%3Cpath d='M12 7v7M9 11l3 3 3-3'/%3E%3C/svg%3E"); }
@media (max-width: 900px) { .baldosas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .baldosas { grid-template-columns: 1fr; } }

/* ── Procesos ────────────────────────────────────────────────────────────── */

.grupos { columns: 3 300px; column-gap: 18px; }
.grupo { break-inside: avoid; margin-bottom: 18px; background: #fff; border-radius: var(--radio); border: 1px solid var(--linea); border-top: 6px solid var(--c); padding: 22px 22px 18px; }
.grupo h3 { font-size: 20px; display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.grupo h3::after { content: attr(data-n); font-family: var(--mono); font-size: 13px; color: var(--c); }
.grupo li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 16px; border-bottom: 1px dashed var(--linea); transition: transform .2s ease, color .2s; }
.grupo li:last-child { border-bottom: 0; }
.grupo li::before { content: ''; width: 9px; height: 9px; border-radius: 2px; background: var(--c); flex: none; transition: transform .2s; }
.grupo li:hover { transform: translateX(6px); color: var(--c); }
.grupo li:hover::before { transform: rotate(45deg); }

/* ── Produmex ────────────────────────────────────────────────────────────── */

.produmex { background: var(--marino); color: var(--hielo); padding: 96px 0; }
.produmex-rejilla { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.produmex h2 { color: #fff; }
.produmex-texto p:first-child { font-size: 20px; color: #C9D6E8; margin-bottom: 16px; }
.produmex .tenue { color: var(--niebla); }
@media (max-width: 860px) { .produmex-rejilla { grid-template-columns: 1fr; gap: 24px; } }

/* ── Equipos ─────────────────────────────────────────────────────────────── */

.aparatos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.aparato { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 24px; transition: transform .25s, box-shadow .25s; }
.aparato:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.aparato-dibujo { height: 140px; border-radius: 12px; background: var(--papel); display: grid; place-items: center; margin-bottom: 18px; overflow: hidden; }
.aparato-dibujo svg { width: 120px; height: 120px; }
.aparato-dibujo * { transform-box: fill-box; }
.aparato-haz { animation: haz-aparato 2.4s ease-in-out infinite; transform-origin: left center; }
@keyframes haz-aparato { 0%, 60%, 100% { opacity: 0; transform: scaleX(.3); } 70%, 85% { opacity: .7; transform: scaleX(1); } }
.aparato-ok { animation: ok 2.4s ease-in-out infinite; }
@keyframes ok { 0%, 50% { fill: #c3cfdf; } 60%, 100% { fill: #16a34a; } }
.aparato-etiqueta { animation: etiqueta 3s ease-in-out infinite; transform-box: view-box; }
@keyframes etiqueta { 0% { transform: translateY(-34px); opacity: 0; } 15% { opacity: 1; } 60%, 80% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
.aparato-para { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ambar-fuerte); }
.aparato h3 { font-size: 20px; margin: 6px 0 8px; }
.aparato p { font-size: 15.5px; color: var(--tinta-suave); }
@media (max-width: 960px) { .aparatos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .aparatos { grid-template-columns: 1fr; } }

/* ── Seguridad ───────────────────────────────────────────────────────────── */

.seguro { background: var(--papel-2); padding: 110px 0; }
.seguro-rejilla { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.seguro-lista { display: grid; gap: 14px; }
.seguro-lista li { position: relative; padding: 18px 20px 18px 62px; background: var(--papel); border: 1px solid var(--linea); border-radius: 14px; color: var(--tinta-suave); font-size: 16.5px; }
.seguro-lista li::before { content: ''; position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 9px; background: var(--noche) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB627' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 018 0v3'/%3E%3C/svg%3E") center / 18px no-repeat; }
.seguro-lista b { color: var(--tinta); }
@media (max-width: 860px) { .seguro-rejilla { grid-template-columns: 1fr; gap: 28px; } }

/* ── Puesta en marcha ────────────────────────────────────────────────────── */

.marcha-pasos { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.marcha-pasos::before { content: ''; position: absolute; left: 28px; right: 28px; top: 27px; height: 3px; background: repeating-linear-gradient(90deg, var(--linea) 0 10px, transparent 10px 18px); }
.marcha-pasos::after { content: ''; position: absolute; top: 14px; left: 18px; width: 26px; height: 26px; border-radius: 4px; background: var(--ambar); box-shadow: 0 6px 14px rgba(224, 154, 0, .4); animation: marcha 6s ease-in-out infinite; }
@keyframes marcha { 0% { left: 18px; } 25% { left: calc(25% + 12px); } 50% { left: calc(50% + 12px); } 75%, 100% { left: calc(75% + 12px); opacity: 1; } }
.marcha-pasos li { position: relative; z-index: 1; }
.marcha-pasos span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--noche); color: var(--ambar); font-family: var(--mono); font-size: 20px; margin-bottom: 18px; border: 4px solid var(--papel); }
.marcha-pasos b { display: block; font-size: 20px; line-height: 1.2; margin-bottom: 8px; }
.marcha-pasos p { color: var(--tinta-suave); font-size: 16px; }
@media (max-width: 860px) {
  .marcha-pasos { grid-template-columns: 1fr 1fr; }
  .marcha-pasos::before, .marcha-pasos::after { display: none; }
}
@media (max-width: 520px) { .marcha-pasos { grid-template-columns: 1fr; } }

/* ── Contacto ────────────────────────────────────────────────────────────── */

.contacto { background: var(--noche); color: var(--hielo); padding: 120px 0; overflow: hidden; }
.contacto::before { content: ''; position: absolute; width: 700px; height: 700px; right: -200px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 182, 39, .14), transparent 65%); pointer-events: none; }
.contacto-rejilla { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.contacto-texto h2 { color: #fff; margin-bottom: 18px; font-size: clamp(32px, 3.6vw, 48px); }
.contacto-texto > p { font-size: 19px; color: #C9D6E8; }
.probar { margin-top: 32px; padding: 22px; border-radius: 16px; border: 1px dashed rgba(255, 182, 39, .6); background: rgba(255, 182, 39, .06); }
.probar b { color: #fff; font-size: 18px; }
.probar p { color: var(--niebla); font-size: 15px; margin: 4px 0 12px; }
.probar dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 16px; font-family: var(--mono); font-size: 15px; }
.probar dt { color: var(--niebla); }
.probar dd { margin: 0; color: var(--ambar); }

.formulario { background: #fff; color: var(--tinta); border-radius: 22px; padding: 30px; display: grid; gap: 16px; box-shadow: 0 40px 90px rgba(0, 0, 0, .35); }
.fila-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.formulario label { display: block; font-size: 14.5px; font-weight: 650; }
.formulario label > input, .formulario label > select, .formulario label > textarea { display: block; margin-top: 6px; }
.formulario small { font-weight: 450; color: var(--tinta-suave); }
.formulario input:not([type="radio"]):not([type="checkbox"]), .formulario select, .formulario textarea {
  font: inherit; font-size: 16px; font-weight: 450; color: var(--tinta);
  padding: 12px 14px; border-radius: 10px; border: 1.5px solid #d3dbe7; background: #f8fafc; width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.formulario textarea { resize: vertical; min-height: 110px; }
.formulario select { min-height: 52px; }
.formulario input:focus, .formulario select:focus, .formulario textarea:focus { outline: none; border-color: var(--azul); background: #fff; box-shadow: 0 0 0 4px rgba(39, 75, 122, .15); }
.formulario [aria-invalid="true"] { border-color: var(--rojo) !important; }
.opciones { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.opciones legend { font-size: 14.5px; font-weight: 650; padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.opciones label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 16px; }
.formulario input[type="radio"], .formulario input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--azul); flex: none; }
.acepto { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 450 !important; color: var(--tinta-suave); }
.trampa { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulario .boton { width: 100%; }
.formulario .boton[disabled] { opacity: .6; cursor: wait; transform: none; }
.formulario-estado { font-weight: 650; min-height: 1.4em; }
.formulario-estado.bien { color: var(--verde); }
.formulario-estado.mal { color: var(--rojo); }
.legal { font-size: 12.5px; color: var(--tinta-suave); }
.formulario.enviado { text-align: center; padding: 56px 30px; }
.formulario.enviado .gracias b { display: block; font-size: 26px; font-stretch: 108%; margin: 16px 0 8px; }
.formulario.enviado .gracias p { color: var(--tinta-suave); }
.gracias-caja { width: 64px; height: 56px; margin: 0 auto; border-radius: 6px; background: linear-gradient(var(--ambar) 0 22%, #FFC95A 22% 26%, var(--ambar) 26%); position: relative; animation: aterriza .7s cubic-bezier(.2, .9, .3, 1.3); }
.gracias-caja::after { content: '✓'; position: absolute; right: -12px; top: -12px; width: 30px; height: 30px; border-radius: 50%; background: var(--verde); color: #fff; display: grid; place-items: center; font-weight: 800; }
@keyframes aterriza { from { transform: translateY(-60px) rotate(-12deg); opacity: 0; } }
@media (max-width: 900px) { .contacto-rejilla { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fila-2 { grid-template-columns: 1fr; } .formulario { padding: 22px; } }

/* ── Pie ─────────────────────────────────────────────────────────────────── */

.pie { background: #07142A; color: var(--niebla); padding: 44px 0; font-size: 15px; }
.pie-rejilla { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.pie img { height: 34px; width: auto; }
.pie a { color: var(--hielo); }
.pie .tenue { color: #5F78A0; font-size: 13px; margin-left: auto; }

/* ── Aparecer al bajar ───────────────────────────────────────────────────── */

.revelar { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--retraso, 0s); }
.revelar.visible { opacity: 1; transform: none; }

/* ── Menos movimiento ────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revelar { opacity: 1; transform: none; }
  .leido, .carga { opacity: 1; }
  .pda { transform: none; }
}
