/* Página de venta /contenedores — Nqual5. Mismo origen (CSP 'self'): tipografías propias, sin CDNs. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/contenedores/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/contenedores/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/contenedores/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/contenedores/fonts/inter-700.woff2") format("woff2"); }

:root {
  --crema: #faf9f5;
  --crema2: #f3f1ea;
  --tinta: #1c1917;
  --gris: #57534e;
  --borde: #e7e5e4;
  --naranja: #f97316;
  --naranja-hover: #ea580c;
  --naranja-osc: #c2410c;
  --naranja-suave: #fff3e8;
  --oscuro: #141210;
  --oscuro2: #1f1b18;
  --radio: 16px;
  --ancho: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--crema); color: var(--tinta); font-size: 17px; line-height: 1.6;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.just { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
/* Marcas que el diccionario parte mal («OpenS-hift»): sin guion. WhatsApp, por si otro navegador la partiera (Chrome no).
   Kubernetes o Docker sí se parten, por sílabas correctas. */
.marca { hyphens: manual; -webkit-hyphens: manual; }
.envoltura { max-width: var(--ancho); margin: 0 auto; padding: 0 24px; }
.saltar { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--tinta); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.saltar:focus { left: 12px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Foco: naranja oscuro sobre fondo claro (el claro casi no se veía sobre crema) y naranja claro sobre lo oscuro. */
:focus-visible { outline: 3px solid var(--naranja-osc); outline-offset: 3px; border-radius: 6px; }
:is(.cab, .heroe, .oscura, .pie, .barra-movil) :focus-visible, .saltar:focus-visible { outline-color: #fdba74; } /* «Saltar» se pinta sobre la cabecera oscura */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── Botones ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 16.5px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn-pri { background: var(--naranja); color: var(--tinta); box-shadow: 0 8px 24px -10px rgba(249, 115, 22, .75); }
.btn-pri:hover { background: var(--naranja-hover); box-shadow: 0 12px 28px -10px rgba(249, 115, 22, .85); }
@media (hover: hover) and (pointer: fine) { .btn-pri:hover { transform: translateY(-1px); } }
.btn-pri .flecha { transition: transform .2s; }
.btn-pri:hover .flecha { transform: translateX(3px); }
.btn-fantasma { color: #f5f5f4; border-color: rgba(255, 255, 255, .22); }
.btn-fantasma:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .05); }
.btn-chico { min-height: 40px; padding: 9px 18px; font-size: 15px; }

/* ── Cabecera ────────────────────────────────────────── */
.cab {
  position: sticky; top: 0; z-index: 50; background: var(--oscuro);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.cab .envoltura { display: flex; align-items: center; gap: 18px; height: 68px; }
.cab .logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.cab .logo img { height: 40px; width: auto; }
.cab .logo picture { flex: none; }
.cab .logo .nombre { display: none; }
.cab .logo span { font-size: 13.5px; color: #d6d3d1; border-left: 1px solid #44403c; padding-left: 14px; line-height: 1.25; }
.cab nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.cab nav a:not(.btn) { color: #d6d3d1; text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.cab nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .06); }
.cab nav .btn { margin-left: 8px; white-space: nowrap; }

/* ── Héroe ───────────────────────────────────────────── */
.heroe {
  position: relative; overflow: hidden; color: #f5f5f4; background: var(--oscuro);
  background-image:
    radial-gradient(900px 520px at 78% 30%, rgba(249, 115, 22, .16), transparent 65%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}
.heroe::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(transparent, var(--oscuro)); pointer-events: none; }
.heroe .envoltura { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.antetitulo { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fdba74; margin-bottom: 18px; text-wrap: balance; }
.heroe h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; margin-bottom: 22px; text-wrap: balance; }
.heroe h1 em { font-style: normal; color: var(--naranja); }
.heroe .bajada { font-size: 19px; line-height: 1.6; color: #d6d3d1; max-width: 560px; margin-bottom: 30px; }
.heroe .acciones { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.garantias { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 15px; color: #e7e5e4; }
.garantias li { display: flex; align-items: center; gap: 8px; }
.garantias li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background: rgba(249, 115, 22, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.5' fill='none' stroke='%23fb923c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.continuar { margin-top: 22px; font-size: 15px; color: #d6d3d1; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 10px 14px; display: inline-block; }
.continuar[hidden] { display: none; }
.continuar a { color: #fdba74; font-weight: 600; text-decoration: none; }
.continuar a:hover { text-decoration: underline; }

.dibujo { position: relative; }
.hero-svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.hero-svg .losa-top { fill: #292524; stroke: rgba(249, 115, 22, .55); stroke-width: 1.2; }
.hero-svg .losa-izq { fill: #1c1917; }
.hero-svg .losa-der { fill: #100e0d; }
.hero-svg .hueco { fill: rgba(249, 115, 22, .06); stroke: rgba(249, 115, 22, .32); stroke-width: 1; stroke-dasharray: 4 4; }
.hero-svg .barrido { fill: rgba(253, 186, 116, .16); opacity: 0; }
:is(.hero-svg, .empaque-caja, .flujo-centro) .c-top { fill: #fdba74; }
:is(.hero-svg, .empaque-caja, .flujo-centro) .c-izq { fill: #f97316; }
:is(.hero-svg, .empaque-caja, .flujo-centro) .c-der { fill: #c2410c; }
.hero-svg .k-r .c-top { fill: #a8a29e; }
.hero-svg .k-r .c-izq { fill: #78716c; }
.hero-svg .k-r .c-der { fill: #57534e; }
:is(.hero-svg, .empaque-caja, .flujo-centro) .costilla { fill: none; stroke: rgba(0, 0, 0, .16); stroke-width: 1.6; }
.hero-svg .etq { fill: #431407; font: 700 14px "Inter", system-ui, sans-serif; letter-spacing: .01em; }
.hero-svg .k-r .etq { fill: #1c1917; }
.hero-svg .luz { stroke: rgba(0, 0, 0, .25); stroke-width: .8; }
.hero-svg .l-v { fill: #4ade80; }
.hero-svg .l-a { fill: #facc15; }
.hero-svg .l-r { fill: #f87171; }
/* VB6 (luz roja) no entra en la plataforma: queda en el suelo, a un lado (.aparte: un paso fuera y 14,7 más abajo,
   el grueso de la losa), con la flecha que sale de su casilla vacía y el rótulo «otro camino», como en el semáforo.
   La caída sigue en .caja; el desplazamiento va en el grupo de fuera para que la animación no lo pise. */
.hero-svg .desvio-linea { fill: none; stroke: #f87171; stroke-width: 1.6; stroke-dasharray: 4 4; stroke-linecap: round; }
.hero-svg .desvio-punta { fill: #f87171; }
.hero-svg .desvio-t { fill: #fca5a5; font: 700 12.5px "Inter", system-ui, sans-serif; letter-spacing: .12em; }
.leyenda { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 8px; font-size: 13px; color: #a8a29e; }
.leyenda span { display: inline-flex; align-items: center; gap: 7px; }
.leyenda i { width: 9px; height: 9px; border-radius: 50%; }

/* ── Secciones ───────────────────────────────────────── */
.seccion { padding: 96px 0; }
.seccion.clara2 { background: var(--crema2); }
.seccion.oscura { background: var(--oscuro); color: #f5f5f4; }
.cabeza { max-width: 720px; margin-bottom: 44px; }
.cabeza .antetitulo { color: var(--naranja-osc); font-size: 18.5px; } /* explícito: antes lo daba `.cabeza p` */
.oscura .cabeza .antetitulo { color: #fdba74; }
h2 { font-size: clamp(29px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; margin-bottom: 14px; text-wrap: balance; }
.cabeza p { font-size: 18.5px; color: var(--gris); }
.oscura .cabeza p { color: #d6d3d1; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; font-weight: 600; margin-bottom: 8px; text-wrap: balance; }

.rejilla { display: grid; gap: 16px; }
.r3 { grid-template-columns: repeat(3, 1fr); }
.r2 { grid-template-columns: repeat(2, 1fr); }


.tarjeta { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 24px; }
.tarjeta p { color: var(--gris); font-size: 16px; }
.remate { margin-top: 32px; max-width: 38em; font-size: 18.5px; color: #3f3a36; }
.remate b { color: var(--tinta); }

/* ── Escenas: un dibujo por apartado que enseña el problema antes de leerlo ─────────────────────────────
   Quieta, cada escena muestra el fotograma que explica el problema: es lo que se ve con «reducir movimiento» o si
   venta.js no carga. Con movimiento, venta.js pone .js-escenas en <html> y .activa en cada escena mientras se ve;
   fuera de pantalla todo queda en pausa. Solo se animan transform y opacity, y las vueltas son contadas: al
   terminar, cada escena descansa en su fotograma explicativo (nada sigue moviéndose mientras se lee). */
:root { --curva: cubic-bezier(.2, .8, .2, 1); --curva-mover: cubic-bezier(.45, 0, .25, 1); --verde-osc: #15803d; --rojo-osc: #b91c1c; }
.js-escenas .escena { --juego: paused; }
.js-escenas .escena.activa { --juego: running; }
/* !important: la forma corta `animation:` de una regla más específica volvía a poner en marcha la animación. */
html.js-escenas .escena *, html.js-escenas .escena ::before, html.js-escenas .escena ::after { animation-play-state: var(--juego, paused) !important; }

.escena-svg { width: 100%; height: auto; overflow: visible; }
.escena-svg text { font-family: "Inter", system-ui, sans-serif; }
.e-suelo { stroke: #d6d3d1; stroke-width: 1.5; stroke-linecap: round; }
.e-caja { fill: #fff; stroke: var(--tinta); stroke-width: 1.6; stroke-linejoin: round; }
.e-caja-n { fill: var(--naranja-suave); stroke: var(--naranja-osc); stroke-width: 1.6; stroke-linejoin: round; }
.e-gris { fill: #e7e5e4; }
.e-gris-o { fill: #d6d3d1; }
.e-gris-l { fill: #f5f5f4; stroke: #a8a29e; stroke-width: 1.4; }
.e-linea { fill: none; stroke: var(--tinta); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.e-linea-g { fill: none; stroke: var(--tinta); stroke-width: 3; stroke-linecap: round; }
.e-fino { fill: none; stroke: #a8a29e; stroke-width: 1.3; stroke-linecap: round; }
.e-guion { fill: none; stroke: #a8a29e; stroke-width: 1.4; stroke-dasharray: 3 4; stroke-linecap: round; }
.e-hilo { stroke: var(--naranja); stroke-width: 2; stroke-linecap: round; }
.e-naranja { fill: var(--naranja); }
.e-naranja-osc { fill: var(--naranja-osc); }
.e-verde { fill: #22c55e; }
.e-rojo { fill: #ef4444; }
.e-cinta { fill: #facc15; stroke: var(--tinta); stroke-width: 1.2; }
.e-t { font-size: 8.5px; font-weight: 600; letter-spacing: .08em; fill: var(--gris); }
.e-t-osc { fill: var(--tinta); }
.e-t-cinta { font-size: 8px; font-weight: 700; letter-spacing: .16em; fill: var(--tinta); }
.e-t-blanco { font-size: 13px; font-weight: 700; fill: #fff; }
.e-cursor { fill: var(--tinta); stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; }
.e-luna { fill: #a8a29e; }
.e-cap { stroke: var(--naranja-osc); stroke-width: 1.4; stroke-dasharray: 5 4; }
.e-area { fill: rgba(249, 115, 22, .12); }
.e-uso { fill: none; stroke: var(--naranja); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.e-barrido { stroke: var(--tinta); stroke-width: 1.2; stroke-dasharray: 2 3; opacity: 0; }
.e-blanco { stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.e-ok { fill: none; stroke: var(--verde-osc); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.e-mal { fill: none; stroke: var(--rojo-osc); stroke-width: 2.2; stroke-linecap: round; }
.e-duda-chica { font-size: 12px; font-weight: 700; fill: #a16207; }
.e-lupa { fill: rgba(255, 255, 255, .7); stroke: var(--tinta); stroke-width: 2; }
.e-moneda { fill: #fde68a; stroke: #ca8a04; stroke-width: 1.3; }
.e-t-moneda { font-size: 9px; font-weight: 700; fill: #92400e; }
.e-alerta { font-size: 17px; font-weight: 800; fill: var(--rojo-osc); }
/* Fotograma quieto de cada escena (el que explica el problema). */
.p2-duda { opacity: 1; }
.p2-persona { opacity: .3; }
.p2-hilo { opacity: .25; }
.p3-archivo { transform: translate(44px, -26px); }
.p6-moneda { transform: translateY(14px); } /* quietas, apoyadas en su servidor, como al acabar la animación */
.p4-tapa { display: none; fill: var(--crema2); transform-box: fill-box; transform-origin: 100% 50%; }
.p1-rack, .p2-duda, .p4-caida { transform-box: fill-box; transform-origin: 50% 100%; }
.p2-duda, .p4-caida { transform-origin: center; }

/* Las cajas isométricas del héroe, en pequeño (empaque y tecnologías). */
:is(.empaque-caja, .flujo-centro) svg { overflow: visible; filter: drop-shadow(0 12px 14px rgba(28, 25, 23, .18)); }
:is(.empaque-caja, .flujo-centro) .luz-v { fill: #4ade80; stroke: rgba(0, 0, 0, .25); stroke-width: .8; }

/* ── «¿Le suena alguno de estos?»: seis escenas ─── */
.problema { padding: 10px 10px 22px; }
.problema .escena { background: var(--crema2); border-radius: 10px; padding: 14px 12px 8px; margin-bottom: 18px; }
.problema h3, .problema p { padding: 0 12px; }
.deslice { display: none; }
.problemas:focus-visible { outline-offset: 6px; }
.empaque {
  margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) 56px auto 56px minmax(0, 1fr); align-items: center; gap: 14px;
  padding: 24px 26px; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio);
}
.empaque ul { list-style: none; display: grid; gap: 8px; }
.empaque li { border: 1.5px dashed #d6d3d1; border-radius: 10px; padding: 8px 12px; font-size: 15px; font-weight: 500; text-align: center; background: var(--crema); }
.empaque .destinos li { border: 1px solid var(--borde); background: #fff; }
.empaque .destinos li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-right: 8px; vertical-align: 1px; }
.empaque-flecha { position: relative; height: 0; border-top: 2px dashed var(--naranja); transform-origin: left center; }
.empaque-flecha::after { content: ""; position: absolute; right: -2px; top: -7px; border: 6px solid transparent; border-left: 8px solid var(--naranja); border-right: 0; }
.empaque-caja { display: grid; justify-items: center; gap: 10px; text-align: center; }
.empaque-caja svg { width: 92px; height: auto; }
.empaque-caja b { font-size: 15px; font-weight: 600; }
.empaque .piezas li:nth-child(2), .empaque .destinos li:nth-child(2) { --k: 1; }
.empaque .piezas li:nth-child(3), .empaque .destinos li:nth-child(3) { --k: 2; }

/* ── Fechas: el calendario con la cuenta de días y la factura que sube ─── */
.tarjeta.fecha { padding: 10px 10px 24px; }
.tarjeta.fecha h3, .tarjeta.fecha > p { padding: 0 14px; }
.fecha-visual { display: flex; align-items: center; justify-content: center; gap: 26px; min-height: 212px; background: var(--crema2); border-radius: 10px; padding: 20px 18px 26px; margin-bottom: 18px; overflow: hidden; }
.calendario { position: relative; flex: none; width: 104px; border-radius: 12px; background: #fff; border: 1.5px solid var(--tinta); box-shadow: 0 12px 22px -14px rgba(28, 25, 23, .4); text-align: center; }
.cal-mes { display: block; background: var(--naranja-osc); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 0; border-radius: 10px 10px 0 0; }
.cal-dia { display: block; font-size: 50px; font-weight: 700; line-height: 1; letter-spacing: -.04em; padding: 10px 0 16px; }
.cal-sello { position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%) rotate(-8deg); white-space: nowrap; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rojo-osc); border: 2px solid var(--rojo-osc); border-radius: 6px; padding: 3px 8px; background: #fff; }
.cuenta { display: grid; gap: 2px; }
.cuenta[hidden] { display: none; }
.cuenta-pre { font-size: 15px; color: var(--gris); font-weight: 500; }
.cuenta-fila { display: flex; align-items: baseline; gap: 8px; }
.cuenta-num { font-size: 58px; line-height: 1; font-weight: 700; letter-spacing: -.04em; color: var(--naranja-osc); font-variant-numeric: tabular-nums; }
.cuenta-txt { font-size: 18px; font-weight: 600; }
.cuenta small { font-size: 13px; color: var(--gris); margin-top: 2px; }
.factura { position: relative; width: 224px; height: 172px; overflow: hidden; }
.factura::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 9px; border-radius: 5px; background: var(--tinta); }
.factura-papel { position: absolute; left: 14px; right: 14px; top: 5px; display: grid; gap: 7px; padding: 14px 14px 12px; background: #fff; border: 1.5px solid var(--tinta); border-top: 0; border-radius: 0 0 6px 6px; }
.factura-tit { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.factura-renglon { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.factura-renglon em, .factura-total em { font-style: normal; }
.factura-renglon i { flex: 1; border-bottom: 1.5px dotted #d6d3d1; }
.factura-total { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 10px; align-items: center; margin-top: 2px; padding-top: 8px; border-top: 1.5px solid var(--tinta); font-size: 11.5px; font-weight: 600; color: var(--gris); }
.barra { display: block; height: 10px; border-radius: 5px; transform-origin: left center; }
.b-antes { width: 42%; background: #d6d3d1; }
.b-renovar { width: 100%; background: var(--naranja); }

/* ── Cómo trabajamos: un camino que se recorre al bajar ─── */
.pasos { list-style: none; position: relative; counter-reset: paso; margin-top: 34px; scroll-margin-top: 36px; }
.pasos::before, .pasos::after { content: ""; position: absolute; z-index: 0; left: 19px; top: 20px; bottom: 0; width: 2px; border-radius: 1px; }
.pasos::before { background: rgba(255, 255, 255, .13); }
.pasos::after { background: var(--naranja); transform-origin: top; transform: scaleY(var(--avance, 1)); }
/* Las transiciones del camino se encienden un fotograma después de cargar (.listo): si no, arrancaban fuera de pantalla. */
.recorrido.listo::after { transition: transform .8s var(--curva); }
.recorrido.listo li::before { transition: background .4s, color .4s, box-shadow .4s; }
.pasos li { counter-increment: paso; position: relative; padding: 0 0 38px 64px; }
.pasos li:last-child { padding-bottom: 0; }
.pasos li:last-child::after { content: ""; position: absolute; z-index: 1; left: 12px; top: 40px; bottom: 0; width: 16px; background: var(--oscuro); } /* corta la línea bajo el último número */
.pasos li::before {
  content: counter(paso); position: absolute; z-index: 2; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 16px; color: var(--tinta); background: var(--naranja); box-shadow: 0 0 0 6px var(--oscuro);
}
.pasos h3 { color: #fff; padding-top: 8px; margin-bottom: 3px; }
.pasos .etiqueta + h3 { padding-right: 92px; }
.pasos p { color: #d6d3d1; font-size: 16px; max-width: 34em; }
.pasos .etiqueta { position: absolute; top: 9px; right: 0; font-size: 12px; font-weight: 600; color: #fdba74; background: rgba(249, 115, 22, .12); border-radius: 999px; padding: 4px 10px; }
.pasos .tramo { position: absolute; top: -27px; left: 64px; right: 0; display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: #a8a29e; }
.pasos .tramo::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .1); }
.pasos li:nth-child(3) { margin-top: 10px; }
.como-indicador { display: none; }
/* Con venta.js y movimiento: los pasos por llegar en gris, el actual con anillo y los de atrás en naranja. */
.recorrido li::before { background: #292524; color: #a8a29e; box-shadow: 0 0 0 6px var(--oscuro), inset 0 0 0 1.5px #57534e; }
.recorrido li.hecho::before { background: var(--naranja); color: var(--tinta); box-shadow: 0 0 0 6px var(--oscuro); }
.recorrido li.actual::before { background: var(--naranja); color: var(--tinta); box-shadow: 0 0 0 6px var(--oscuro), 0 0 0 9px rgba(249, 115, 22, .4); }
.recorrido.listo li > * { transition: opacity .5s; }
.recorrido li:not(.hecho):not(.actual) > :not(.tramo) { opacity: .62; }

/* ── Semáforo: las aplicaciones pasan por el diagnóstico y salen con su color ─── */
.c-verde { --c: var(--verde-osc); --ct: #fff; --co: var(--verde-osc); }
.c-ambar { --c: #facc15; --ct: var(--tinta); --co: #a16207; }
.c-rojo { --c: var(--rojo-osc); --ct: #fff; --co: var(--rojo-osc); }
.escaner { display: grid; gap: 12px; padding: 34px 22px 20px; margin-bottom: 18px; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); }
.escaner-carril { display: grid; grid-template-columns: minmax(0, 1fr) 7.4em; gap: 16px; align-items: center; }
.pista { position: relative; height: 34px; container-type: inline-size; border-bottom: 1.5px dashed #e7e5e4; }
.pista::before { content: ""; position: absolute; z-index: 2; left: 50%; top: -7px; bottom: -7px; width: 12px; margin-left: -6px; background: var(--tinta); border-radius: 3px; }
.pista::after { content: ""; position: absolute; z-index: 3; left: 50%; top: -7px; bottom: -7px; width: 2px; margin-left: -1px; background: var(--naranja); }
.escaner-rotulo { position: absolute; z-index: 2; left: 50%; top: -30px; transform: translateX(-50%); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); white-space: nowrap; }
.ficha {
  position: absolute; z-index: 1; left: 0; top: 2px; width: 6.6em; height: 28px; display: grid; place-items: center; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--gris); background: #fff; border: 1.5px solid #d6d3d1; left: auto; right: 0;
}
/* Con unidades de contenedor (casi todos), la ficha se mueve por transform; sin ellas (Safari < 16) se queda quieta a la derecha. */
@supports (width: 1cqw) { .ficha { left: 0; right: auto; transform: translateX(calc(100cqw - 100%)); } }
.ficha::after { content: attr(data-t); position: absolute; inset: -1.5px; display: grid; place-items: center; border-radius: inherit; background: var(--c); color: var(--ct); }
.escaner-carril em { font-style: normal; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--co); }
.escaner-carril em::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.semaforo .tarjeta { background: color-mix(in srgb, var(--c) 5%, #fff); border-color: color-mix(in srgb, var(--c) 30%, var(--borde)); }
.semaforo .foco { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; margin-bottom: 10px; color: var(--tinta); }
.semaforo .foco i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 18%, transparent); }
.semaforo ul { list-style: none; margin-top: 12px; display: grid; gap: 6px; }
.semaforo li { font-size: 15px; color: var(--gris); padding-left: 16px; position: relative; text-align: justify; hyphens: auto; }
.semaforo li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }

/* En escritorio, el título y el escáner lado a lado (la tarjeta del escáner ya no queda vacía a la izquierda). */
@media (min-width: 981px) {
  .sem-arriba { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 0 56px; align-items: center; margin-bottom: 18px; }
  .sem-arriba .cabeza, .sem-arriba .escaner { margin-bottom: 0; }
}
/* «Ver detalle» de los pasos largos y del alcance: lo esencial a la vista, el resto a un clic. */
.pasos .detalle summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 600; color: #fdba74; }
.pasos .detalle summary::-webkit-details-marker { display: none; }
.pasos .detalle summary::after { content: "+"; font-size: 18px; line-height: 1; transition: transform .25s var(--curva); }
.pasos .detalle[open] summary::after { transform: rotate(45deg); }
.pasos .detalle p { margin-bottom: 4px; }
.alcance-ver { margin-top: 16px; text-align: center; }
.ver-detalle { min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid #d6d3d1; background: #fff; font: inherit; font-size: 15px; font-weight: 600; color: var(--tinta); cursor: pointer; transition: border-color .2s; }
.ver-detalle:hover { border-color: var(--naranja-osc); }
.ver-detalle::after { content: " +"; color: var(--naranja-osc); }
.ver-detalle[aria-expanded="true"]::after { content: " −"; }
.plegado .det { display: none; }

/* ── Tecnologías: de dónde vienen → el contenedor → a dónde van ─── */
.flujo { display: grid; grid-template-columns: minmax(0, 1fr) 64px 196px 64px minmax(0, 1fr); align-items: center; }
.flujo-col { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 22px; }
:is(.flujo, .heredadas-caja) h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); font-weight: 600; margin-bottom: 12px; }
.flujo .pastillas + h3 { margin-top: 20px; }
.pastillas { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.pastillas li { background: #fff; border: 1px solid var(--borde); border-radius: 999px; padding: 7px 14px; font-size: 15px; font-weight: 500; }
.pastillas.destino li { background: var(--naranja-suave); border-color: #fed7aa; color: #7c2d12; font-weight: 600; }
.pastillas.donde { margin-top: 10px; }
.pastillas.heredadas li { border-style: dashed; color: var(--gris); }
.flujo-tubo { position: relative; height: 0; margin: 0 10px 0 4px; border-top: 3px dashed #fdba74; }
.flujo-tubo::after { content: ""; position: absolute; right: -9px; top: -8.5px; border: 7px solid transparent; border-left: 9px solid #fb923c; border-right: 0; }
.flujo-tubo i { position: absolute; left: 0; top: -7.5px; width: 12px; height: 12px; border-radius: 50%; background: var(--naranja); box-shadow: 0 0 0 3px rgba(249, 115, 22, .18); }
.flujo-tubo i:nth-child(2) { transform: translateX(18px); }
.flujo-tubo i:nth-child(3) { transform: translateX(36px); }
.flujo-centro { display: grid; justify-items: center; gap: 12px; text-align: center; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.flujo-centro svg { width: 112px; height: auto; }
.heredadas-caja { margin-top: 18px; padding: 20px 22px; border: 1.5px dashed #d6d3d1; border-radius: var(--radio); }
.heredadas-caja .nota { font-size: 15.5px; color: var(--gris); margin-top: 12px; max-width: 40em; }

/* ── Alcance: sí y no, de un vistazo ─── */
.alcance .tarjeta h3 { display: flex; align-items: center; gap: 12px; font-size: 21px; margin-bottom: 16px; }
.alcance .tarjeta h3::before { content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: center / 20px no-repeat; }
.alcance ul { list-style: none; display: grid; gap: 11px; }
.alcance li { position: relative; padding-left: 30px; font-size: 16px; color: var(--gris); text-align: justify; hyphens: auto; }
.alcance .tarjeta li b { color: var(--tinta); font-weight: 600; }
.alcance li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: center / 12px no-repeat; }
.alcance .si :is(h3, li)::before { background-color: #dcfce7; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.3 2.3L9.6 3.6' fill='none' stroke='%2315803d' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.alcance .no :is(h3, li)::before { background-color: #fee2e2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.3 3.3l5.4 5.4M8.7 3.3L3.3 8.7' fill='none' stroke='%23b91c1c' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cotizamos { margin-top: 18px; background: var(--naranja-suave); border: 1px solid #fed7aa; border-radius: var(--radio); padding: 26px; }
.cotizamos h3 { color: #7c2d12; margin-bottom: 20px; }
.cotiza { list-style: none; counter-reset: cot; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 36px; }
.cotiza li { counter-increment: cot; position: relative; padding-left: 48px; }
.cotiza li::before { content: counter(cot); position: absolute; left: 0; top: -3px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid #fdba74; color: #9a3412; font-weight: 700; font-size: 14px; }
.cotiza b { display: block; color: #7c2d12; font-size: 16.5px; margin-bottom: 3px; }
.cotiza p { color: #5b3a1e; font-size: 15.5px; }

/* ── Preguntas frecuentes ─── */
.preguntas { max-width: 860px; }
.preguntas details { border-bottom: 1px solid var(--borde); }
.preguntas summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 22px 4px; font-size: 18.5px; font-weight: 600; letter-spacing: -.01em;
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1px solid var(--borde);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M10 15h10M15 10v10' stroke='%23c2410c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform .25s var(--curva);
}
.preguntas details[open] summary::after { transform: rotate(45deg); }
.preguntas summary:hover { color: var(--naranja-osc); }
.preguntas .resp { padding: 0 4px 22px; color: var(--gris); font-size: 16.5px; max-width: 38em; }

/* ── Llamada final ─── */
.final { text-align: center; }
.final h2 { max-width: 760px; margin: 0 auto 16px; }
.final p { max-width: 620px; margin: 0 auto 30px; color: #d6d3d1; font-size: 18.5px; }
.final p.just { text-align-last: center; } /* justificado, con la última línea centrada como el resto */
.final .garantias { justify-content: center; margin-top: 22px; }

/* Pie */
.pie { background: var(--oscuro); color: #a8a29e; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, .07); }
.pie .envoltura { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 26px; padding-bottom: 26px; }
.pie a { color: #d6d3d1; display: inline-block; padding: 12px 0; margin: -12px 0; } /* 44 px para el dedo sin mover nada */

/* Barra fija en el celular */
.barra-movil { display: none; }

/* «¿Prefiere hablar primero?» por WhatsApp: héroe y llamada final (los dos sobre fondo oscuro). */
p.hablar { margin: 18px 0 0; font-size: 15px; color: #d6d3d1; }
.final p.hablar { margin: 22px auto 0; font-size: 16px; }
p.hablar a { color: #fdba74; font-weight: 600; text-decoration: none; white-space: nowrap; display: inline-block; padding: 10px 0; margin: -10px 0; }
p.hablar a:hover { text-decoration: underline; }

/* «Quiénes somos»: tres cifras grandes y el texto debajo. */
#nosotros .cabeza { margin-bottom: 36px; }
#nosotros .nos-texto { margin: 40px 0 0; }
#nosotros .cabeza p + p { margin-top: 14px; }
.cifras { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cifras li { border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radio); padding: 22px 20px; background: rgba(255, 255, 255, .03); }
.cifras b { display: block; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; color: #fdba74; margin-bottom: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cifras span { display: block; font-size: 15.5px; line-height: 1.45; color: #d6d3d1; }

/* ── Animaciones (solo si el visitante no pidió reducir movimiento) ─────── */
@media (prefers-reduced-motion: no-preference) {
  .hero-svg .caja { animation: caer .9s cubic-bezier(.2, 1.25, .35, 1) both; animation-delay: calc(.35s + var(--i) * .17s); }
  /* El latido va en su propio grupo (.pulso): con las dos animaciones en la misma luz, Chrome repintaba el dibujo
     60 veces por segundo sin parar; separadas, el latido lo mueve la tarjeta gráfica y el hilo principal descansa. */
  .hero-svg .luz { animation: encender .5s ease-out both; animation-delay: calc(1.45s + var(--i) * .17s); }
  /* Tres vueltas y descansa (antes, sin fin); además se pausa fuera de pantalla, porque .dibujo es una .escena. */
  .hero-svg .pulso { animation: latir 3.2s ease-in-out calc(2.6s + var(--i) * .4s) 3; }
  .hero-svg .barrido { animation: barrer 6s ease-in-out 2.6s 3; }
  /* La flecha y el rótulo de VB6 aparecen cuando la caja ya cayó a su sitio, una sola vez. */
  .hero-svg .desvio { animation: abrir-op .6s ease-out both; animation-delay: 2.5s; }
  .js-rev .rev { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--curva), transform .7s var(--curva); transition-delay: var(--d, 0s); }
  .js-rev .rev.visto { opacity: 1; transform: none; }
  .heroe .texto > * { animation: subir .8s var(--curva) both; }
  .heroe .texto > :nth-child(2) { animation-delay: .08s; }
  .heroe .texto > :nth-child(3) { animation-delay: .16s; }
  .heroe .texto > :nth-child(4) { animation-delay: .24s; }
  .heroe .texto > :nth-child(5) { animation-delay: .32s; }
  .heroe .texto > :nth-child(6) { animation-delay: .40s; }

  /* Problemas: tres vueltas cada una y descansan en su fotograma. */
  .js-escenas .p1-mano { animation: p1-mano 5s var(--curva-mover) 3 both; }
  .js-escenas .p1-rack { animation: p1-temblor 5s linear 3 both; }
  .js-escenas .p1-led { animation: parpadeo 1.25s steps(1) 12 both; }
  /* Las vueltas acaban justo en el momento del problema (2,8 y 2,6 vueltas): la persona ya se fue y queda el «?»;
     el cambio nocturno deja la luz roja y el «!»; las monedas quedan apoyadas en cada servidor. */
  .js-escenas .p2-persona { animation: p2-irse 6s var(--curva) 2.8 both; }
  .js-escenas .p2-hilo { animation: p2-hilo 6s linear 2.8 both; }
  .js-escenas .p2-pulso { animation: p2-pulso 6s linear 2.8 both; animation-delay: calc(var(--k) * .7s); }
  .js-escenas .p2-duda { animation: p2-duda 6s var(--curva) 2.8 both; }
  .js-escenas .p3-archivo { animation: p3-viaje 5s linear 2.6 both; }
  .js-escenas .p3-led { animation: p3-mal 5s linear 2.6 both; }
  .js-escenas .p3-alerta { animation: p3-alerta 5s var(--curva) 2.6 both; }
  .js-escenas .p4-tapa { display: inline; animation: p4-tapa 6s linear 3 both; }
  .js-escenas .p4-barrido { animation: p4-barrido 6s linear 3 both; }
  .js-escenas .p4-caida { animation: p4-caida 6s var(--curva) 3 both; }
  .js-escenas .p4-servidor { animation: p4-temblor 6s linear 3 both; }
  .js-escenas .p5-lupa { animation: p5-lupa 6s var(--curva-mover) 3 both; }
  .js-escenas .p5-marca { transform-box: fill-box; transform-origin: center; animation: p5-marca 6s var(--curva) 3 both; animation-delay: calc(.5s + var(--k) * 1.15s); }
  .js-escenas .p6-moneda { animation: p6-moneda 2.4s cubic-bezier(.55, 0, .8, .3) 5.62 both; animation-delay: calc(var(--k) * .6s); }

  /* Empaque: las piezas, la caja y los servidores donde corre, uno tras otro (una vez). */
  .js-escenas .empaque .piezas li { animation: entra-izq .6s var(--curva) both; animation-delay: calc(.1s + var(--k, 0) * .15s); }
  .js-escenas .empaque-flecha { animation: crece .5s var(--curva) .55s both; }
  .js-escenas .empaque-flecha + .empaque-caja { animation: aparece .55s var(--curva) .8s both; }
  .js-escenas .empaque-caja + .empaque-flecha { animation-delay: 1.15s; }
  .js-escenas .empaque .destinos li { animation: entra-izq .6s var(--curva) both; animation-delay: calc(1.35s + var(--k, 0) * .15s); }

  /* Fechas (una vez). */
  .js-escenas .calendario { animation: cal-cae .7s var(--curva) .1s both; }
  .js-escenas .cal-sello { animation: sello .45s var(--curva) 1s both; }
  .js-escenas .cuenta { animation: aparece .6s var(--curva) .45s both; }
  .js-escenas .factura-papel { animation: imprime 1.5s var(--curva) .15s both; }
  .js-escenas .b-antes { animation: crece .6s var(--curva) 1.5s both; }
  .js-escenas .b-renovar { animation: crece 1.1s var(--curva) 1.9s both; }

  /* Semáforo: tres pasadas por el escáner; quedan en su carril, con su color. */
  @supports (width: 1cqw) {
    .js-escenas .ficha { animation: escanear 5s var(--curva) 3 both; animation-delay: calc(var(--k) * .45s); }
    .js-escenas .ficha::after { animation: tenir 5s linear 3 both; animation-delay: calc(var(--k) * .45s); }
  }
  .js-escenas .pista::after { animation: haz 1.25s ease-in-out 12 both; }

  /* Tecnologías: lo que tiene viaja al contenedor y del contenedor a su destino. */
  /* backwards: al acabar vuelven a su sitio quieto (tres puntos por conducto), no se quedan invisibles. */
  .js-escenas .flujo-tubo i { animation: fluir 1.8s linear 8 backwards; animation-delay: calc(var(--k) * .6s); }

  /* Alcance: las marcas de sí y no aparecen una tras otra. */
  .js-rev .alcance .rev li::before { transform: scale(.9); opacity: 0; transition: transform .45s var(--curva), opacity .45s var(--curva); }
  .js-rev .alcance .rev.visto li::before { transform: none; opacity: 1; }
  .alcance li:nth-child(2)::before { transition-delay: .3s; }
  .alcance li:nth-child(3)::before { transition-delay: .37s; }
  .alcance li:nth-child(4)::before { transition-delay: .44s; }
  .alcance li:nth-child(5)::before { transition-delay: .51s; }
  .alcance li:nth-child(6)::before { transition-delay: .58s; }
  .alcance li:nth-child(7)::before { transition-delay: .65s; }
  .alcance li:nth-child(1)::before { transition-delay: .23s; }

  .preguntas details[open] .resp, .pasos .detalle[open] > p { animation: abrir .35s var(--curva) both; }
  .js-rev #alcance:not(.plegado) .det { animation: abrir-op .3s var(--curva) both; }
  .btn:active { transform: scale(.97); transition-duration: .16s; }
}
@keyframes caer { from { transform: translateY(-90px); opacity: 0; } 45% { opacity: 1; } to { transform: none; opacity: 1; } }
.hero-svg .luz { transform-box: fill-box; transform-origin: center; }
@keyframes encender { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes latir { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes barrer { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(196px, 113px); } }
@keyframes subir { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes abrir-op { from { opacity: 0; } to { opacity: 1; } }
@keyframes abrir { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes aparece { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
@keyframes entra-izq { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes crece { from { transform: scaleX(0); } to { transform: none; } }
@keyframes parpadeo { 0%, 49% { opacity: .15; } 50%, 100% { opacity: 1; } }
@keyframes p1-mano { 0%, 12% { transform: translateX(-8px); } 34%, 46% { transform: translateX(26px); } 66%, 100% { transform: translateX(-8px); } }
@keyframes p1-temblor { 0%, 35%, 45%, 100% { transform: none; } 37% { transform: rotate(-1.6deg); } 39% { transform: rotate(1.4deg); } 41% { transform: rotate(-1deg); } 43% { transform: rotate(.6deg); } }
@keyframes p2-pulso { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 38% { transform: translateX(46px); opacity: 1; } 42%, 100% { transform: translateX(46px); opacity: 0; } }
@keyframes p2-irse { 0%, 54% { transform: none; opacity: 1; } 66%, 90% { transform: translateX(-20px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes p2-hilo { 0%, 56% { opacity: 1; } 64%, 90% { opacity: .12; } 100% { opacity: 1; } }
@keyframes p2-duda { 0%, 64% { opacity: 0; transform: scale(.5); } 70%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }
@keyframes p3-viaje { 0% { transform: translate(0, 0); opacity: 0; animation-timing-function: cubic-bezier(.45, 0, 1, 1); } 8% { opacity: 1; } 24% { transform: translate(44px, -26px); animation-timing-function: cubic-bezier(0, 0, .3, 1); } 42% { transform: translate(88px, -2px); opacity: 1; } 48%, 100% { transform: translate(88px, -2px); opacity: 0; } }
@keyframes p3-mal { 0%, 48% { opacity: 0; } 52%, 60%, 68% { opacity: 1; } 56%, 64% { opacity: .2; } 74%, 100% { opacity: 0; } }
@keyframes p3-alerta { 0%, 48% { opacity: 0; transform: translateY(4px); } 54%, 72% { opacity: 1; transform: none; } 78%, 100% { opacity: 0; transform: none; } }
@keyframes p4-barrido { 0% { transform: translateX(0); opacity: 0; } 5% { opacity: 1; } 62% { transform: translateX(176px); opacity: 1; } 68%, 100% { transform: translateX(176px); opacity: 0; } }
@keyframes p4-tapa { 0% { transform: scaleX(1); } 62%, 100% { transform: scaleX(0); } }
@keyframes p4-caida { 0%, 54% { opacity: 0; transform: scale(.5); } 60%, 100% { opacity: 1; transform: none; } }
@keyframes p4-temblor { 0%, 56%, 66%, 100% { transform: none; } 58% { transform: translateX(-1.6px); } 61% { transform: translateX(1.6px); } 64% { transform: translateX(-1px); } }
@keyframes p5-lupa { 0%, 8% { transform: translateY(0); } 20%, 28% { transform: translateY(22px); } 40%, 88% { transform: translateY(44px); } 100% { transform: translateY(0); } }
@keyframes p5-marca { 0% { opacity: 0; transform: scale(.4); } 7%, 100% { opacity: 1; transform: none; } }
@keyframes p6-moneda { 0% { transform: translateY(-6px); opacity: 0; } 15% { opacity: 1; } 62% { transform: translateY(14px); opacity: 1; } 76%, 100% { transform: translateY(18px); opacity: 0; } }
@keyframes cal-cae { from { opacity: 0; transform: translateY(-16px) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes sello { 0% { opacity: 0; transform: translateX(-50%) rotate(-8deg) scale(1.8); } 60% { opacity: 1; } 100% { opacity: 1; transform: translateX(-50%) rotate(-8deg) scale(1); } }
@keyframes imprime { from { transform: translateY(-104%); } to { transform: none; } }
@keyframes escanear { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 40%, 52% { transform: translateX(calc(50cqw - 50%)); } 88%, 100% { transform: translateX(calc(100cqw - 100%)); opacity: 1; } }
@keyframes tenir { 0%, 45% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes haz { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes fluir { 0% { transform: translateX(-4px); opacity: 0; } 20%, 80% { opacity: 1; } 100% { transform: translateX(42px); opacity: 0; } }
@keyframes fluir-v { 0% { transform: translateY(-4px); opacity: 0; } 20%, 80% { opacity: 1; } 100% { transform: translateY(56px); opacity: 0; } }

/* ── Tamaños ─────────────────────────────────────────── */
/* Escritorio: «Cómo trabajamos» en dos columnas; el título y el contador de pasos se quedan a la vista mientras
   se recorre el camino (pegado con CSS, sin librerías). */
@media (min-width: 981px) {
  #como .envoltura { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0 72px; align-items: start; }
  .como-lado { position: sticky; top: 112px; }
  .js-escenas .como-indicador { display: flex; align-items: center; gap: 22px; }
  .como-n { display: flex; align-items: baseline; gap: 10px; font-size: 15px; font-weight: 600; color: #a8a29e; font-variant-numeric: tabular-nums; }
  .como-n b { font-size: 60px; line-height: 1; letter-spacing: -.04em; color: var(--naranja); }
  .como-barras { display: flex; gap: 6px; }
  .como-barras i { width: 24px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .14); transition: background .4s; }
  .como-barras i.lleno { background: var(--naranja); }
  #como .pasos { margin-top: 64px; }
}
/* Tableta (hasta 1100 px): tres columnas dejaban 180-270 px de texto por tarjeta y huecos de hasta 9,6× al
   justificar. Dos columnas, y la tarjeta que sobra, a todo el ancho. */
@media (max-width: 1100px) {
  .r3 { grid-template-columns: repeat(2, 1fr); }
  .r3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .heroe .envoltura { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 64px; gap: 30px; }
  .dibujo { max-width: 460px; margin: 0 auto; width: 100%; }
  .cab nav a:not(.btn) { display: none; }
  .cifras { grid-template-columns: 1fr; }
  .flujo { grid-template-columns: minmax(0, 1fr); }
  .flujo-tubo { justify-self: center; width: 0; height: 64px; margin: 6px 0 16px; border-top: 0; border-left: 3px dashed #fdba74; }
  .flujo-tubo::after { right: auto; left: -8.5px; top: auto; bottom: -9px; border: 7px solid transparent; border-top: 9px solid #fb923c; border-bottom: 0; }
  .flujo-tubo i { left: -7.5px; top: 0; }
  .flujo-tubo i:nth-child(2) { transform: translateY(22px); }
  .flujo-tubo i:nth-child(3) { transform: translateY(44px); }
  .flujo-centro { grid-template-columns: auto auto; align-items: center; justify-content: center; text-align: left; gap: 18px; }
  .flujo-centro svg { width: 84px; }
  .empaque { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; padding: 22px 18px; }
  .empaque ul { width: 100%; max-width: 340px; }
  .empaque-flecha { width: 0; height: 30px; border-top: 0; border-left: 2px dashed var(--naranja); transform-origin: top center; }
  .empaque-flecha::after { right: auto; left: -7px; top: auto; bottom: -3px; border: 6px solid transparent; border-top: 8px solid var(--naranja); border-bottom: 0; }
  .empaque-caja { grid-template-columns: auto auto; align-items: center; gap: 14px; }
  .empaque-caja svg { width: 64px; }
}
@media (max-width: 980px) and (prefers-reduced-motion: no-preference) {
  .js-escenas .flujo-tubo i { animation-name: fluir-v; }
  .js-escenas .empaque-flecha { animation-name: crece-v; }
}
@keyframes crece-v { from { transform: scaleY(0); } to { transform: none; } }
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .envoltura { padding: 0 16px; }
  .cab .envoltura { height: 60px; gap: 10px; }
  .cab .logo img { height: 34px; }
  .cab .logo span { display: none; }
  .cab .logo .nombre { display: block; font-size: 19px; font-weight: 700; line-height: 1; letter-spacing: -.01em; color: #fff; }
  /* Un solo botón fijo: el de la cabecera se esconde mientras se ve la barra de abajo (venta.js pone .barra-visible). */
  .cab nav .btn { transition: background .2s, border-color .2s, transform .2s, box-shadow .2s, opacity .2s, visibility .2s; }
  .barra-visible .cab nav .btn:not(:focus-visible) { opacity: 0; visibility: hidden; }
  .heroe .bajada { font-size: 17.5px; }
  .heroe .acciones .btn { width: 100%; }
  .btn-chico { min-height: 44px; }
  .seccion { padding: 68px 0; }
  .cabeza { margin-bottom: 30px; }
  .cabeza p, .remate, .cabeza .antetitulo { font-size: 17px; }
  .r3, .r2 { grid-template-columns: 1fr; }
  .tarjeta { padding: 20px; }
  .preguntas summary { font-size: 17px; padding: 18px 2px; }
  /* Los seis problemas, en carrusel: se desliza de lado en vez de bajar seis tarjetas. */
  .problemas { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 10px; scroll-padding: 0 16px; scrollbar-width: thin; }
  .problemas > .problema { flex: 0 0 86%; scroll-snap-align: start; padding: 8px 8px 20px; }
  .problemas > .problema h3, .problemas > .problema p { padding: 0 8px; }
  .deslice { display: block; margin-top: 8px; font-size: 14px; color: var(--gris); text-align: right; }
  .tarjeta.fecha { padding: 8px 8px 20px; }
  .tarjeta.fecha h3, .tarjeta.fecha > p { padding: 0 8px; }
  .fecha-visual { gap: 18px; padding: 18px 12px 26px; }
  .calendario { width: 92px; }
  .cal-dia { font-size: 42px; }
  .cuenta-num { font-size: 48px; }
  .pasos li { padding-left: 56px; }
  .pasos .tramo { left: 56px; }
  .escaner { padding: 32px 14px 18px; }
  .escaner-carril { grid-template-columns: minmax(0, 1fr) 6.6em; gap: 10px; }
  .ficha { width: 6.2em; font-size: 12.5px; }
  .escaner-carril em { font-size: 13px; gap: 6px; }
  .cotiza { grid-template-columns: 1fr; }
  .cotizamos { padding: 22px 20px; }
  .barra-movil {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(20, 18, 16, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, .08); transform: translateY(110%); transition: transform .3s var(--curva);
  }
  .barra-movil.vista { transform: none; }
  .barra-movil .btn { width: 100%; }
  .pie .envoltura { padding-bottom: 96px; }
}
/* Celulares de menos de 375 px: con «Nqual5» al lado, el botón de la cabecera se partía en dos líneas. */
@media (max-width: 374px) {
  .cab .envoltura { gap: 8px; }
  .cab .logo { gap: 10px; }
  .cab .logo .nombre { font-size: 17px; }
  .cab nav .btn { margin-left: 0; padding: 9px 12px; font-size: 14px; }
  .fecha-visual { flex-direction: column; gap: 22px; }
  .escaner-carril { grid-template-columns: minmax(0, 1fr) 4.6em; gap: 8px; }
  .escaner-carril em { font-size: 12px; }
  .escaner-carril em::before { display: none; }
}

/* Impresión o «Guardar como PDF»: todo a la vista, quieto, y el detalle del alcance desplegado. */
@media print {
  *, ::before, ::after { transition: none !important; animation: none !important; } /* directo al estado final: nada a medias en el papel (los «Detalle» abiertos al imprimir arrancaban su animación desde opacidad 0) */
  .js-rev .rev { opacity: 1 !important; transform: none !important; }
  html.js-escenas .escena *, html.js-escenas .escena ::before, html.js-escenas .escena ::after { animation: none !important; }
  .js-escenas .p4-tapa { display: none !important; }
  .plegado .det { display: inline !important; }
  .cab { position: static; }
  .barra-movil, .ver-detalle, .deslice, .como-indicador { display: none !important; }
  .problemas { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible !important; margin: 0 !important; padding: 0 !important; }
  .problemas > .problema { flex: none; }
  .alcance li::before { opacity: 1 !important; transform: none !important; }
  .recorrido li > * { opacity: 1 !important; }
  .recorrido li::before { background: var(--naranja) !important; color: var(--tinta) !important; }
  .pasos::after { transform: none !important; }
}
