/* Encabezado común de sección */
.sec { max-width: 1240px; margin: 0 auto; padding: 140px 40px 0; }
.sec-cab { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 90px; }
.sec h2 { font-size: clamp(34px, 3.9vw, 54px); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; }
.sec h2 em { font-style: normal; color: var(--naranja); }
.sec-cab p { font-size: 18px; line-height: 1.65; color: var(--gris); font-weight: 400; max-width: 460px; justify-self: end; }

/* ===== La ruta segura ===== */
.ruta { position: relative; }
.ruta-svg { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 200px; height: 100%; overflow: visible; pointer-events: none; }
.ruta-svg .base { fill: none; stroke: #CFCAC2; stroke-width: 2.5; stroke-dasharray: 2 10; stroke-linecap: round; }
.ruta-svg .hecha { fill: none; stroke: var(--naranja); stroke-width: 3; stroke-linecap: round; }

.est { display: grid; grid-template-columns: 1fr 200px 1fr; align-items: center; min-height: 560px; position: relative; }
.est .foto { grid-column: 1; }
.est .txt { grid-column: 3; }
.est.der .foto { grid-column: 3; grid-row: 1; }
.est.der .txt { grid-column: 1; grid-row: 1; justify-self: end; text-align: right; }
.nodo { grid-column: 2; grid-row: 1; justify-self: center; width: 58px; height: 58px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; box-shadow: 0 0 0 1.5px #CFCAC2; z-index: 2; transition: box-shadow .6s var(--ease), background .6s var(--ease); }
.nodo svg { width: 24px; height: 24px; stroke: #A9A39A; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .6s var(--ease); }
.est.on .nodo { box-shadow: 0 0 0 2px var(--naranja), 0 0 0 10px rgba(242,107,29,.12); }
.est.on .nodo svg { stroke: var(--naranja); }

/* Foto con doble bisel (marcador hasta tener la foto real) */
.foto { padding: 8px; border-radius: 30px; background: rgba(30,35,41,.04); box-shadow: 0 0 0 1px rgba(30,35,41,.05);
  opacity: 0; transform: translateY(60px) scale(.97); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.foto div { aspect-ratio: 4 / 3; border-radius: 23px; background-size: cover; background-position: center;
  background-color: #EFEBE5; display: flex; align-items: flex-end; padding: 22px; color: #8F887E; font-size: 13px; line-height: 1.5;
  background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,.7), transparent 55%), repeating-linear-gradient(135deg, transparent 0 22px, rgba(0,0,0,.018) 22px 23px); }
.est.vista .foto { opacity: 1; transform: none; }

.txt { max-width: 440px; opacity: 0; transform: translateX(-40px); transition: opacity 1s var(--ease) .15s, transform 1s var(--ease) .15s; }
.est.der .txt { transform: translateX(40px); }
.est.vista .txt { opacity: 1; transform: none; }
.txt .n { font-size: 64px; font-weight: 600; color: var(--naranja); line-height: 1; letter-spacing: -0.04em; }
.txt h3 { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; margin: 10px 0 14px; }
.txt p { font-size: 18px; line-height: 1.65; color: var(--gris); font-weight: 400; }
.txt .herr { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.txt .herr i { width: 8px; height: 8px; border-radius: 50%; background: var(--naranja); }

/* El trabajador */
.trab { position: absolute; left: 0; top: 0; width: 66px; height: 112px; z-index: 3; pointer-events: none; will-change: transform; }
.trab svg { width: 66px; height: 112px; overflow: visible; }
.trab .pierna, .trab .brazo { transform-box: fill-box; transform-origin: 50% 0; }
.trab.camina .p1, .trab.camina .b2 { animation: paso .55s ease-in-out infinite alternate; }
.trab.camina .p2, .trab.camina .b1 { animation: paso .55s ease-in-out infinite alternate-reverse; }
.trab.camina .cuerpo { animation: rebote .275s ease-in-out infinite alternate; }
@keyframes paso { from { transform: rotate(24deg); } to { transform: rotate(-24deg); } }
@keyframes rebote { from { transform: translateY(0); } to { transform: translateY(-1.5px); } }
.pila { position: absolute; left: 62px; bottom: 10px; display: flex; flex-direction: column-reverse; gap: 3px; }
.pila span { width: 22px; height: 22px; border-radius: 7px; background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 1px var(--line), 0 6px 12px -6px rgba(30,35,41,.3); animation: entra .5s var(--ease); }
.pila svg, .mesa .obj svg { width: 13px; height: 13px; stroke: var(--naranja); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes entra { from { transform: scale(0) translateY(10px); } to { transform: none; } }

/* Escena de cierre: la mesa */
.mesa-est { padding: 60px 0 0; text-align: center; position: relative; }
.mesa-est .n { font-size: 64px; font-weight: 600; color: var(--naranja); letter-spacing: -0.04em; line-height: 1; }
.mesa-est h3 { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; margin: 10px 0 14px; }
.mesa-est > p { font-size: 18px; color: var(--gris); font-weight: 400; max-width: 560px; margin: 0 auto 50px; line-height: 1.65; }
.mesa { position: relative; padding: 10px; border-radius: 36px; background: rgba(30,35,41,.04); box-shadow: 0 0 0 1px rgba(30,35,41,.05); }
.mesa > div { aspect-ratio: 16 / 7; border-radius: 27px; background-color: #EFEBE5; position: relative; overflow: hidden;
  background-image: radial-gradient(circle at 50% 40%, rgba(255,255,255,.8), transparent 60%), repeating-linear-gradient(135deg, transparent 0 22px, rgba(0,0,0,.018) 22px 23px); }
.mesa .marc { position: absolute; left: 28px; bottom: 24px; font-size: 13px; color: #8F887E; text-align: left; }
.mesa .obj { position: absolute; width: 64px; height: 64px; border-radius: 18px; background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 1px var(--line), 0 18px 30px -16px rgba(30,35,41,.35); }
.mesa .obj svg { width: 28px; height: 28px; }
.mesa-lema { margin-top: 34px; font-size: 20px; font-weight: 500; }
.mesa-lema em { font-style: normal; color: var(--naranja); }

/* ===== Herramientas ===== */
.herrs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.herr-c { padding: 8px; border-radius: 30px; background: rgba(30,35,41,.04); box-shadow: 0 0 0 1px rgba(30,35,41,.05); }
.herr-c > div { height: 100%; border-radius: 23px; background: #fff; padding: 34px 30px 30px; display: flex; flex-direction: column; }
.herr-c img { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 26px; }
.herr-c .iso { background: #fff; box-shadow: 0 0 0 1px var(--line); padding: 10px; object-fit: contain; }
.herr-c h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.herr-c small { font-size: 14px; color: var(--muted); }
.herr-c p { font-size: 16px; line-height: 1.65; color: var(--gris); font-weight: 400; margin: 16px 0 28px; flex: 1; }
.herr-c a { align-self: flex-start; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; padding-bottom: 3px;
  background: linear-gradient(var(--naranja), var(--naranja)) 0 100% / 100% 2px no-repeat; transition: background-size .5s var(--ease); }
.herr-c a:hover { background-size: 40% 2px; }

/* ===== Sin / Con Kaizen ===== */
.sincon { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: center; }
.toggle { display: inline-flex; padding: 6px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); margin-top: 40px; position: relative; }
.toggle button { position: relative; z-index: 1; border: 0; background: none; font: 500 16px 'Source Sans 3', Arial, sans-serif; padding: 14px 28px; border-radius: 999px; cursor: pointer; color: var(--gris); transition: color .5s var(--ease); }
.toggle button.act { color: #fff; }
.toggle .pill { position: absolute; top: 6px; bottom: 6px; left: 6px; border-radius: 999px; background: var(--gris); transition: transform .6s var(--ease), width .6s var(--ease), background .6s var(--ease); }
.toggle.con .pill { background: var(--naranja); box-shadow: 0 10px 24px -10px rgba(242,107,29,.7); }
.pista { display: block; margin-top: 16px; font-size: 14px; color: var(--muted); }
.filas { list-style: none; }
.filas li { display: grid; grid-template-columns: 34px 1fr; gap: 18px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); }
.filas li:first-child { border-top: 1px solid var(--line); }
.filas .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #F1EFEB; transition: background .6s var(--ease); }
.filas .ic svg { width: 16px; height: 16px; fill: none; stroke: #9A938A; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .6s var(--ease); }
.filas p { font-size: 21px; line-height: 1.5; color: #8F887E; transition: color .6s var(--ease), opacity .3s var(--ease), transform .4s var(--ease); }
.filas.con .ic { background: var(--durazno); }
.filas.con .ic svg { stroke: var(--naranja); }
.filas.con p { color: var(--ink); }
.filas p.cambia { opacity: 0; transform: translateY(8px); }

/* ===== Cierre (única sección oscura) ===== */
.cierre { margin: 160px 16px 16px; border-radius: 40px; background: #1E2329; color: #fff; padding: 110px 40px 50px; text-align: center; position: relative; overflow: hidden; }
.cierre::before { content: ""; position: absolute; left: 50%; top: -30%; width: 900px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(242,107,29,.22), transparent); }
.cierre > * { position: relative; }
.cierre h2 { font-size: clamp(38px, 5vw, 70px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; max-width: 820px; margin: 0 auto; }
.cierre h2 em { font-style: normal; color: var(--naranja); }
.cifras { display: flex; justify-content: center; gap: 70px; margin: 56px 0 50px; }
.cifras b { display: block; font-size: 60px; font-weight: 600; color: var(--naranja); letter-spacing: -0.04em; line-height: 1; }
.cifras span { font-size: 15px; color: rgba(255,255,255,.6); }
.cierre .btn-ghost { background: rgba(255,255,255,.08); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.pie { display: flex; justify-content: space-between; align-items: center; margin-top: 100px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.5); }
.pie img { height: 44px; }

@media (max-width: 960px) {
  .sec { padding: 100px 16px 0; }
  .sec-cab, .sincon { grid-template-columns: 1fr; gap: 20px; }
  .sec-cab p { justify-self: start; }
  .ruta-svg { left: 30px; transform: none; width: 60px; }
  .est, .est.der { grid-template-columns: 60px 1fr; min-height: 0; padding: 30px 0; gap: 18px; }
  .est .foto, .est.der .foto { grid-column: 2; grid-row: 2; }
  .est .txt, .est.der .txt { grid-column: 2; grid-row: 1; justify-self: start; text-align: left; transform: translateY(20px); }
  .nodo { grid-column: 1; grid-row: 1; width: 46px; height: 46px; }
  .txt h3, .mesa-est h3 { font-size: 32px; }
  .txt .n, .mesa-est .n { font-size: 44px; }
  .herrs { grid-template-columns: 1fr; }
  .mesa > div { aspect-ratio: 4 / 3; }
  .cifras { gap: 30px; flex-wrap: wrap; }
  .pie { flex-direction: column; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .foto, .txt { opacity: 1; transform: none; }
}

/* Indicador para seguir bajando (sección papel → celular) */
body #s3 .hint { left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted); opacity: .85; }
body #s3 .hint svg { width: 30px; height: 30px; fill: rgba(255,255,255,.7); stroke: var(--gris); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  animation: dedo 1.6s var(--ease) infinite; }
@keyframes dedo { 0% { transform: translateY(-8px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* Ajustes celular (18/oct, capturas de Diego) */
@media (max-width: 860px) {
  /* Hero: los tres celulares visibles, más compactos, sin montarse sobre los botones */
  body #s1 .hero { padding-top: 104px; }
  body #s1 .sub { display: none; }
  body #s1 h1 { margin-bottom: 26px; }
  body #s1 .ctas { flex-wrap: nowrap; gap: 10px; }
  body #s1 .ctas .btn-ghost { font-size: 0; gap: 0; width: 52px; height: 52px; padding: 0; justify-content: center; }
  body #s1 .ctas .btn-ghost svg { width: 24px; height: 24px; }
  body #s1 .stage { height: 370px; margin-top: 10px; }
  body #s1 .stage .phone { bottom: -150px; transform-origin: 50% 100%; }
  body #s1 .stage .p-ak, body #s1 .stage .p-ia { display: block; }
  body #s1 .stage .p-k1 { transform: translateX(-50%) scale(.74); }
  body #s1 .stage .p-ak { transform: translateX(-96%) rotate(-8deg) scale(.58); }
  body #s1 .stage .p-ia { transform: translateX(-4%) rotate(8deg) scale(.58); }
  body #s1 .stage .t1 { top: 0; left: auto; right: 0; margin-left: 0; }
  body #s1 .marcas { padding: 40px 16px 10px; gap: 18px; font-size: 13px; flex-wrap: wrap; }
  body #s1 .marcas b { font-size: 15px; }

  /* Papel → celular: se completa en una o dos deslizadas */
  body #s3 .scroller { height: 190vh; margin-top: 0; }
  body #s3 .pin { padding-top: 96px; }

  /* Tablero: cabe completo en una pantalla, con el mismo diseño del escritorio */
  body #s2 .hero { padding: 70px 16px 40px; gap: 20px; }
  body #s2 .sub { font-size: 16px; margin: 14px 0 0; }
  body #s2 .pruebas { display: none; }
  body #s2 .shell { zoom: .6; }
  body #s2 .grid { grid-template-columns: repeat(3, 1fr); }
  body #s2 .span2 { grid-column: span 2; }
  body #s2 .toast { right: 10px; bottom: -30px; }
}

/* Etiquetas y textos que nunca se parten */
#s2 .estado { white-space: nowrap; }

/* Pasada "celular primero" (18/oct): nada encima de texto, nada diminuto, menos vacío */
@media (max-width: 860px) {
  /* Espacios */
  body #s1 .hero { min-height: auto; padding-bottom: 0; }
  body #s1 .marcas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 34px 16px 0; text-align: center; }
  body #s1 .marcas span { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
  body #s1 .marcas b { font-size: 16px; }
  .sec { padding-top: 76px; }
  .sec-cab { margin-bottom: 36px; }
  .cierre { margin-top: 80px; padding: 70px 20px 36px; border-radius: 30px; }
  .cifras { margin: 36px 0 34px; }
  .pie { margin-top: 56px; }
  .pie img { height: 58px; }

  /* La ruta: la línea con aire y el trabajador sin tocar el texto */
  .ruta-svg { left: 26px; width: 52px; }
  .est, .est.der { grid-template-columns: 52px 1fr; gap: 14px 22px; padding: 22px 0; }
  .trab { visibility: hidden; }
  .pila { left: 12px; bottom: calc(100% + 4px); }
  .mesa-est { padding: 30px 0 0 74px; text-align: left; }
  .mesa-est .nodo { margin: 0 0 20px -71px !important; justify-self: start; }
  .mesa-est .mesa { margin-left: -74px; }
  .mesa-est .mesa-lema { margin-left: -74px; text-align: center; }
  .mesa-est > p { margin-bottom: 26px; }

  /* Herramientas: ícono y título en una línea, tarjeta compacta */
  .herrs { gap: 14px; }
  .herr-c > div { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; padding: 22px 22px 24px; }
  .herr-c img { grid-row: 1 / span 2; width: 52px; height: 52px; margin: 0; }
  .herr-c h3 { font-size: 22px; align-self: end; }
  .herr-c small { align-self: start; }
  .herr-c p, .herr-c a { grid-column: 1 / -1; }
  .herr-c p { margin: 16px 0 16px; font-size: 15px; }

  /* Sin / Con */
  .filas p { font-size: 18px; }
  .filas li { padding: 18px 0; }
}

/* Llamado del botón Sin/Con: visible hasta que lo tocan */
.pista { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 16px; font-weight: 500; color: var(--ink); transition: opacity .5s var(--ease); }
.pista b { color: var(--naranja); font-weight: 600; }
.pista svg { width: 26px; height: 26px; fill: var(--durazno); stroke: var(--naranja); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; animation: toque 1.4s var(--ease) infinite; }
@keyframes toque { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4px, -5px); } }
.toggle:not(.tocado) button[data-m="con"]::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; box-shadow: 0 0 0 2px var(--naranja); animation: pulso 1.6s var(--ease) infinite; }
@keyframes pulso { 0% { opacity: .8; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.12); } }
.toggle.tocado ~ .pista { opacity: .45; }

/* Hero en celular: los tres celulares completos dentro de la pantalla */
@media (max-width: 860px) {
  body #s1 .stage .p-k1 { transform: translateX(-50%) scale(.68); }
  body #s1 .stage .p-ak { transform: translateX(calc(-50% - 104px)) rotate(-7deg) scale(.5); }
  body #s1 .stage .p-ia { transform: translateX(calc(-50% + 104px)) rotate(7deg) scale(.5); }
  body #s1 .stage .phone { bottom: -110px; }
  body #s1 .stage { height: 340px; }
  body #s1 .marcas b { font-weight: 600; color: var(--ink); }
  body #s1 .marcas span { color: var(--gris); font-weight: 500; }
}

/* ===== Tecnología: K1 desarmado + filas alternadas ===== */
#herramientas {
  .marca { display: grid; grid-template-columns: 52px auto; column-gap: 14px; align-items: center; margin-bottom: 18px; }
  .marca img { grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 15px; }
  .marca .iso { background: #fff; box-shadow: 0 0 0 1px var(--line); padding: 9px; object-fit: contain; }
  .marca h3 { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; align-self: end; }
  .marca small { font-size: 14px; color: var(--muted); align-self: start; }
  .anat-txt p, .fila-txt p { font-size: 17px; line-height: 1.65; color: var(--gris); max-width: 440px; }
  .ir { display: inline-block; margin-top: 22px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; padding-bottom: 3px;
    background: linear-gradient(var(--naranja), var(--naranja)) left bottom / 100% 2px no-repeat; transition: background-size .5s var(--ease); }
  .ir:hover { background-size: 40% 2px; }
  .meta { font-size: 10px; color: var(--muted); }
  .chk { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--gris); padding: 7px 10px; background: #fff; border-radius: 10px; margin-bottom: 6px; }
  .chk s { width: 14px; height: 14px; border-radius: 5px; border: 1.5px solid var(--line); flex: none; }
  .chk.ok s { background: var(--verde) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100%; border-color: var(--verde); }

  /* K1 desarmado */
  .anat { margin-top: 10px; }
  .anat-txt { text-align: center; max-width: 560px; margin: 0 auto; }
  .anat-txt .marca { justify-content: center; text-align: left; }
  .anat-txt p { margin: 0 auto; }
  .anat-stage { position: relative; height: 640px; max-width: 980px; margin: 30px auto 0; }
  .anat-cel { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); z-index: 2; }
  .k1i { padding: 46px 14px 14px; background: #F7F6F3; height: 100%; text-align: left; }
  .k1i small { font-size: 9px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
  .k1i h4 { font-size: 16px; font-weight: 600; color: var(--asfalto); margin: 4px 0 14px; }
  .firma { margin-top: 12px; background: #fff; border-radius: 12px; padding: 8px 10px; border: 1.5px dashed var(--line); }
  .firma svg, .trazo { width: 100%; height: 40px; fill: none; stroke: var(--asfalto); stroke-width: 2; stroke-linecap: round; }
  .firma span { font-size: 9px; color: var(--muted); }
  .go { background: var(--naranja); color: #fff; border-radius: 10px; text-align: center; padding: 10px; font-size: 11px; font-weight: 600; margin-top: 12px; }

  .pieza { position: absolute; width: 230px; z-index: 3; opacity: 0; transform: translate(var(--x), var(--y)) scale(.45);
    transition: opacity .7s var(--ease), transform 1s var(--ease); }
  .p1 { left: 0; top: 70px; } .p2 { left: 30px; top: 380px; }
  .p3 { right: 0; top: 40px; } .p4 { right: 10px; top: 250px; } .p5 { right: 40px; top: 430px; }
  .lbl { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--ink); margin: 0 0 8px 4px; }
  .lbl::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--naranja); }
  .pz { background: #F7F6F3; border-radius: 18px; padding: 10px; box-shadow: 0 0 0 1px rgba(30,35,41,.06), 0 24px 44px -24px rgba(30,35,41,.35); }
  .pz .chk:last-child { margin-bottom: 0; }
  .pz .trazo { background: #fff; border-radius: 10px; height: 54px; padding: 6px; display: block; margin-bottom: 6px; stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 1.4s var(--ease) 1.1s; }
  .alerta { display: flex; gap: 10px; align-items: center; background: #fff; }
  .alerta i { width: 30px; height: 30px; border-radius: 9px; background: #FFF4D6; flex: none; position: relative; }
  .alerta i::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: var(--ambar); }
  .alerta b { display: block; font-size: 12px; font-weight: 600; } .alerta span { font-size: 11px; color: var(--ambar); font-weight: 500; }
  .barras { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: #fff; margin: 4px 0 8px; }
  .barras i { width: 0; transition: width 1.2s var(--ease) 1.2s; }
  .doc { font-size: 11px; color: var(--gris); padding: 7px 10px 7px 30px; background: #fff; border-radius: 10px; margin-bottom: 6px; position: relative; }
  .doc:last-child { margin-bottom: 0; }
  .doc::before { content: ""; position: absolute; left: 10px; top: 8px; width: 11px; height: 13px; border-radius: 2px; border: 1.5px solid var(--muted); }
  .doc::after { content: "● al día"; position: absolute; right: 10px; top: 7px; font-size: 9px; color: var(--verde); }

  .anat.abierto .pieza { opacity: 1; transform: none; }
  .anat.abierto .trazo { stroke-dashoffset: 0; }
  .anat.abierto .barras i { width: var(--w); }
  .anat .p1 { transition-delay: .1s; } .anat .p3 { transition-delay: .25s; } .anat .p4 { transition-delay: .4s; }
  .anat .p2 { transition-delay: .55s; } .anat .p5 { transition-delay: .7s; }

  /* Filas alternadas */
  .fila { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; max-width: 980px; margin: 110px auto 0; }
  .fila.inv .fila-txt { order: 2; }
  .fila-img { display: flex; justify-content: center; padding: 30px 0; border-radius: 36px; background: radial-gradient(closest-side, var(--durazno), transparent); }
  .aki, .iai { padding: 46px 16px 16px; text-align: left; height: 100%; }
  .aki img { height: 18px; margin-bottom: 18px; }
  .aki small, .iai small { display: block; font-size: 9px; color: var(--muted); letter-spacing: .08em; margin-bottom: 4px; }
  .aki h5, .iai h5 { font-size: 15px; font-weight: 600; line-height: 1.3; margin-bottom: 12px; }
  .aki .barra { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-bottom: 6px; }
  .aki .barra i { display: block; height: 100%; background: var(--ak); }
  .mod { font-size: 11px; color: var(--gris); padding: 9px 0 9px 22px; border-bottom: 1px solid var(--line); position: relative; }
  .mod::before { content: ""; position: absolute; left: 0; top: 10px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line); }
  .mod.ok::before { background: var(--ak); border-color: var(--ak); }
  .mod:first-of-type { margin-top: 12px; }
  .iai .tit { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
  .iai .tit img { height: 18px; }
  .paso { padding: 8px 0 8px 16px; border-left: 1.5px solid var(--line); margin-left: 5px; position: relative; }
  .paso::before { content: ""; position: absolute; left: -6px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--naranja); }
  .paso b { font-size: 11px; font-weight: 600; display: block; } .paso span { font-size: 9px; color: var(--muted); }
}

@media (max-width: 860px) {
  #herramientas {
    .anat-stage { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
    .anat-cel { position: relative; left: auto; top: auto; transform: none; grid-column: 1 / -1; justify-self: center; margin-bottom: 10px; }
    .pieza { position: relative; inset: auto; width: auto; transform: translateY(24px); }
    .p4, .p5 { grid-column: auto; }
    .lbl { font-size: 11px; }
    .fila { grid-template-columns: 1fr; gap: 26px; margin-top: 70px; }
    .fila.inv .fila-txt { order: 0; }
    .anat-txt p, .fila-txt p { font-size: 16px; }
  }
}
/* Ajustes: celulares sin pantalla vacía abajo, documentos a todo el ancho en celular */
#herramientas .anat-cel .screen { height: 440px; }
#herramientas .fila .screen { height: 400px; }
#herramientas .anat-stage { height: 560px; }
@media (max-width: 860px) {
  #herramientas .anat-stage { height: auto; }
  #herramientas .p5 { grid-column: 1 / -1; }
}

/* ===== Personajes: Diego despliega los 5 bots y cada uno va a su puesto ===== */
.pjs { height: 100vh; height: 100svh; padding: 84px 40px 24px; box-sizing: border-box; margin-top: 140px; }
.pjs-card { max-width: 1240px; height: 100%; margin: 0 auto; border-radius: 36px; background: #E3DCD4; overflow: hidden;
            display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pjs-texto { position: relative; width: 100%; max-width: 720px; min-height: 120px; text-align: center; padding: 0 16px; box-sizing: border-box; }
.pjs-paso { position: absolute; inset: 0; opacity: 0; }
.pjs-paso:first-child { opacity: 1; }
.pjs h2 { font-size: clamp(28px, 3.4vw, 46px); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 10px; }
.pjs h2 em { font-style: normal; color: var(--naranja); }
.pjs-paso p { font-size: 17px; line-height: 1.5; color: var(--gris); font-weight: 400; margin: 0; }
.pjs-stage { position: relative; flex-shrink: 0; width: min(100%, calc((100svh - 290px) * 1.79)); aspect-ratio: 2752 / 1536; }
.pjs-stage > * { position: absolute; }
.pjs-maqueta { inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(.92) translateY(4%);
               -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 55%, transparent 72%); mask-image: radial-gradient(ellipse at 50% 50%, #000 55%, transparent 72%); }
.pjs-pj { height: 20%; width: auto; filter: drop-shadow(0 10px 12px rgba(30,35,41,.18)); }
.pjs-diego { height: 74%; }
.pjs-tag { transform: translate(-50%, -100%); background: #fff; border-radius: 8px; padding: 4px 10px; box-shadow: 0 4px 12px rgba(30,35,41,.12);
           font-size: clamp(11px, 1.1vw, 14px); font-weight: 600; color: var(--naranja); white-space: nowrap; opacity: 0; }
@media (max-width: 960px) {
  .pjs { padding: 76px 12px 12px; margin-top: 100px; }
  .pjs-card { border-radius: 26px; }
  .pjs-texto { min-height: 150px; }
  .pjs-stage { width: 128vw; }
  .pjs-paso { inset: 0 18px; }
  .pjs-paso p { font-size: 15px; }
  .pjs-tag { font-size: 10px; padding: 2px 6px; }
  .pjs-diego { height: 62%; }
}

/* ===== Pasada 23/oct: hero sin celulares montados y franja de herramientas ===== */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1040px; margin: 0 auto; padding: 56px 24px 0; }
.trio-c { position: relative; display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; row-gap: 14px; align-items: start;
  padding: 20px 20px 18px; border-radius: 22px; background: #fff; color: var(--ink); text-decoration: none;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -28px rgba(30, 35, 41, .35);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.trio-c::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px var(--acento); opacity: 0; transition: opacity .6s var(--ease); }
.trio-c:hover { transform: translateY(-4px); }
.trio-c.on { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 26px 50px -26px var(--sombra); }
.trio-c.on::before { opacity: 1; }
.trio-c img { width: 48px; height: 48px; border-radius: 14px; }
.trio-c img.iso { background: #fff; box-shadow: 0 0 0 1px var(--line); padding: 8px; object-fit: contain; }
.trio-c b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.trio-c span { display: block; font-size: 14px; line-height: 1.5; color: var(--gris); }
.trio-c em { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-style: normal; font-size: 13px; font-weight: 500; color: var(--gris);
  padding-top: 12px; border-top: 1px solid var(--line); }
.trio-c .vivo i { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); }
.trio-c.on .vivo i { animation: latido 1.4s var(--ease) infinite; }
.trio-c .nivel i { flex: 0 0 70px; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.trio-c .nivel s { display: block; height: 100%; width: 50%; border-radius: inherit; background: var(--acento); transition: width 1s var(--ease); }
.trio-c.on .nivel s { width: 75%; }
.c-k1 { --acento: var(--naranja); --sombra: rgba(242, 107, 29, .45); }
.c-ak { --acento: var(--ak); --sombra: rgba(245, 196, 0, .45); }
.c-ia { --acento: var(--asfalto); --sombra: rgba(44, 62, 80, .4); }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(31, 157, 85, .5); } 100% { box-shadow: 0 0 0 9px rgba(31, 157, 85, 0); } }

@media (max-width: 860px) {
  /* Hero: tres celulares completos y separados dentro de los 390 px; una notificación a la vez, arriba */
  body #s1 .stage { height: 300px; }
  body #s1 .stage .phone { bottom: -130px; }
  body #s1 .stage .p-k1 { transform: translateX(-50%) scale(.6); }
  body #s1 .stage .p-ak { transform: translateX(calc(-50% - 106px)) rotate(-5deg) scale(.42); }
  body #s1 .stage .p-ia { transform: translateX(calc(-50% + 106px)) rotate(5deg) scale(.42); }
  body #s1 .stage .toast, body #s1 .stage .t2, body #s1 .stage .t3 { display: flex; top: 0; right: auto; left: 50%; margin-left: 0; translate: -50% 0; padding: 9px 14px 9px 9px; }
  body #s1 .stage .toast img { width: 30px; height: 30px; }
  body #s1 .stage .toast b { font-size: 13px; }

  .trio { grid-template-columns: 1fr; gap: 10px; padding: 28px 16px 0; }
  .trio-c { grid-template-columns: 44px 1fr; align-items: center; row-gap: 0; padding: 14px 16px; border-radius: 18px; }
  .trio-c img { width: 44px; height: 44px; border-radius: 12px; }
  .trio-c b { font-size: 17px; margin-bottom: 2px; }
  .trio-c span { font-size: 13px; line-height: 1.4; }
  .trio-c em { display: none; }

  /* Títulos a escala de celular */
  body #s3 h2 { font-size: 36px; }
  .cierre h2 { font-size: 32px; }
  /* Las hojas del papel no se salen por la derecha */
  body #s3 .hoja { width: 40%; }
  body #s3 .hoja .sello { top: auto; bottom: 8px; }
  /* Personajes: más grandes dentro de la tarjeta */
  .pjs-stage { width: 138vw; }
  .pjs { margin-top: 40px; height: 82svh; padding-top: 70px; }
  .pjs-tag { font-size: 11px; }
}

/* ===== Pasada 25/oct: Tecnología centrada en celular, marcas sin subtítulo ===== */
#herramientas .marca img { grid-row: auto; }
#herramientas .marca h3 { align-self: center; }
@media (max-width: 860px) {
  #herramientas .sec-cab, #herramientas .anat-txt, #herramientas .fila-txt { text-align: center; }
  #herramientas .sec-cab p { justify-self: center; }
  #herramientas .marca { justify-content: center; }
  #herramientas .anat-txt p, #herramientas .fila-txt p { margin: 0 auto; text-wrap: balance; }
}
/* ===== Akademia como plataforma de juego: ruta, video, pregunta, medalla y certificado ===== */
.akd { --ak-d: #D9AD00; --ak-f: #FFF7D1; display: grid; grid-template-columns: .8fr 1.4fr; align-items: center; gap: 30px; max-width: 1140px; margin: 110px auto 0; }
.akd-stage { position: relative; height: 560px; display: flex; justify-content: center; align-items: center;
  background: radial-gradient(closest-side, var(--ak-f), transparent); }
.akd-cel .screen { height: 500px; background: #F8F7F4; }
.akd-app { position: relative; height: 100%; padding: 44px 14px 14px; text-align: left; }
.akd-top { display: flex; justify-content: space-between; align-items: center; }
.akd-top img { height: 22px; }
.akd-nivel { font-size: 10px; font-weight: 700; color: var(--ink); background: var(--ak); border-radius: 20px; padding: 3px 9px; box-shadow: 0 2px 0 var(--ak-d); }
.akd-curso { background: #fff; border-radius: 14px; padding: 10px 12px; margin-top: 12px; box-shadow: 0 0 0 1px #EAE7DD; }
.akd-curso small { font-size: 8px; letter-spacing: .08em; color: var(--muted); }
.akd-curso > b { display: block; font-size: 13px; font-weight: 600; margin: 2px 0 8px; }
.akd-avance { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--gris); }
.akd-avance span b { font-weight: 700; color: var(--ink); }
.akd-barra { flex: 1; display: block; height: 8px; border-radius: 8px; background: #EAE7DD; overflow: hidden; }
.akd-barra s { display: block; height: 100%; width: 50%; border-radius: inherit; background: var(--ak); }
.akd-ruta { display: flex; flex-direction: column; align-items: center; gap: 11px; margin-top: 18px; }
.nodo { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #E5E2DA; box-shadow: 0 5px 0 #CFCBC1; }
.nodo svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; grid-area: 1 / 1; }
.nodo:nth-child(2) { transform: translateX(-34px); } .nodo:nth-child(4) { transform: translateX(34px); }
.nodo.ok, .nodo.act { background: var(--ak); box-shadow: 0 5px 0 var(--ak-d); }
.nodo.ok svg, .nodo.act svg { stroke: var(--ink); }
.nodo .ic-play { fill: var(--ink); stroke: none; } .nodo .ic-ok { opacity: 0; }
.nodo.sig .ic-play { opacity: 0; } .nodo.sig .ic-lock { stroke: #A9A498; stroke-width: 2; }
.nodo.act::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 3px solid var(--ak); opacity: .5; animation: akPulso 1.4s ease-out infinite; }
.nodo.meta svg { stroke: #A9A498; stroke-width: 2; }
@keyframes akPulso { from { transform: scale(.9); opacity: .7; } to { transform: scale(1.25); opacity: 0; } }
.akd-globo { position: absolute; left: 54px; top: 11px; white-space: nowrap; font-style: normal; font-size: 10px; font-weight: 600; color: var(--ink);
  background: #fff; border-radius: 10px; padding: 5px 9px; box-shadow: 0 0 0 1.5px #EAE7DD, 0 3px 0 #EAE7DD; }
.akd-capa { z-index: 5; position: absolute; left: 10px; right: 10px; bottom: 10px; background: #fff; border-radius: 20px; padding: 14px; box-shadow: 0 -10px 30px -12px rgba(30,35,41,.3); opacity: 0; }
.akd-capa > b { display: block; font-size: 13px; font-weight: 600; } .akd-capa > span { font-size: 11px; color: var(--muted); }
.vid { position: relative; height: 120px; border-radius: 14px; margin-bottom: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #2C3E50, #1E2329); overflow: hidden; }
.vid svg { width: 40px; height: 40px; fill: var(--ak); }
.vbar { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); }
.vbar s { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ak); }
.akd-quiz small { font-size: 8px; letter-spacing: .08em; color: var(--muted); }
.akd-quiz > b { margin: 3px 0 10px; }
.op { font-size: 11px; color: var(--gris); padding: 9px 12px; border-radius: 12px; margin-top: 7px; box-shadow: 0 0 0 1.5px #EAE7DD, 0 3px 0 #EAE7DD; transition: all .3s; }
.op.bien { background: #E7F6EE; color: #157443; box-shadow: 0 0 0 1.5px #7CCB9F, 0 3px 0 #7CCB9F; font-weight: 600; }
.akd-xp { position: absolute; right: 16px; top: 12px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--ak); border-radius: 10px; padding: 3px 8px; opacity: 0; }
.akd-logro { top: 60px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.akd-logro > b { font-size: 18px; margin-top: 6px; }
.medalla svg { width: 96px; height: 96px; } .medalla circle { fill: var(--ak); stroke: var(--ak-d); stroke-width: 3; }
.medalla .cinta { fill: #2C3E50; } .medalla .estrella { fill: #fff; }
.akd-btn { margin-top: 14px; font-size: 12px; font-weight: 700; color: var(--ink); background: var(--ak); border-radius: 14px; padding: 11px 18px; box-shadow: 0 4px 0 var(--ak-d); }
.confeti { position: absolute; left: 50%; top: 34%; }
.confeti i { position: absolute; width: 7px; height: 11px; border-radius: 2px; background: var(--ak); opacity: 0; }
.confeti i:nth-child(3n) { background: #2C3E50; } .confeti i:nth-child(3n+1) { background: #7CCB9F; }
/* Piezas alrededor del celular */
#herramientas .akd .pieza { position: absolute; width: 180px; }
#herramientas .akd .lbl::before { background: var(--ak); }
.akd .a1 { left: 0; top: 60px; } .akd .a2 { right: 0; top: 120px; } .akd .a3 { left: 10px; bottom: 50px; }
#herramientas .akd.abierto .pieza { opacity: 1; transform: none; }
.akd .a2 { transition-delay: .2s; } .akd .a3 { transition-delay: .4s; }
.cump { display: flex; flex-direction: column; margin-bottom: 8px; }
.cump b { font-size: 26px; font-weight: 700; line-height: 1.1; } .cump > span { font-size: 11px; color: var(--gris); }
.akd .pz .akd-barra s { width: 0; transition: width 1.4s var(--ease) .6s; }
.akd.abierto .pz .akd-barra s { width: var(--w); }
.medallas { display: flex; justify-content: space-between; gap: 6px; }
.medallas span { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 9px; color: var(--gris); text-align: center; flex: 1; }
.medallas i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 14px;
  color: var(--ink); background: var(--ak); box-shadow: 0 3px 0 var(--ak-d); transform: scale(0); transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.akd.abierto .medallas i { transform: scale(1); }
.akd.abierto .medallas span:nth-child(1) i { transition-delay: .7s; } .akd.abierto .medallas span:nth-child(2) i { transition-delay: .9s; } .akd.abierto .medallas span:nth-child(3) i { transition-delay: 1.1s; }
.cert { position: relative; background: #fff; border: 1.5px solid #EAE7DD; }
.cert small { font-size: 8px; letter-spacing: .1em; color: var(--muted); } .cert b { display: block; font-size: 12px; font-weight: 600; margin: 2px 0; padding-right: 30px; }
.cert span { font-size: 10px; color: var(--gris); }
.cert .sello { position: absolute; right: 10px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--ak); box-shadow: 0 0 0 3px var(--ak-f); }
@media (max-width: 860px) {
  .akd { grid-template-columns: 1fr; gap: 26px; margin-top: 70px; }
  .akd-stage { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .akd-cel { grid-column: 1 / -1; justify-self: center; margin-bottom: 10px; }
  #herramientas .akd .pieza { position: relative; inset: auto; width: auto; transform: translateY(24px); }
  .akd .a3 { grid-column: 1 / -1; }
}.akd .a1 { --x: 90px; --y: 30px; } .akd .a2 { --x: -90px; --y: 20px; } .akd .a3 { --x: 90px; --y: -30px; }
