/* /desarrollo-software — se carga después de site.css (encabezado, pie, botones, FAQ). */

.ds {
  --cyan: #6fe0ff;
  --green: #30d158;
  --amber: #ffd60a;
  --violet: #9b8cff;
  --s1: #0b0b0e;
  --s3: #1a1a1f;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-x: hidden;
}
.ds .btn--lg { height: 52px; padding: 0 28px; font-size: 16px; }
.ds-nowrap { white-space: nowrap; }
.ds-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: #6fa8ff; margin-bottom: 14px;
}
.ds-caret {
  display: inline-block; width: 0.55em; height: 1.05em; margin-left: 2px; vertical-align: -0.15em;
  background: var(--cyan); animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* Entrada al hacer scroll */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 0.7s ease, transform 0.7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ── Portada ─────────────────────────────────────────────────────────────── */
.ds-hero { position: relative; padding: 56px 0 88px; overflow: hidden; }
.ds-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80% 70% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 70% at 70% 40%, #000 20%, transparent 75%);
}
.ds-hero::before {
  content: ""; position: absolute; width: 720px; height: 720px; right: -160px; top: -200px;
  background: radial-gradient(closest-side, rgba(47, 107, 255, 0.28), transparent);
  filter: blur(20px); pointer-events: none;
}
.ds-hero__inner {
  position: relative; display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 24px; align-items: center;
}
.ds-hero__title {
  font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; line-height: 1.04; letter-spacing: -0.04em;
  color: var(--heading);
}
.ds-hero__sub { margin-top: 20px; font-size: 18px; color: var(--t2); max-width: 52ch; }
.ds-hero__sub strong { color: var(--heading); font-weight: 600; }
.ds-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ds-typed { margin-top: 28px; font-family: var(--mono); font-size: 14px; color: var(--t3); }
.ds-typed__prompt { color: var(--brand); }
.ds-typed__word { color: var(--cyan); }

/* Video de la portada (Remotion: src/videos/SoftwareBuild.tsx). El negro del
   video se funde con el fondo, igual que en la portada de Naga. */
.ds-video { position: relative; width: 100%; aspect-ratio: 4 / 3; }
@media (min-width: 961px) { .ds-video { width: 118%; } }
.ds-video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; mix-blend-mode: screen; }

@keyframes build { from { opacity: 0; transform: translateY(4px); } }

@keyframes grow { from { transform: scaleY(0); } }

/* ── Bloques comunes ─────────────────────────────────────────────────────── */
.ds-block { padding-top: 112px; }
.ds-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.ds-head--left { text-align: left; margin: 0; }
.ds-head h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.035em; color: var(--heading); }
.ds-lead { margin-top: 16px; color: var(--t2); font-size: 17px; }
.ds-head:not(.ds-head--left) .ds-lead { margin-left: auto; margin-right: auto; max-width: 62ch; }

/* ── Clientes (cinta) ────────────────────────────────────────────────────── */
.ds-clients { padding-top: 32px; }
.ds-clients .ds-head { margin-bottom: 32px; }
.clients { position: relative; overflow-x: auto; scrollbar-width: none; }
.clients::-webkit-scrollbar { display: none; }
/* Bordes que se desvanecen */
.clients::before, .clients::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 1; pointer-events: none; }
.clients::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.clients::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.clients__track { display: flex; width: max-content; }
.clients.is-running { overflow: hidden; }
.clients.is-running .clients__track { animation: clients 60s linear infinite; }
.clients.is-running:hover .clients__track, .clients.is-running:focus-within .clients__track { animation-play-state: paused; }
@keyframes clients { to { transform: translateX(-50%); } }
.clients__list { list-style: none; margin: 0; padding: 4px 8px; display: flex; gap: 16px; }
.client {
  display: flex; flex-direction: column; width: 320px; padding: 18px 18px 22px; border-radius: 20px;
  background: var(--s1); border: 1px solid var(--border); transition: border-color 0.3s;
}
.client:hover { border-color: var(--border-hi); }
.client__logo { display: flex; align-items: center; height: 64px; margin: 4px 0 18px; }
.client__logo img { max-width: 220px; max-height: 52px; width: auto; height: auto; object-fit: contain; }
.client__name { font-size: 17px; font-weight: 600; color: var(--heading); line-height: 1.3; }
.client__tags { margin-top: 2px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--cyan); }
.client__desc { margin-top: 8px; font-size: 14.5px; color: var(--t2); line-height: 1.5; }
@media (max-width: 640px) {
  .ds-clients { padding-top: 16px; }
  .client { width: 270px; }
  .client__logo { height: 56px; }
  .client__logo img { max-width: 190px; max-height: 46px; }
}

