/* =============================================================
   ProShop — Movimiento: escena del hero, ilustraciones y flujos.
   Todo es decorativo (aria-hidden) y se pausa fuera de pantalla.
   ============================================================= */

/* ---------- Portada: reparto y fondo ---------- */
.hero .shell { position: relative; z-index: 1; }
.hero::after { /* cuadricula que se desplaza despacio */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 85%);
  mask-image: linear-gradient(90deg, transparent 10%, #000 85%);
  animation: gridpan 40s linear infinite;
  pointer-events: none;
}
@keyframes gridpan { to { background-position: 72px 72px; } }

.hero-main { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 56px); }
.hero-title { font-size: clamp(2.2rem, 4.4vw, 3.7rem); }

/* Palabras que rotan */
.hero-rot { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5em; margin-top: 20px; font-size: clamp(1.1rem, 1.7vw, 1.4rem); font-weight: 700; color: #fff; }
.rot-lbl { color: #b9acd0; font-weight: 600; }
.rot-words { position: relative; display: inline-block; padding-bottom: 2px; color: #fff; border-bottom: 2px solid #22e3a6; }
.rot-w { display: inline-block; animation: palabra .55s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes palabra { from { opacity: 0; transform: translateY(70%); } to { opacity: 1; transform: none; } }
.hero-lead { margin-top: 18px; }

/* Ficha de datos: franja bajo la portada */
.hero .specs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(40px, 5vw, 64px); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--r-card); overflow: hidden; }
.hero .spec { background: none; border: 0; border-right: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0; }
.hero .spec:last-child { border-right: 0; }
.hero .spec:hover { background: rgba(255, 255, 255, 0.05); }
@media (max-width: 980px) {
  .hero-main { grid-template-columns: 1fr; }
  .hero .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .spec:nth-child(2) { border-right: 0; }
  .hero .spec:nth-child(-n + 2) { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
}
@media (max-width: 520px) {
  .hero .specs { grid-template-columns: 1fr; }
  .hero .spec { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .hero .spec:last-child { border-bottom: 0; }
}

/* ---------- Franja que se desplaza ---------- */
.marquee { display: flex; align-items: center; gap: 26px; margin-top: clamp(32px, 4vw, 52px); }
.mq-lbl { flex: none; max-width: 120px; font-size: 11.5px; font-weight: 800; letter-spacing: .13em; line-height: 1.45; text-transform: uppercase; color: var(--ink-3); }
.mq-view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.mq-track { display: flex; gap: 12px; width: max-content; animation: marquee 46s linear infinite; }
.mq-track li { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--ink-2); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--r-pill); }
.mq-track svg { width: 18px; height: 18px; fill: none; stroke: #22e3a6; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 640px) { .mq-lbl { display: none; } }

/* ---------- Escena animada (560 x 500 base, escalada con JS) ---------- */
.scene { position: relative; width: 100%; aspect-ratio: 560 / 500; --k: .8; }
.scene-in { position: absolute; left: 0; top: 0; width: 560px; height: 500px; transform-origin: 0 0; transform: scale(var(--k)); }
.sc-par { translate: calc(var(--px, 0) * var(--pd, 6) * 1px) calc(var(--py, 0) * var(--pd, 6) * 1px); transition: translate .25s ease-out; }
.sc-links { position: absolute; left: 0; top: 0; width: 560px; height: 500px; overflow: visible; }
.sc-links .flujo { fill: none; stroke: rgba(34, 227, 166, 0.6); stroke-width: 2; stroke-dasharray: 5 7; animation: flujo 1s linear infinite; }
.sc-links .pk { fill: #22e3a6; } .sc-links .pk2 { fill: #fff; }
@keyframes flujo { to { stroke-dashoffset: -12; } }

.win, .dbn, .ph, .aig, .note { position: absolute; color: #281d32; }
.win { left: 0; top: 70px; width: 372px; height: 330px; background: #fbfaff; border-radius: 16px; overflow: hidden; box-shadow: 0 28px 60px rgba(4, 0, 18, 0.45); animation: flotar 8s ease-in-out infinite; }
.win-head { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; background: #fff; border-bottom: 1px solid #eee9f2; }
.win-head i { width: 8px; height: 8px; border-radius: 50%; background: #e2dcea; }
.win-head i:nth-child(1) { background: #f0a3a3; } .win-head i:nth-child(2) { background: #f2cf8a; } .win-head i:nth-child(3) { background: #7fd8b4; }
.win-head span { margin-left: 8px; padding: 2px 12px; font-size: 9px; font-weight: 700; color: #9688a7; background: #f4f0f8; border-radius: 99px; }
.win-body { display: grid; grid-template-columns: 58px 1fr; height: 300px; }
.win-side { display: grid; align-content: start; gap: 9px; padding: 14px 10px; background: #2a1450; }
.win-side b { height: 26px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); }
.win-side b.on { background: #22e3a6; animation: parpadeo 3s ease-in-out infinite; }
.win-main { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; min-width: 0; padding: 14px 16px; }
.win-title { display: flex; align-items: center; justify-content: space-between; }
.win-title strong { font-size: 13.5px; font-weight: 800; letter-spacing: -0.02em; }
.win-title em { display: flex; align-items: center; gap: 6px; font-size: 9.5px; font-style: normal; font-weight: 800; color: #0f9d74; }
.win-title em::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22c58f; animation: parpadeo 1.6s ease-in-out infinite; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { padding: 8px 10px; background: #fff; border: 1px solid #eee9f2; border-radius: 10px; }
.kpi small { display: block; font-size: 8.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9688a7; }
.kpi strong { display: block; margin-top: 2px; font-size: 15px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.win-chart { position: relative; min-height: 96px; overflow: hidden; background: #f6f3fb; border-radius: 10px; }
.win-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.win-chart .gr { fill: none; stroke: #e8e2ef; stroke-width: 1; }
.win-chart .line { fill: none; stroke: #5a2bc0; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: trazar 7s ease-in-out infinite; }
.win-chart .area { fill: rgba(90, 43, 192, 0.1); opacity: 0; animation: velo 7s ease-in-out infinite; }
.bars { position: absolute; left: 10px; right: 10px; bottom: 0; display: flex; align-items: flex-end; gap: 6px; height: 46%; }
.bars i { flex: 1; background: rgba(34, 227, 166, 0.55); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: barra 3.2s ease-in-out infinite alternate; }
.bars i:nth-child(1) { height: 40%; animation-delay: -.2s; } .bars i:nth-child(2) { height: 65%; animation-delay: -.9s; }
.bars i:nth-child(3) { height: 50%; animation-delay: -1.4s; } .bars i:nth-child(4) { height: 85%; animation-delay: -.5s; }
.bars i:nth-child(5) { height: 60%; animation-delay: -2s; } .bars i:nth-child(6) { height: 100%; animation-delay: -1.1s; background: rgba(90, 43, 192, 0.5); }
.bars i:nth-child(7) { height: 72%; animation-delay: -1.7s; } .bars i:nth-child(8) { height: 55%; animation-delay: -.7s; }
.rows { display: grid; gap: 6px; }
.row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #fff; border: 1px solid #eee9f2; border-radius: 10px; }
.row i { width: 18px; height: 18px; border-radius: 50%; background: #7b58ed; flex: none; }
.row:nth-child(2) i { background: #22c58f; }
.row b { flex: 1; max-width: 55%; height: 6px; border-radius: 3px; background: #e6e0ee; }
.row .st { margin-left: auto; padding: 2px 9px; font-size: 8.5px; font-weight: 800; border-radius: 99px; }
.st.s1 { color: #4a1fa8; background: #ebe3fb; animation: parpadeo 2.4s ease-in-out infinite; }
.st.s2 { color: #7a5200; background: #fbecc6; }

.dbn { left: 396px; top: 12px; width: 152px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-radius: 14px; box-shadow: 0 22px 48px rgba(4, 0, 18, 0.4); animation: flotar 7s -2s ease-in-out infinite; }
.db-ico { width: 40px; height: 44px; flex: none; }
.db-ico .e { fill: rgba(90, 43, 192, 0.07); stroke: #5a2bc0; stroke-width: 2; stroke-linejoin: round; }
.db-ico .led { fill: #22c58f; animation: parpadeo 1.8s ease-in-out infinite; }
.db-ico .l2 { animation-delay: .5s; } .db-ico .l3 { animation-delay: 1s; }
.db-txt small { display: block; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #9688a7; }
.db-txt strong { display: block; font-size: 14px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.db-txt em { font-size: 9.5px; font-style: normal; color: #9688a7; }

.ph { left: 408px; top: 238px; width: 138px; height: 248px; padding: 7px; background: #150a26; border-radius: 24px; box-shadow: 0 28px 56px rgba(4, 0, 18, 0.5); animation: flotar 9s -4s ease-in-out infinite; }
.ph-screen { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #efeae2; border-radius: 18px; }
.ph-h { display: flex; align-items: center; gap: 6px; padding: 9px; background: #1f2c33; }
.ph-h i { width: 18px; height: 18px; border-radius: 50%; background: #22e3a6; }
.ph-h b { width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.7); }
.ph-chat { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; padding: 8px 6px 12px; }
.ph-chat p { max-width: 88%; padding: 5px 7px; font-size: 8.4px; line-height: 1.3; font-weight: 600; color: #111b21; border-radius: 7px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); opacity: 0; }
.ph-chat .c1, .ph-chat .c3 { align-self: flex-end; background: #d9fdd3; }
.ph-chat .c2, .ph-chat .c4 { align-self: flex-start; background: #fff; }
.ph-chat .c1 { animation: m1 12s infinite; } .ph-chat .c2 { animation: m2 12s infinite; }
.ph-chat .c3 { animation: m3 12s infinite; } .ph-chat .c4 { animation: m4 12s infinite; }
.typing { position: absolute; left: 7px; bottom: 6px; display: flex; gap: 3px; padding: 5px 8px; background: #fff; border-radius: 8px; opacity: 0; animation: escribiendo 12s infinite; }
.typing i { width: 4px; height: 4px; border-radius: 50%; background: #8a8a8a; animation: punto 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes m1 { 0%, 4% { opacity: 0; transform: translateY(8px); } 8%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes m2 { 0%, 26% { opacity: 0; transform: translateY(8px); } 30%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes m3 { 0%, 50% { opacity: 0; transform: translateY(8px); } 54%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes m4 { 0%, 72% { opacity: 0; transform: translateY(8px); } 76%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes escribiendo { 0%, 12% { opacity: 0; } 15%, 25% { opacity: 1; } 27%, 36% { opacity: 0; } 38%, 48% { opacity: 1; } 50%, 60% { opacity: 0; } 62%, 70% { opacity: 1; } 72%, 100% { opacity: 0; } }

.aig { left: 60px; top: 424px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: #fff; border-radius: 16px; box-shadow: 0 22px 48px rgba(4, 0, 18, 0.4); animation: flotar 7.5s -1s ease-in-out infinite; }
.ai-core { position: relative; display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: #5a2bc0; border-radius: 12px; }
.ai-core svg { width: 20px; height: 20px; fill: currentColor; animation: pulso 2.6s ease-in-out infinite; }
.ai-core .orb { position: absolute; inset: -7px; border-radius: 50%; animation: giro 4.5s linear infinite; }
.ai-core .orb::after { content: ""; position: absolute; left: 50%; top: 0; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #22e3a6; }
.ai-txt strong { display: block; font-size: 13px; font-weight: 800; letter-spacing: -0.02em; }
.ai-txt small { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #7a6d8f; }
.ai-txt small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22c58f; animation: parpadeo 1.6s ease-in-out infinite; }

.note { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-radius: 14px; box-shadow: 0 18px 40px rgba(4, 0, 18, 0.35); }
.note i { display: grid; place-items: center; width: 30px; height: 30px; font-style: normal; font-size: 14px; font-weight: 800; color: #0f9d74; background: #def8ee; border-radius: 10px; }
.note small { display: block; font-size: 9.5px; font-weight: 700; color: #7a6d8f; }
.note strong { display: block; font-size: 13px; font-weight: 800; letter-spacing: -0.02em; }
.nt1 { left: 232px; top: 16px; animation: flotar 5.5s ease-in-out infinite; }
.nt2 { left: 252px; top: 372px; animation: flotar 6.5s -3s ease-in-out infinite; }
.nt2 i { color: #5a2bc0; background: #ebe3fb; }

@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes parpadeo { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes barra { from { transform: scaleY(.4); } to { transform: scaleY(1); } }
@keyframes trazar { 0% { stroke-dashoffset: 420; } 38%, 86% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -420; } }
@keyframes velo { 0%, 30% { opacity: 0; } 50%, 86% { opacity: 1; } 100% { opacity: 0; } }
@keyframes punto { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
@keyframes giro { to { transform: rotate(360deg); } }
@keyframes pulso { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* ---------- Ilustraciones de "Que hacemos" ---------- */
.feat-art { margin: -4px -4px 22px; padding: 10px 12px; background: color-mix(in srgb, var(--accent-ink) 7%, var(--paper-2)); border-radius: var(--r-md); transition: background .3s ease; }
.feat:hover .feat-art { background: color-mix(in srgb, var(--accent-ink) 12%, var(--paper-2)); }
.feat-hi .feat-art { background: rgba(255, 255, 255, 0.06); }
.art { display: block; width: 100%; height: auto; overflow: visible; }
.art .cd { fill: var(--card); stroke: var(--rule); stroke-width: 1.2; }
.art .ln, .art .st { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.art .st2 { fill: none; stroke: var(--accent-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.art .g { fill: color-mix(in srgb, var(--ink) 15%, transparent); }
.art .v { fill: var(--accent-ink); }
.art .m, .art .mm { fill: var(--mint); }
.art .bl { fill: rgba(255, 255, 255, 0.78); }
.art .d1 { fill: #ef9a9a; } .art .d2 { fill: #f2cf8a; } .art .d3 { fill: #7fd8b4; }
.art .cb { fill: none; stroke: var(--ink-3); stroke-width: 1.5; }

/* web: se arma sola */
.art-web .ar, .art-web .pp, .art-web .cur, .art-web .im { transform-box: fill-box; }
.art-web .ar { transform-origin: left center; animation: armar 7s cubic-bezier(.3, .7, .2, 1) infinite; }
.art-web .b2 { animation-delay: .22s; } .art-web .b3 { animation-delay: .44s; }
.art-web .pp { transform-origin: center; animation: boton 7s cubic-bezier(.3, .7, .2, 1) infinite; }
.art-web .im { transform-origin: center; animation: foto 7s ease infinite; }
.art-web .cur { fill: var(--ink); stroke: var(--card); stroke-width: 1; animation: cursor 7s ease-in-out infinite; }
@keyframes armar { 0%, 6% { transform: scaleX(0); } 22%, 88% { transform: scaleX(1); } 97%, 100% { transform: scaleX(0); } }
@keyframes boton { 0%, 30% { transform: scale(0); } 38% { transform: scale(1.14); } 44%, 88% { transform: scale(1); } 97%, 100% { transform: scale(0); } }
@keyframes foto { 0%, 14% { opacity: 0; transform: scale(.9); } 30%, 88% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes cursor { 0%, 30% { transform: translate(190px, 52px); opacity: 0; } 36% { opacity: 1; } 52% { transform: translate(40px, 98px); } 56% { transform: translate(40px, 100px) scale(.88); } 60% { transform: translate(40px, 98px); } 88% { transform: translate(40px, 98px); opacity: 1; } 96%, 100% { transform: translate(190px, 52px); opacity: 0; } }

/* movil: lista que se desplaza y avisos */
.art-movil .lista { animation: lista 8s ease-in-out infinite; }
.art-movil .aviso { animation: aviso 8s ease-in-out infinite; }
.art-movil .bx { transform-box: fill-box; transform-origin: bottom; animation: barra 2.6s ease-in-out infinite alternate; }
.art-movil .bar2 { animation-delay: -.6s; } .art-movil .bar3 { animation-delay: -1.2s; } .art-movil .bar4 { animation-delay: -1.8s; }
@keyframes lista { 0%, 10% { transform: translateY(0); } 34%, 46% { transform: translateY(-48px); } 70%, 84% { transform: translateY(-96px); } 100% { transform: translateY(0); } }
@keyframes aviso { 0%, 18% { transform: translateX(34px); opacity: 0; } 26%, 58% { transform: none; opacity: 1; } 68%, 100% { transform: translateX(34px); opacity: 0; } }

/* datos: barras, linea y anillo */
.art-datos .bx { transform-box: fill-box; transform-origin: bottom; animation: barra 3s ease-in-out infinite alternate; }
.art-datos .br2 { animation-delay: -.5s; } .art-datos .br3 { animation-delay: -1s; } .art-datos .br4 { animation-delay: -1.5s; } .art-datos .br5 { animation-delay: -2s; } .art-datos .br6 { animation-delay: -.8s; }
.art-datos .trazo { stroke-dasharray: 230; stroke-dashoffset: 230; animation: trazar 6s ease-in-out infinite; }
.art-datos .rg { fill: none; stroke: var(--rule); stroke-width: 9; }
.art-datos .rg-v { fill: none; stroke: var(--mint); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 163.4; stroke-dashoffset: 163; transform: rotate(-90deg); transform-origin: 182px 56px; animation: dona 6s ease-in-out infinite; }
.art-datos .num { font: 800 12px 'Manrope', sans-serif; fill: var(--ink); }
@keyframes dona { 0% { stroke-dashoffset: 163; } 35%, 86% { stroke-dashoffset: 38; } 100% { stroke-dashoffset: 163; } }

/* ia: conversacion */
.art-ia .m1 { animation: ia-a 10s infinite; } .art-ia .tp { animation: ia-t 10s infinite; }
.art-ia .m2 { animation: ia-b 10s infinite; } .art-ia .m3 { animation: ia-c 10s infinite; }
.art-ia .m1, .art-ia .m2, .art-ia .m3, .art-ia .tp { opacity: 0; }
.art-ia .pt { fill: var(--ink-3); animation: punto 1s infinite; } .art-ia .p2 { animation-delay: .15s; } .art-ia .p3 { animation-delay: .3s; }
.art-ia .chispa { fill: #fff; transform-box: fill-box; transform-origin: center; animation: giro 7s linear infinite; }
.art-ia .chip circle { animation: pulso 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ia-a { 0%, 4% { opacity: 0; transform: translateY(8px); } 9%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes ia-t { 0%, 14% { opacity: 0; } 18%, 34% { opacity: 1; } 38%, 100% { opacity: 0; } }
@keyframes ia-b { 0%, 36% { opacity: 0; transform: translateY(8px); } 42%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes ia-c { 0%, 60% { opacity: 0; transform: translateY(8px); } 66%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }

/* conexion: paquetes de datos */
.art-conexion .flujo { fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-dasharray: 4 6; opacity: .55; animation: flujo 1s linear infinite; }
.art-conexion .pk { fill: var(--accent-ink); } .art-conexion .pk2 { fill: var(--mint); }
.art-conexion .nd { transform-box: fill-box; transform-origin: center; animation: nodo 6s ease-in-out infinite; }
.art-conexion .n2 { animation-delay: 2s; } .art-conexion .n3 { animation-delay: 4s; }
.art-conexion .nd .v { fill: var(--accent-ink); } .art-conexion .nd .m { fill: var(--mint); }
@keyframes nodo { 0%, 22%, 100% { transform: scale(1); } 8% { transform: scale(1.12); } }

/* avance: lista que se completa */
.art-avance .ck, .art-avance .cka { fill: none; stroke: var(--mint); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; }
.art-avance .cka { stroke: #fff; }
.art-avance .i1 .ck { animation: chk 8s infinite; } .art-avance .i2 .ck { animation: chk 8s 1.3s infinite; } .art-avance .i3 .ck { animation: chk 8s 2.6s infinite; }
.art-avance .rl { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); animation: prog 8s ease-in-out infinite; }
.art-avance .ok { transform-box: fill-box; transform-origin: center; opacity: 0; animation: listo 8s infinite; }
.art-avance .cka { animation: chk 8s 4.6s infinite; }
@keyframes chk { 0%, 6% { stroke-dashoffset: 22; } 14%, 90% { stroke-dashoffset: 0; } 97%, 100% { stroke-dashoffset: 22; } }
@keyframes prog { 0%, 4% { transform: scaleX(0); } 62%, 90% { transform: scaleX(1); } 97%, 100% { transform: scaleX(0); } }
@keyframes listo { 0%, 58% { opacity: 0; transform: scale(.4); } 66% { opacity: 1; transform: scale(1.15); } 72%, 90% { opacity: 1; transform: scale(1); } 97%, 100% { opacity: 0; } }

/* ---------- Como trabajamos: iconos y linea de avance ---------- */
.step-ico { display: block; margin-bottom: 14px; }
.pico { display: block; width: 56px; height: 56px; fill: none; stroke: #22e3a6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.pico .b-b { fill: rgba(34, 227, 166, 0.14); }
.pico .dp { fill: #22e3a6; stroke: none; animation: punto 1.2s infinite; } .pico .d2 { animation-delay: .2s; } .pico .d3 { animation-delay: .4s; }
.pico .ln1 { stroke-dasharray: 22; stroke-dashoffset: 22; animation: escribe 4.5s infinite; } .pico .l2 { animation-delay: .5s; } .pico .l3 { animation-delay: 1s; }
.pico .ok-c { fill: #22e3a6; stroke: none; transform-box: fill-box; transform-origin: center; animation: sello 4.5s infinite; }
.pico .ok-t { stroke: #16082b; stroke-width: 2.4; stroke-dasharray: 16; stroke-dashoffset: 16; animation: sello-t 4.5s infinite; }
.pico .gear { stroke-width: 5; stroke-dasharray: 5 4.8; transform-box: fill-box; transform-origin: center; animation: giro 9s linear infinite; }
.pico .g-b { stroke-dasharray: 4 3.6; animation-direction: reverse; }
.pico .up { fill: rgba(34, 227, 166, 0.2); transform-box: fill-box; transform-origin: bottom; animation: barra 2.8s ease-in-out infinite alternate; }
.pico .u2 { animation-delay: -.9s; } .pico .u3 { animation-delay: -1.8s; }
.pico .fl { stroke-dasharray: 80; stroke-dashoffset: 80; animation: escribe-l 4.5s infinite; }
@keyframes escribe { 0%, 8% { stroke-dashoffset: 22; } 28%, 88% { stroke-dashoffset: 0; } 97%, 100% { stroke-dashoffset: 22; } }
@keyframes escribe-l { 0%, 8% { stroke-dashoffset: 80; } 40%, 88% { stroke-dashoffset: 0; } 97%, 100% { stroke-dashoffset: 80; } }
@keyframes sello { 0%, 42% { transform: scale(0); } 52% { transform: scale(1.2); } 58%, 90% { transform: scale(1); } 97%, 100% { transform: scale(0); } }
@keyframes sello-t { 0%, 50% { stroke-dashoffset: 16; } 62%, 90% { stroke-dashoffset: 0; } 97%, 100% { stroke-dashoffset: 16; } }

/* los iconos de los pasos arrancan cuando la seccion entra en pantalla */
.steps .pico *, .steps .step-n::after { animation-play-state: paused; }
.steps.go .pico * { animation-play-state: running; }
.step-n { position: relative; }
.step-n::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: #22e3a6; transition: width .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * .45s + .2s); animation: none; }
.steps.go .step-n::after { width: 100%; }
.step { transition-delay: 0s; }

/* ---------- Contacto: conversacion ---------- */
.chat-card { margin-bottom: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-card); box-shadow: var(--sombra); }
.cc-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #1e0b36; color: #fff; }
.cc-av { width: 36px; height: 36px; border-radius: 50%; background: #22e3a6; position: relative; }
.cc-av::after { content: "P"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #16082b; }
.cc-head strong { display: block; font-size: 14.5px; line-height: 1.2; }
.cc-head small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #22e3a6; font-weight: 700; }
.cc-head small i { width: 6px; height: 6px; border-radius: 50%; background: #22e3a6; animation: parpadeo 1.6s infinite; }
.cc-body { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 238px; padding: 16px 16px 20px; background: var(--paper-2); }
.cc-body p { max-width: 82%; padding: 9px 13px; font-size: 13.5px; line-height: 1.45; font-weight: 600; border-radius: 14px; opacity: 0; }
.cc-body .u1, .cc-body .u2 { align-self: flex-end; color: #fff; background: #5a2bc0; border-bottom-right-radius: 4px; }
.cc-body .b1, .cc-body .b2 { align-self: flex-start; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-bottom-left-radius: 4px; }
.cc-body .u1 { animation: cc1 14s infinite; } .cc-body .b1 { animation: cc2 14s infinite; } .cc-body .u2 { animation: cc3 14s infinite; } .cc-body .b2 { animation: cc4 14s infinite; }
.cc-body .typing { left: 16px; bottom: 14px; background: var(--card); border: 1px solid var(--rule); animation: cc-typ 14s infinite; }
.cc-body .typing i { background: var(--ink-3); width: 5px; height: 5px; }
@keyframes cc1 { 0%, 3% { opacity: 0; transform: translateY(8px); } 7%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes cc2 { 0%, 24% { opacity: 0; transform: translateY(8px); } 28%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes cc3 { 0%, 48% { opacity: 0; transform: translateY(8px); } 52%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes cc4 { 0%, 70% { opacity: 0; transform: translateY(8px); } 74%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes cc-typ { 0%, 12% { opacity: 0; } 14%, 22% { opacity: 1; } 24%, 36% { opacity: 0; } 38%, 46% { opacity: 1; } 48%, 60% { opacity: 0; } 62%, 68% { opacity: 1; } 70%, 100% { opacity: 0; } }

/* ---------- Pausas y accesibilidad ---------- */
.fuera, .fuera * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .scene *, .feat-art *, .pico *, .chat-card *, .mq-track, .hero::after { animation: none !important; }
  .scene .line, .art-datos .trazo, .pico .ln1, .pico .fl, .pico .ok-t, .art-avance .ck, .art-avance .cka { stroke-dashoffset: 0; }
  .scene .area, .ph-chat p, .cc-body p, .art-ia .m1, .art-ia .m2, .art-ia .m3, .art-avance .ok { opacity: 1; }
  .art-avance .rl, .pico .ok-c { transform: none; }
  .art-datos .rg-v { stroke-dashoffset: 38; }
  .art-web .pp, .art-web .im, .art-web .ar { transform: none; opacity: 1; }
  .mq-track { flex-wrap: wrap; }
}
.sin-anim .scene *, .sin-anim .feat-art *, .sin-anim .pico *, .sin-anim .chat-card *, .sin-anim .mq-track { animation: none !important; }
.sin-anim .scene .line, .sin-anim .art-datos .trazo, .sin-anim .pico .ln1, .sin-anim .pico .fl, .sin-anim .pico .ok-t, .sin-anim .art-avance .ck, .sin-anim .art-avance .cka { stroke-dashoffset: 0; }
.sin-anim .scene .area, .sin-anim .ph-chat p, .sin-anim .cc-body p, .sin-anim .art-ia .m1, .sin-anim .art-ia .m2, .sin-anim .art-ia .m3, .sin-anim .art-avance .ok { opacity: 1; }
.sin-anim .art-avance .rl, .sin-anim .pico .ok-c { transform: none; }

/* ---------- Ajustes de la portada y tarjetas ---------- */
.feat-n { display: none; }
.rot-words { overflow: hidden; vertical-align: bottom; line-height: 1.4; }
.hero-cta .btn-lg { min-height: 52px; padding: 0 24px; font-size: 15px; }
.db-txt small { letter-spacing: .03em; white-space: nowrap; }

/* ---------- Proyectos: marco de navegador, estado vivo y carrusel ---------- */
.pp-chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; margin-top: 28px; background: var(--paper-2); border: 1px solid var(--rule); border-bottom: 0; border-radius: var(--r-md) var(--r-md) 0 0; }
.pp-chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }
.pp-chrome i:nth-child(1) { background: #ef9a9a; } .pp-chrome i:nth-child(2) { background: #f2cf8a; } .pp-chrome i:nth-child(3) { background: #7fd8b4; }
.pp-chrome span { margin-left: 10px; padding: 3px 14px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); background: var(--card); border-radius: 99px; }
.pp-chrome + .pp-boceto-visor, .pp-chrome ~ .visor { border-radius: 0 0 var(--r-md) var(--r-md); }
.pp-boceto:has(.pp-chrome) { margin-top: 0; }
.pp-boceto:has(.pp-chrome) .visor, .pp-boceto:has(.pp-chrome) .pp-shot { border-top-left-radius: 0; border-top-right-radius: 0; }
.pp-boceto:has(.pp-chrome) .pp-chrome { margin-top: 0; }
.pp-state-produccion::before { animation: parpadeo 1.8s ease-in-out infinite; }

.proj-tab::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--accent-ink); transform: scaleX(0); transform-origin: left; opacity: 0; }
.proj.auto .proj-tab.is-active::after { opacity: .7; animation: progreso 9s linear forwards; }
.proj.auto:hover .proj-tab.is-active::after, .proj.auto:focus-within .proj-tab.is-active::after { animation-play-state: paused; }
@keyframes progreso { to { transform: scaleX(1); } }
.pp-shot { transition: transform 8s ease; }
.proj-panel.is-active .pp-boceto:not(:has(.visor[data-activo])) .pp-shot { animation: respirar 14s ease-in-out infinite alternate; transform-origin: 50% 0; }
.visor .pp-shot { animation: none !important; }
@keyframes respirar { from { transform: scale(1); } to { transform: scale(1.025); } }

/* ---------- Como trabajamos: flujos de datos de fondo ---------- */
#proceso { overflow: hidden; }
#proceso .shell { position: relative; z-index: 1; }
.net-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
.nb-l { fill: none; stroke: rgba(34, 227, 166, 0.2); stroke-width: 1.5; stroke-dasharray: 3 9; animation: flujo 2.4s linear infinite; }
.nb-p { fill: #22e3a6; }
@media (prefers-reduced-motion: reduce) { .nb-l, .proj.auto .proj-tab.is-active::after, .proj-panel.is-active .pp-shot { animation: none !important; } }
.sin-anim .nb-l, .sin-anim .proj-panel .pp-shot { animation: none !important; }

/* =============================================================
   Problemas de negocio, contexto de proyectos, proceso y tecnologia
   ============================================================= */
.prob { margin-bottom: clamp(36px, 5vw, 56px); }
.sub-t { margin-bottom: 20px; font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 800; letter-spacing: -0.025em; }
.sub-t-2 { margin-top: clamp(36px, 5vw, 56px); margin-bottom: 0; }
.prob-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.prob-card { display: flex; flex-direction: column; padding: clamp(22px, 2.4vw, 28px); background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: var(--r-card); transition: transform .25s ease, box-shadow .25s ease; }
.prob-card:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.prob-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; color: var(--accent-ink); background: color-mix(in srgb, var(--accent-ink) 10%, transparent); border-radius: var(--r-md); }
.prob-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prob-card h4 { margin-bottom: 8px; font-size: 1.12rem; font-weight: 800; letter-spacing: -0.02em; }
.prob-card p { margin-bottom: 16px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.prob-link { margin-top: auto; width: fit-content; font-size: 14px; font-weight: 800; color: var(--accent-ink); border-bottom: 2px solid transparent; transition: border-color .2s ease; }
.prob-link:hover { border-color: currentColor; }
@media (max-width: 900px) { .prob-grid { grid-template-columns: 1fr; } }

.feat-tag { display: inline-block; margin-top: 14px; padding: 5px 11px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: #22e3a6; background: rgba(34, 227, 166, 0.1); border: 1px solid rgba(34, 227, 166, 0.28); border-radius: var(--r-pill); }

.pp-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pp-origen { padding: 7px 13px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); background: color-mix(in srgb, var(--ink) 7%, transparent); border-radius: var(--r-pill); white-space: nowrap; }
.pp-state-piloto { color: #9a6a00; background: color-mix(in srgb, #f5a623 14%, transparent); }
.pp-state-demo { color: var(--ink-2); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.pp-ctx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.pp-ctx > div { padding: 16px 18px; background: var(--paper-2); border-radius: var(--r-md); }
.pp-ctx dt { margin-bottom: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.pp-ctx dd { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink); }
.pp-ctx dd:empty::before { content: attr(data-ph); opacity: .4; }
@media (max-width: 700px) { .pp-ctx { grid-template-columns: 1fr; } }

.steps-nota { max-width: 78ch; margin: clamp(24px, 3vw, 36px) auto 0; padding-top: 20px; font-size: 14px; line-height: 1.7; color: var(--ink-3); text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.12); }
@media (min-width: 981px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

#tecnologia { background: var(--paper-2); }
.tech { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(18px, 3vw, 36px); align-items: stretch; }
.tech-col, .tech-meta { padding: clamp(22px, 2.6vw, 30px); background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-card); }
.tech-col h3 { margin-bottom: 18px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.tech-list { display: grid; gap: 10px; }
.tech-list li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; font-size: 15.5px; font-weight: 700; background: var(--paper-2); border-radius: var(--r-md); transition: transform .2s ease; }
.tech-list li:hover { transform: translateX(4px); }
.tech-ico { display: grid; place-items: center; width: 30px; height: 30px; color: var(--accent-ink); background: color-mix(in srgb, var(--accent-ink) 11%, transparent); border-radius: 9px; flex: none; }
.tech-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tech-meta { display: flex; flex-direction: column; justify-content: center; gap: 14px; color: #fff; background: #1e0b36; border-color: #1e0b36; }
.meta-badge { width: fit-content; padding: 9px 16px; font-size: 14px; font-weight: 800; letter-spacing: .02em; color: #22e3a6; border: 1.5px solid #22e3a6; border-radius: var(--r-pill); }
.tech-meta p { font-size: 15px; line-height: 1.7; color: #d4c9e6; }
@media (max-width: 900px) { .tech { grid-template-columns: 1fr; } }