/* ── Configurador ────────────────────────────────────────────────────────── */
.cfg {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; padding: 28px;
  border-radius: 28px; border: 1px solid var(--border); background: radial-gradient(100% 120% at 100% 0%, rgba(47, 107, 255, 0.1), transparent 60%), var(--s1);
}
.cfg__label { font-size: 13px; font-weight: 600; color: var(--t3); text-transform: uppercase; letter-spacing: 0.08em; margin: 4px 0 12px; }
.cfg__label + .cfg__chips { margin-bottom: 26px; }
.cfg__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 12px; border-radius: 999px;
  border: 1px solid var(--border-hi); background: rgba(255, 255, 255, 0.03); color: var(--t1);
  font: inherit; font-size: 14px; cursor: pointer; transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.chip::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--t3);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.chip:hover { border-color: rgba(255, 255, 255, 0.3); }
.chip:active { transform: scale(0.96); }
.chip.is-on { background: rgba(47, 107, 255, 0.16); border-color: rgba(47, 107, 255, 0.7); color: var(--heading); }
.chip.is-on::before { background: var(--brand); border-color: var(--brand); box-shadow: inset 0 0 0 3px #0d1a3d; }
.chip:focus-visible, .seg button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #121216; border: 1px solid var(--border); position: relative; }
.seg button {
  position: relative; z-index: 1; height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: none;
  color: var(--t2); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: color 0.25s, background 0.25s;
}
.seg button.is-on { background: var(--brand); color: #fff; }
.cfg__note { margin-top: 24px; font-size: 14.5px; color: var(--t2); }
.cfg__note strong { color: var(--heading); }

.cfg__stage { display: grid; place-items: center; min-height: 420px; padding: 8px; }
.cfg__app {
  width: 100%; height: 400px; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
  background: #0c0c10; border: 1px solid var(--border-hi); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  transition: width 0.6s var(--ease), height 0.6s var(--ease), border-radius 0.6s var(--ease);
}
.cfg__chrome { display: flex; align-items: center; gap: 6px; height: 32px; flex: none; padding: 0 12px; background: #151519; border-bottom: 1px solid var(--border); }
.cfg__chrome i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a40; }
.cfg__chrome i:nth-child(1) { background: #ff5f57; } .cfg__chrome i:nth-child(2) { background: #febc2e; } .cfg__chrome i:nth-child(3) { background: #28c840; }
.cfg__chrome-title { margin-left: 10px; font-size: 12px; color: var(--t2); }
.cfg__body { flex: 1; display: flex; min-height: 0; }
.cfg__nav { list-style: none; margin: 0; padding: 12px 8px; width: 168px; flex: none; border-right: 1px solid var(--border); display: grid; gap: 2px; align-content: start; overflow: hidden; }
.cfg__nav li {
  display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; font-size: 13px; color: var(--t2);
  white-space: nowrap; animation: navIn 0.45s var(--ease) both;
}
.cfg__nav li:first-child { background: rgba(47, 107, 255, 0.14); color: var(--heading); }
.cfg__nav li b { width: 18px; height: 18px; flex: none; border-radius: 6px; display: grid; place-items: center; font-size: 10px; color: #fff; background: var(--c, var(--brand)); }
.cfg__nav li.is-out { animation: navOut 0.3s ease both; }
@keyframes navIn { from { opacity: 0; transform: translateX(-10px); } }
@keyframes navOut { to { opacity: 0; transform: translateX(-10px); height: 0; padding-top: 0; padding-bottom: 0; } }
.cfg__screen { flex: 1; min-width: 0; padding: 16px; overflow: hidden; }
.cfg__screen-title { font-size: 16px; font-weight: 700; color: var(--heading); margin-bottom: 12px; }
.cfg__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tile {
  position: relative; padding: 12px; border-radius: 12px; background: #141419; border: 1px solid var(--border);
  animation: tileIn 0.55s var(--ease) both; overflow: hidden;
}
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c, var(--brand)); }
.tile.is-out { animation: tileOut 0.3s ease both; }
.tile small { display: block; font-size: 11.5px; color: var(--t3); }
.tile strong { display: block; margin-top: 4px; font-size: 17px; color: var(--heading); letter-spacing: -0.02em; white-space: nowrap; }
.tile .spark { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-top: 6px; }
.tile .spark i { flex: 1; border-radius: 2px; background: var(--c, var(--brand)); opacity: 0.75; animation: grow 0.8s var(--ease) both; transform-origin: bottom; }
@keyframes tileIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes tileOut { to { opacity: 0; transform: scale(0.9); } }

/* Variantes por plataforma */
.cfg__app[data-plat="desktop"] { border-radius: 10px; }
.cfg__app[data-plat="desktop"] .cfg__chrome { justify-content: flex-end; }
.cfg__app[data-plat="desktop"] .cfg__chrome i { width: 10px; height: 2px; border-radius: 1px; background: #66666e; order: 2; }
.cfg__app[data-plat="desktop"] .cfg__chrome-title { order: 1; margin: 0 auto 0 0; }
.cfg__app[data-plat="desktop"] .cfg__nav { width: 60px; }
.cfg__app[data-plat="desktop"] .cfg__nav li { justify-content: center; padding: 8px 0; }
.cfg__app[data-plat="desktop"] .cfg__nav li span { display: none; }
.cfg__app[data-plat="desktop"] .cfg__nav li b { width: 26px; height: 26px; font-size: 12px; border-radius: 8px; }
.cfg__app[data-plat="mobile"] { width: 230px; height: 420px; border-radius: 32px; border: 6px solid #1c1c21; }
.cfg__app[data-plat="mobile"] .cfg__chrome { height: 26px; justify-content: center; background: #0c0c10; border: 0; }
.cfg__app[data-plat="mobile"] .cfg__chrome i { display: none; }
.cfg__app[data-plat="mobile"] .cfg__chrome-title { margin: 0; font-size: 11px; }
.cfg__app[data-plat="mobile"] .cfg__body { flex-direction: column-reverse; }
.cfg__app[data-plat="mobile"] .cfg__nav {
  width: auto; display: flex; justify-content: space-around; padding: 8px 6px 10px; border-right: 0; border-top: 1px solid var(--border);
}
.cfg__app[data-plat="mobile"] .cfg__nav li { flex-direction: column; gap: 3px; padding: 0; background: none; font-size: 9px; }
.cfg__app[data-plat="mobile"] .cfg__nav li:nth-child(n + 5) { display: none; }
.cfg__app[data-plat="mobile"] .cfg__nav li span { max-width: 48px; overflow: hidden; text-overflow: ellipsis; }
.cfg__app[data-plat="mobile"] .cfg__screen { padding: 12px; overflow-y: auto; scrollbar-width: none; }
.cfg__app[data-plat="mobile"] .cfg__tiles { grid-template-columns: 1fr; gap: 8px; }

/* ── Proceso ─────────────────────────────────────────────────────────────── */
.proc { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.proc__rail { position: absolute; left: 21px; top: 24px; bottom: 24px; width: 2px; background: var(--border); border-radius: 2px; }
.proc__fill { position: absolute; inset: 0 0 auto; height: calc(var(--prog, 0) * 100%); background: linear-gradient(var(--brand), var(--cyan)); border-radius: 2px; box-shadow: 0 0 12px rgba(111, 224, 255, 0.6); transition: height 0.2s linear; }
.proc__steps { list-style: none; margin: 0; padding: 0; }
.proc__step {
  position: relative; padding: 0 0 0 68px; min-height: 46vh; display: flex; flex-direction: column; justify-content: center;
  opacity: 0.32; transition: opacity 0.5s var(--ease);
}
.proc__step.is-active { opacity: 1; }
.proc__num {
  position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--t2);
  background: var(--bg); border: 2px solid var(--border-hi); transition: all 0.4s var(--ease);
}
.proc__step.is-active .proc__num, .proc__step.is-done .proc__num { color: #fff; border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 6px rgba(47, 107, 255, 0.18); }
.proc__step.is-done .proc__num { background: #0d1a3d; box-shadow: none; }
.proc__step h3 { font-size: 26px; color: var(--heading); letter-spacing: -0.025em; margin-bottom: 10px; }
.proc__step p { color: var(--t2); max-width: 46ch; }
.proc__deliver { margin-top: 14px; font-size: 14px; color: var(--cyan) !important; font-weight: 500; }

.proc__visual { position: relative; }
.scene-frame {
  position: sticky; top: calc(50vh - 210px); height: 420px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(100% 100% at 50% 0%, rgba(47, 107, 255, 0.12), transparent 70%), var(--s1);
  border: 1px solid var(--border-hi); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.9);
}
.scene-frame__bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--t2); background: rgba(12, 12, 16, 0.7); }
.scene-frame__bar b { color: var(--heading); font-weight: 600; }
.scene-frame__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.scene { position: absolute; inset: 44px 0 0; padding: 28px; opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0s 0.35s; }
.scene.is-active { opacity: 1; visibility: visible; transition: opacity 0.4s ease 0.1s, visibility 0s; }
/* Las animaciones de cada escena corren solo cuando está activa (así se reinician). */
.scene:not(.is-active) * { animation: none !important; }

/* 1 · Descubrimiento */
.scene--discover { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: center; }
.note {
  padding: 16px 16px 20px; border-radius: 6px; font-size: 14.5px; font-weight: 500; line-height: 1.35; color: #1b1b1f;
  background: #ffe680; box-shadow: 0 14px 24px -12px rgba(0, 0, 0, 0.7); transform: rotate(var(--r));
  animation: build 0.5s ease calc(var(--d) * 0.6) both;
}
.note--b { background: #9fd6ff; } .note--c { background: #c4b5ff; } .note--d { background: #a6f0c0; }

/* 2 · Diseño */
.scene--design { display: grid; place-items: center; }
.wf {
  position: relative; width: 100%; height: 100%; display: grid; gap: 10px;
  grid-template-columns: 0.7fr 1fr 1fr; grid-template-rows: 40px 1fr 1fr;
  grid-template-areas: "top top top" "side a b" "side c d";
}
.wf > div { border-radius: 10px; border: 1.5px dashed rgba(255, 255, 255, 0.35); animation: wfIn 0.5s var(--ease) both, wfFill 0.6s ease both; }
.wf__top { grid-area: top; animation-delay: 0s, 1.6s !important; --fill: #1a1a20; }
.wf__side { grid-area: side; animation-delay: 0.15s, 1.75s !important; --fill: #121a33; }
.wf__a { grid-area: a; animation-delay: 0.3s, 1.9s !important; --fill: linear-gradient(135deg, #2f6bff, #6a4dff); }
.wf__b { grid-area: b; animation-delay: 0.45s, 2.05s !important; --fill: #16161c; }
.wf__c { grid-area: c; animation-delay: 0.6s, 2.2s !important; --fill: #16161c; }
.wf__d { grid-area: d; animation-delay: 0.75s, 2.35s !important; --fill: linear-gradient(135deg, #0f4d5c, #1a7a8c); }
@keyframes wfIn { from { opacity: 0; } }
@keyframes wfFill { to { background: var(--fill); border-style: solid; border-color: rgba(255, 255, 255, 0.08); } }

/* 3 · Base de datos (mini) */
.scene--db { display: grid; place-items: center; }
.mini-er { width: 100%; max-height: 100%; }
.mini-er__t { animation: build 0.6s var(--ease) var(--d) both; }
.mini-er rect { fill: #141419; stroke: rgba(255, 255, 255, 0.16); }
.mini-er text { font-family: var(--mono); font-size: 12px; fill: var(--t2); }
.mini-er text.h { fill: var(--cyan); font-weight: 600; font-size: 13px; }
.mini-er__l { fill: none; stroke: var(--brand); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.9s ease var(--d, 0.8s) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* 4 · Desarrollo */
.scene--code { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.code { padding: 18px 20px; border-radius: 14px; background: #08080b; border: 1px solid var(--border); font-family: var(--mono); font-size: 14px; line-height: 1.9; color: var(--t1); overflow: hidden; }
.code p { white-space: nowrap; clip-path: inset(0 100% 0 0); animation: type 0.5s steps(22) var(--d) forwards; }
.code p.in { padding-left: 2ch; }
.code .k { color: #ff7ab2; font-style: normal; } .code .f { color: var(--cyan); font-style: normal; } .code .s { color: #ffd60a; font-style: normal; }
@keyframes type { to { clip-path: inset(0 0 0 0); } }
.sprint__head { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--t2); margin-bottom: 8px; }
.sprint__head b { color: var(--heading); font-family: var(--mono); }
.sprint__bar { height: 10px; border-radius: 6px; background: #1a1a20; overflow: hidden; }
.sprint__bar span { display: block; height: 100%; width: 68%; border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--cyan)); transform-origin: left; animation: barX 2.2s var(--ease) 0.3s both; }
@keyframes barX { from { transform: scaleX(0); } }

/* 5 · Pruebas */
.scene--qa { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checks li {
  position: relative; padding: 12px 12px 12px 42px; border-radius: 12px; font-size: 14px; color: var(--t1);
  background: #121216; border: 1px solid var(--border); animation: checkRow 0.5s ease var(--d) both;
}
.checks li::before {
  content: ""; position: absolute; left: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%;
  border: 2px solid #3a3a42; animation: okBg 0.3s ease calc(var(--d) + 0.3s) forwards;
}
.checks li::after {
  content: ""; position: absolute; left: 19px; top: 50%; width: 6px; height: 11px; margin-top: -7px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); animation: tick 0.3s var(--ease) calc(var(--d) + 0.35s) forwards;
}
@keyframes checkRow { from { opacity: 0; } }
@keyframes okBg { to { background: var(--green); border-color: var(--green); } }
@keyframes tick { to { transform: rotate(45deg) scale(1); } }
.qa-total { font-size: 15px; color: var(--t2); animation: build 0.5s ease 2s both; }
.qa-total b { color: var(--green); font-family: var(--mono); font-size: 20px; margin-right: 4px; }

/* 6 · Lanzamiento */
.scene--launch { display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.launch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.launch__item {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 10px; border-radius: 16px;
  background: #121216; border: 1px solid var(--border); font-size: 14px; color: var(--t1); animation: build 0.6s var(--ease) var(--d) both;
}
.launch__item b {
  font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; color: var(--t3); background: #1c1c22;
  animation: live 0.4s ease calc(var(--d) + 0.9s) forwards;
}
@keyframes live { to { color: #0b2a14; background: var(--green); } }
.launch__ico { position: relative; width: 44px; height: 34px; border: 2px solid var(--cyan); border-radius: 6px; }
.launch__ico--web::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--cyan); }
.launch__ico--desk::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 18px; height: 2px; margin-left: -9px; background: var(--cyan); box-shadow: 0 -4px 0 -0 transparent; }
.launch__ico--mob { width: 24px; height: 38px; border-radius: 6px; }
.pulse { width: 100%; height: 70px; }
.pulse path { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s ease 1.2s forwards; opacity: 0.8; }

/* ── Base de datos ───────────────────────────────────────────────────────── */
.ds-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.ds-split > *, .cfg > *, .proc > *, .ds-hero__inner > * { min-width: 0; }
.ds-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.ds-list li { position: relative; padding-left: 28px; color: var(--t2); font-size: 15.5px; }
.ds-list li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 12px; border-radius: 4px; border: 2px solid var(--brand); }
.ds-list b { color: var(--heading); font-weight: 600; }

.er { position: relative; padding: 18px; border-radius: 28px; border: 1px solid var(--border); background: radial-gradient(90% 90% at 50% 40%, rgba(47, 107, 255, 0.1), transparent 70%), var(--s1); }
.er__scroll { overflow-x: auto; scrollbar-width: thin; }
.er__svg { width: 100%; min-width: 520px; height: auto; }
.er__box { fill: #121217; stroke: rgba(255, 255, 255, 0.14); }
.er__hd { fill: #1a1f33; }
.er__svg text { font-family: var(--mono); font-size: 13px; fill: var(--t1); }
.er__svg text.er__ty { text-anchor: end; fill: var(--t3); font-size: 11px; }
.er__svg text.er__name { fill: var(--heading); font-weight: 600; font-size: 14px; }
.er__svg text.er__pk { fill: var(--amber); }
.er__svg text.er__fk { fill: var(--cyan); }
.er__t { opacity: 0; transition: opacity 0.7s ease var(--d); }
.er.is-in .er__t { opacity: 1; }
.er__rel { fill: none; stroke: rgba(111, 224, 255, 0.55); stroke-width: 1.5; stroke-dasharray: 5 5; }
.er__pkt { fill: var(--cyan); opacity: 0.85; }

.console { margin-top: 14px; border-radius: 14px; background: #07070a; border: 1px solid var(--border); font-family: var(--mono); font-size: 13px; overflow: hidden; }
.console__bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-bottom: 1px solid var(--border); color: var(--t3); font-size: 11.5px; }
.console__bar i { width: 8px; height: 8px; border-radius: 50%; background: #2c2c33; }
.console__bar span { margin-left: 6px; }
.console__q { padding: 12px 14px 4px; color: var(--t1); min-height: 2.6em; word-break: break-word; }
.console__prompt { color: var(--brand); }
.console__r { padding: 0 14px 14px; color: var(--green); min-height: 1.6em; opacity: 0; transition: opacity 0.4s; }
.console__r.is-on { opacity: 1; }

/* ── Dashboard de avance ─────────────────────────────────────────────────── */
.dash {
  padding: 24px; border-radius: 28px; border: 1px solid var(--border-hi);
  background: linear-gradient(180deg, #0e0e12, #08080b); box-shadow: 0 60px 120px -60px rgba(47, 107, 255, 0.35);
}
.dash__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.dash__kicker { font-size: 12px; color: var(--t3); text-transform: uppercase; letter-spacing: 0.08em; }
.dash__title { font-size: 20px; font-weight: 700; color: var(--heading); letter-spacing: -0.02em; }
.dash__status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--amber); background: rgba(255, 214, 10, 0.1); border: 1px solid rgba(255, 214, 10, 0.3); white-space: nowrap; }
.dash__status span { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }

.dash__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.kpi { position: relative; padding: 16px 18px; border-radius: 18px; background: #131318; border: 1px solid var(--border); min-height: 104px; }
.kpi p { font-size: 13px; color: var(--t3); }
.kpi b { display: block; margin-top: 6px; font-size: 30px; font-weight: 700; color: var(--heading); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--t2); }
.kpi__ring { position: absolute; right: 16px; top: 50%; width: 56px; height: 56px; margin-top: -28px; }
.kpi__ring svg { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #23232a; stroke-width: 3.5; }
.ring-fg { fill: none; stroke: var(--cyan); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 2s var(--ease) 0.2s; }
.dash.is-in .ring-fg { stroke-dasharray: var(--v) 100; }

.dash__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; }
.panel { padding: 18px; border-radius: 18px; background: #131318; border: 1px solid var(--border); min-width: 0; }
.panel__title { font-size: 14px; font-weight: 600; color: var(--heading); margin-bottom: 14px; }

.gantt { --lbl: 112px; position: relative; display: grid; gap: 10px; }
.gantt__row { display: grid; grid-template-columns: var(--lbl) 1fr; align-items: center; gap: 0; }
.gantt__lbl { font-size: 13px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; }
.gantt__track { position: relative; height: 22px; border-radius: 6px; background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 1px), rgba(255, 255, 255, 0.05) calc(20% - 1px) 20%); }
.gantt__track i {
  position: absolute; top: 3px; bottom: 3px; left: var(--s); width: var(--w); border-radius: 5px; overflow: hidden;
  background: #24242c; transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease);
}
.gantt__track i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: linear-gradient(90deg, var(--brand), #4f86ff); }
.gantt__track i.done::after { background: linear-gradient(90deg, #1f4fd1, var(--brand)); }
.gantt__track i.now::after {
  background: repeating-linear-gradient(-45deg, var(--cyan) 0 6px, #3fb8db 6px 12px); background-size: 17px 17px;
}
.dash.is-in .gantt__track i { transform: none; }
.dash.is-in .gantt__row:nth-child(3) i { transition-delay: 0.1s; } .dash.is-in .gantt__row:nth-child(4) i { transition-delay: 0.2s; }
.dash.is-in .gantt__row:nth-child(5) i { transition-delay: 0.3s; } .dash.is-in .gantt__row:nth-child(6) i { transition-delay: 0.4s; } .dash.is-in .gantt__row:nth-child(7) i { transition-delay: 0.5s; }
.gantt__today {
  position: absolute; top: -6px; bottom: -6px; z-index: 1; width: 2px; background: var(--pink);
  left: calc(var(--lbl) + (100% - var(--lbl)) * 0.61); opacity: 0; transition: opacity 0.5s ease 1.2s;
}
.gantt__today span { position: absolute; top: -18px; left: 50%; translate: -50% 0; font-size: 10.5px; font-weight: 600; color: var(--pink); }
.dash.is-in .gantt__today { opacity: 1; }

.burn { width: 100%; height: auto; overflow: visible; }
.burn__axis { stroke: var(--border-hi); }
.burn__ideal { fill: none; stroke: #4a4a55; stroke-width: 2; stroke-dasharray: 0.02 0.02; }
.burn__real { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease) 0.4s; }
.dash.is-in .burn__real { stroke-dashoffset: 0; }
.burn__dot { fill: var(--cyan); opacity: 0; transition: opacity 0.3s 2.2s; }
.dash.is-in .burn__dot { opacity: 1; }
.burn__legend { display: flex; gap: 16px; margin-top: 10px; font-size: 12.5px; color: var(--t2); }
.burn__legend span::before { content: ""; display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.lg-real::before { background: var(--cyan); } .lg-ideal::before { background: #4a4a55; }

.mods { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mods li { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; color: var(--t2); }
.mods b { text-align: right; color: var(--heading); font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 4px; background: #23232a; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--p); border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--cyan)); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) 0.3s; }
.dash.is-in .bar i { transform: none; }

.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feed li { display: flex; gap: 12px; opacity: 0; transform: translateY(8px); transition: opacity 0.5s, transform 0.5s var(--ease); }
.dash.is-in .feed li { opacity: 1; transform: none; }
.dash.is-in .feed li:nth-child(2) { transition-delay: 0.6s; } .dash.is-in .feed li:nth-child(3) { transition-delay: 0.9s; } .dash.is-in .feed li:nth-child(4) { transition-delay: 1.2s; }
.dash.is-in .feed li:nth-child(1) { transition-delay: 0.3s; }
.feed__dot { width: 10px; height: 10px; margin-top: 6px; flex: none; border-radius: 50%; background: var(--amber); }
.feed__dot--ok { background: var(--green); } .feed__dot--next { background: transparent; border: 2px solid var(--brand); }
.feed b { display: block; font-size: 14px; font-weight: 600; color: var(--heading); }
.feed small { font-size: 13px; color: var(--t2); }

/* ── Plataformas ─────────────────────────────────────────────────────────── */
.plats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plat { padding: 24px; border-radius: 24px; background: var(--s1); border: 1px solid var(--border); }
.js .plat[data-reveal] { transition: opacity 0.8s var(--ease) var(--rd, 0s), transform 0.8s var(--ease) var(--rd, 0s), translate 0.4s var(--ease), border-color 0.3s; }
.plat:nth-child(2) { --rd: 0.1s; } .plat:nth-child(3) { --rd: 0.2s; }
.plat:hover { border-color: var(--border-hi); translate: 0 -4px; }
.plat h3 { font-size: 21px; color: var(--heading); letter-spacing: -0.02em; margin-bottom: 8px; }
.plat p { color: var(--t2); font-size: 15px; }
.plat ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.plat li { position: relative; padding-left: 20px; font-size: 14px; color: var(--t1); }
.plat li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.plat__art { height: 160px; margin-bottom: 20px; border-radius: 16px; display: grid; place-items: center; background: radial-gradient(80% 90% at 50% 100%, rgba(47, 107, 255, 0.18), transparent 70%), #0c0c10; border: 1px solid var(--border); overflow: hidden; }

.pw { width: 72%; height: 66%; border-radius: 10px; background: #15151a; border: 1px solid var(--border-hi); overflow: hidden; }
.pw__bar { display: flex; gap: 4px; height: 16px; padding: 5px 8px; background: #1d1d23; }
.pw__bar i { width: 6px; height: 6px; border-radius: 50%; background: #3e3e46; }
.pw__body { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; height: calc(100% - 16px); }
.pw__body span { border-radius: 6px; background: #22222a; }
.pw__body span:first-child { grid-column: span 2; background: linear-gradient(90deg, #1d3b8f, var(--brand)); }

.pd { display: grid; justify-items: center; }
.pd__screen { width: 150px; height: 92px; border-radius: 8px; border: 2px solid #2c2c33; background: #111115; display: flex; align-items: flex-end; gap: 8px; padding: 12px; }
.pd__screen span { flex: 1; border-radius: 3px 3px 0 0; background: var(--cyan); height: 55%; }
.pd__screen span:nth-child(2) { height: 85%; background: var(--brand); } .pd__screen span:nth-child(3) { height: 40%; }
.pd__stand { width: 40px; height: 16px; background: linear-gradient(#2c2c33, #1c1c21); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }

.pm { position: relative; display: grid; justify-items: center; }
.pm__phone { width: 70px; height: 112px; margin-top: 44px; border-radius: 16px; border: 3px solid #2c2c33; background: #111115; display: grid; gap: 6px; align-content: start; padding: 20px 8px 8px; }
.pm__phone span { height: 14px; border-radius: 4px; background: #1f1f26; }
.pm__notif {
  position: absolute; top: 18px; padding: 8px 12px; border-radius: 12px; font-size: 12px; font-weight: 500; white-space: nowrap;
  color: var(--heading); background: rgba(40, 40, 48, 0.92); border: 1px solid var(--border-hi); box-shadow: 0 10px 20px -8px #000;
  opacity: 0; transform: translateY(-8px); transition: opacity 0.6s ease 0.8s, transform 0.6s var(--ease) 0.8s;
}
.plat.is-in .pm__notif { opacity: 1; transform: none; }
html:not(.js) .pm__notif { opacity: 1; transform: none; }

.naga-link {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; padding: 28px;
  border-radius: 24px; border: 1px solid rgba(47, 107, 255, 0.35);
  background: linear-gradient(120deg, rgba(47, 107, 255, 0.14), rgba(111, 224, 255, 0.04));
}
.naga-link h3 { font-size: 22px; color: var(--heading); letter-spacing: -0.02em; margin-bottom: 6px; }
.naga-link p:not(.ds-eyebrow) { color: var(--t2); max-width: 64ch; }
.naga-link .ds-eyebrow { margin-bottom: 6px; }
.naga-link a:not(.btn) { color: #9fc7ff; }
.naga-link .btn { flex: none; }

.ds .faq-block { padding-top: 112px; }
.ds-cta { margin-left: 20px; margin-right: 20px; }
@media (min-width: 800px) { .ds-cta { margin-left: auto; margin-right: auto; } }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .ds-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .ds-video { max-width: 620px; margin: 0 auto; }
  .cfg { grid-template-columns: 1fr; }
  .ds-split { grid-template-columns: 1fr; }
  .dash__kpis { grid-template-columns: repeat(2, 1fr); }
  .dash__grid { grid-template-columns: 1fr; }
  .plats { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }

  .proc { grid-template-columns: 1fr; gap: 0; }
  .proc__visual { order: -1; position: sticky; top: 64px; z-index: 3; margin: 0 -20px 8px; padding: 0 20px 12px; background: linear-gradient(var(--bg) 85%, transparent); }
  .scene-frame { position: relative; top: 0; height: 270px; }
  .scene { padding: 18px; }
  .proc__rail { top: 310px; }
  .proc__step { min-height: 52vh; }
}
@media (max-width: 640px) {
  .ds-hero { padding: 32px 0 64px; }
  .ds-hero__sub { font-size: 16.5px; }
  .ds-block, .ds .faq-block { padding-top: 80px; }
  .cfg { padding: 16px; border-radius: 22px; }
  .cfg__stage { min-height: 0; padding: 0; }
  .cfg__app { height: 360px; }
  .cfg__nav { width: 120px; }
  .cfg__nav li { font-size: 12px; padding: 6px; }
  .cfg__tiles { grid-template-columns: 1fr; }
  .chip { height: 36px; font-size: 13.5px; }
  .seg button { padding: 0 14px; }
  .proc__step { padding-left: 60px; }
  .proc__step h3 { font-size: 21px; }
  .proc__step p { font-size: 15px; }
  .scene-frame { height: 262px; }
  .scene { padding: 14px; }
  .note { padding: 10px 10px 12px; font-size: 12px; }
  .scene--discover { gap: 10px; }
  .code { font-size: 11px; padding: 10px 12px; line-height: 1.6; }
  .scene--code { gap: 14px; }
  .checks { gap: 6px; }
  .checks li { font-size: 12px; padding: 8px 8px 8px 36px; }
  .checks li::before { left: 9px; width: 18px; height: 18px; margin-top: -9px; }
  .checks li::after { left: 15.5px; }
  .launch__item { padding: 14px 6px; font-size: 13px; }
  .pulse { height: 44px; }
  .er { padding: 12px; border-radius: 20px; }
  .dash { padding: 16px; border-radius: 22px; }
  .dash__top { flex-wrap: wrap; }
  .kpi { padding: 14px; min-height: 0; }
  .kpi b { font-size: 24px; }
  .kpi__ring { width: 40px; height: 40px; margin-top: -20px; right: 10px; top: 40%; }
  .gantt { --lbl: 92px; }
  .gantt__lbl { font-size: 12px; }
  .mods li { grid-template-columns: 84px 1fr 36px; font-size: 12px; }
  .naga-link { flex-direction: column; align-items: flex-start; padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .ds *, .ds *::before, .ds *::after {
    animation-duration: 0.001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important; transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
