/* Escenas de cloudih.io: cada una cuenta el antes, el sistema funcionando y el logro.
   En reposo (sin animación o con movimiento reducido) se ve el cuadro final completo. */

.escena { position: relative; width: 100%; }
.esc { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10,22,40,0.78); padding: clamp(14px, 2.4vw, 26px); display: flex; flex-direction: column; gap: 22px; overflow: hidden; text-align: left; }
.esc-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.esc-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.esc button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg-2); font: 600 14px/1 var(--font-body); cursor: pointer; }
.esc button:hover { color: var(--fg); border-color: rgba(var(--accent-rgb), .6); }
.esc button[aria-pressed="true"], .esc button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.esc .esc-replay { margin-left: auto; }
.esc-note { font-size: 12px; color: var(--fg-3); }

.esc-antes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; border-radius: 14px; border: 1px dashed rgba(var(--amber-rgb), .55); background: rgba(var(--amber-rgb), .06); color: var(--fg-2); font-size: 15px; }
.etq { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.esc-antes .etq { background: rgba(var(--amber-rgb), .18); color: var(--amber); }
.esc-antes s { color: var(--amber); text-decoration-thickness: 2px; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.esc-logro { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(var(--accent-rgb), .45); background: rgba(var(--accent-rgb), .08); }
.esc-logro .etq { background: var(--accent); color: var(--on-accent); }
.esc-logro .k { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.esc-logro b { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 52px); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.esc-logro span { color: var(--fg-2); font-size: 15px; }
.esc-logro .sep { width: 1px; align-self: stretch; background: var(--line); }
/* indicadores que no caben en una línea: el número arriba y su texto abajo, en columnas iguales */
.esc-logro .k.apila { flex: 1 1 180px; flex-direction: column; align-items: flex-start; gap: 6px; }
@media (max-width: 640px) {
  .esc-logro .k.apila { flex-basis: 100%; }
  .esc-logro .k.apila ~ .sep { display: none; }
  .esc-logro .k.apila ~ .k.apila { padding-top: 12px; border-top: 1px solid var(--line); }
}

/* el antes, el sistema y el logro, con el mismo aire entre ellos en todas las escenas */
.esc-cuerpo { display: flex; flex-direction: column; gap: 22px; }
.esc-sis { position: relative; }
.esc-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.esc-wires path { fill: none; stroke: rgba(var(--accent-rgb), .42); stroke-width: 1.6; stroke-dasharray: 5 7; }
.esc-wires circle { fill: var(--accent); }
.esc-wires circle.halo { fill: rgba(var(--accent-rgb), .22); }

/* Piezas comunes */
.nd { position: relative; z-index: 1; border: 1px solid var(--line); border-radius: 14px; background: rgba(18,32,51,0.94); padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; transition: border-color .4s ease, box-shadow .4s ease; }
.nd > b { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.05; }
.nd > small, .nd .lbl { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .03em; }
.nd.hot { border-color: rgba(var(--accent-rgb), .7); box-shadow: 0 0 26px rgba(var(--accent-rgb), .2); }
.nd.bronce { border-top: 3px solid #C58A55; }
.nd.plata { border-top: 3px solid #C9D2DC; }
.nd.oro { border-top: 3px solid #F2C14E; }
.ch { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,0.07); font-size: 12.5px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ch i { width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.ch.ok { background: rgba(61,220,151,0.14); color: var(--ok); }
.ch.warn { background: rgba(var(--amber-rgb), .18); color: var(--amber); }
.ch.acc { background: rgba(var(--accent-rgb), .18); color: var(--fg); }
.cv { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cw { display: flex; flex-wrap: wrap; gap: 6px; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-2); }
.chk i { position: relative; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.35); flex: none; transition: background .3s ease, border-color .3s ease; }
.chk.on i { background: var(--ok); border-color: var(--ok); }
.chk.on i::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #04131E; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.chk.bad i { background: var(--amber); border-color: var(--amber); }
.rec { font-family: var(--font-mono); font-size: 11.5px; padding: 3px 6px; border-radius: 6px; background: rgba(255,255,255,0.05); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec.dup { color: var(--amber); background: rgba(var(--amber-rgb), .1); }
/* en el lago, los registros de bronce se leen completos: el chiste es ver el mismo registro en dos formatos */
.g-lago .rec { font-size: 10px; white-space: normal; overflow: visible; letter-spacing: -.01em; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .6); animation: latido 1.4s ease-out infinite; flex: none; }
@keyframes latido { to { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0); } }
.row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-2); }

/* 1. El lago completo */
.g-lago { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 28px; align-items: center; }
.bands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.band { position: relative; z-index: 1; border-radius: 12px; border: 1px solid var(--line); padding: 10px 12px; background: rgba(4,13,30,0.6); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.band > b { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-3); font-weight: 500; }
.dag { display: flex; align-items: center; gap: 4px; }
.dag span { flex: 1; min-width: 0; padding: 4px 2px; border-radius: 6px; background: rgba(255,255,255,0.08); font-family: var(--font-mono); font-size: 10px; text-align: center; color: var(--fg-3); transition: background .3s ease, color .3s ease; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dag span.on { background: rgba(61,220,151,0.2); color: var(--ok); }
.lin { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-2); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.lin em { font-style: normal; color: var(--fg-3); }
.lin span.on { color: var(--accent); }
.verComo { display: flex; flex-wrap: wrap; gap: 6px; }
.esc .verComo button { min-height: 30px; padding: 0 10px; font-size: 12.5px; }
.mart { display: flex; flex-direction: column; font-size: 12.5px; font-weight: 600; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,0.05); transition: opacity .3s ease; }
.mart span:last-child { font-weight: 400; font-size: 11.5px; color: var(--fg-3); }
.mart.lock { opacity: .32; }
.mart.lock span:last-child::after { content: " · sin acceso"; color: var(--amber); }
:lang(en) .mart.lock span:last-child::after { content: " · no access"; }
.star { width: 100%; height: auto; display: block; }
.star line { stroke: rgba(242,193,78,.55); stroke-width: 1.4; }
.star rect { fill: rgba(18,32,51,1); stroke: rgba(255,255,255,.3); }
.star rect.f { stroke: #F2C14E; }
.star text { fill: var(--fg); font-family: var(--font-mono); font-size: 9px; }
@media (max-width: 1040px) { .g-lago { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g-lago { grid-template-columns: 1fr; gap: 22px; } .bands { grid-template-columns: 1fr; } .g-lago .cv { flex-direction: row; flex-wrap: wrap; } }

/* 2. Un tablero para todos tus clientes: la ventana del tablero y, debajo, los tres pasos que lo explican. Cada paso
   lleva un número que también está en la pieza del tablero que explica, y se encienden juntos. En celular el
   tablero se acomoda en menos columnas y los pasos bajan por una línea, como en las demás escenas. */
.g-tb { display: flex; flex-direction: column; gap: 18px; max-width: 1000px; margin-inline: auto; }
.tb-in { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.tb-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.tb-cli { position: relative; display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 999px; border: 1px solid transparent; transition: border-color .35s ease, box-shadow .35s ease; }
.esc .tb-cli button { min-height: 30px; padding: 0 12px; font-size: 12.5px; }
.tb-fil { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tb-fil span { padding: 4px 9px; border-radius: 8px; background: rgba(255,255,255,0.06); font-size: 11.5px; color: var(--fg-3); white-space: nowrap; }
.tb-fil .tb-dia { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--ok); background: rgba(61,220,151,0.1); border: 1px solid transparent; transition: border-color .35s ease, box-shadow .35s ease; }
.tb-dia .pulse-dot { width: 7px; height: 7px; background: var(--ok); }
.tb-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.tb-kpi { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 9px 11px; border-radius: 10px; border: 1px solid transparent; background: rgba(255,255,255,0.05); min-width: 0; transition: border-color .35s ease, box-shadow .35s ease; }
.tb-kpi small { font-size: 11px; line-height: 1.25; color: var(--fg-3); }
.tb-kpi > b:last-child { font-family: var(--font-display); font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.tb-def { padding: 9px 12px; border-radius: 10px; border: 1px dashed rgba(255,255,255,0.16); font-size: 13px; line-height: 1.45; color: var(--fg-2); transition: border-color .35s ease, background .35s ease; }
.tb-def b { color: var(--fg); }
.tb-graf { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.tb-g { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); min-width: 0; }
.tb-g > small { font-size: 11.5px; color: var(--fg-3); }
.tb-horas { display: flex; align-items: flex-end; gap: 5px; height: 84px; }
.tb-horas i { flex: 1; border-radius: 3px 3px 1px 1px; background: rgba(var(--accent-rgb), .75); transition: height .5s ease; }
.tb-eje { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); }
.tb-estado { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: rgba(255,255,255,0.06); }
.tb-estado s { display: block; height: 100%; transition: width .5s ease; }
.tb-estado .a, .tb-estado-l i.a { background: var(--ok); }
.tb-estado .b, .tb-estado-l i.b { background: var(--amber); }
.tb-estado .c, .tb-estado-l i.c { background: #FF7A7A; }
.tb-estado-l { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--fg-2); }
.tb-estado-l span { display: flex; align-items: center; gap: 7px; }
.tb-estado-l i { flex: none; width: 9px; height: 9px; border-radius: 3px; }
.tb-estado-l b { margin-left: auto; font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; color: var(--fg); }
.tb-camp { display: flex; flex-direction: column; gap: 9px; }
.tb-camp div { display: grid; grid-template-columns: 66px minmax(0, 1fr) 36px; gap: 8px; align-items: center; font-size: 12px; color: var(--fg-2); }
.tb-camp i { height: 9px; border-radius: 5px; background: rgba(255,255,255,0.06); overflow: hidden; }
.tb-camp s { display: block; height: 100%; border-radius: 5px; background: rgba(var(--accent-rgb), .75); transition: width .5s ease; }
.tb-camp em { font-style: normal; font-family: var(--font-mono); font-size: 11px; text-align: right; color: var(--fg-3); }
/* los números que unen cada paso con su pieza del tablero */
.tb-n { position: absolute; top: -9px; right: -9px; z-index: 2; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; background: #17505A; color: var(--fg); box-shadow: 0 0 0 3px #0A1628; transition: background .35s ease, color .35s ease; }
.on > .tb-n { background: var(--accent); color: var(--on-accent); }
.tb-cli.on, .tb-kpi.on, .tb-fil .tb-dia.on { border-color: rgba(var(--accent-rgb), .8); box-shadow: 0 0 18px rgba(var(--accent-rgb), .25); }
.tb-def.on { border-color: rgba(var(--accent-rgb), .7); background: rgba(var(--accent-rgb), .06); }
.tb-ley { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tb-l { display: flex; flex-direction: column; gap: 8px; }
.tb-l p { margin: 0; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: rgba(18,32,51,0.94); font-size: 13.5px; line-height: 1.4; color: var(--fg-2); transition: border-color .35s ease, box-shadow .35s ease, color .35s ease; }
.tb-l.on p { border-color: rgba(var(--accent-rgb), .7); box-shadow: 0 0 24px rgba(var(--accent-rgb), .16); color: var(--fg); }
@media (max-width: 1040px) { .tb-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .tb-graf { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tb-graf .tb-g:first-child { grid-column: 1 / -1; }
  .tb-ley { position: relative; grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 560px; margin-inline: auto; }
  .tb-ley::before { content: ""; position: absolute; left: 10px; top: 14px; bottom: 34px; width: 2px; background: #17505A; }
  .tb-l { position: relative; z-index: 1; }
  .tb-l p { margin-left: 34px; }
}
@media (max-width: 600px) {
  .tb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-graf { grid-template-columns: minmax(0, 1fr); }
  .tb-in { padding: 11px; }
}

/* 3. Agentes: lo que entra, el agente al centro y lo que sale, en tres columnas unidas por corchetes rectos
   (la misma lectura del one page de la farmacia). La composición es la de tablet: en pantallas grandes no se
   estira, se centra con ese mismo ancho. En celular y tablet vertical los pasos 1, 2 y 3 quedan sobre una línea
   vertical, a la izquierda, y los corchetes bajan por ella hasta cada tarjeta. */
.g-trio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 901px) {
  .g-trio { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px 56px; align-items: center; max-width: 960px; margin-inline: auto; }
  .g-trio.tel { grid-template-columns: 280px minmax(0, 1.1fr) minmax(0, 1fr); }
  .g-trio .k1 { grid-area: 1 / 1; } .g-trio .k2 { grid-area: 1 / 2; } .g-trio .k3 { grid-area: 1 / 3; }
  .g-trio .c1 { grid-area: 2 / 1; } .g-trio .c2 { grid-area: 2 / 2; } .g-trio .c3 { grid-area: 2 / 3; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .g-trio { column-gap: 40px; }
  .g-trio.tel { grid-template-columns: 260px minmax(0, 1.1fr) minmax(0, 1fr); }
  .wa-tel .phone { width: 260px; height: 624px; }
}
@media (max-width: 900px) {
  .g-trio { max-width: 560px; margin-inline: auto; }
  .g-trio .t-col { margin-left: 34px; }
  .g-trio .k2, .g-trio .k3 { margin-top: 10px; }
  .g-trio .wa-tel { align-items: flex-start; }
  .g-trio .wa-pie { text-align: left; }
}
.t-k { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.t-k i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-style: normal; font-size: 11px; letter-spacing: 0; }
.t-col { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fu { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; transition: border-color .35s ease, box-shadow .35s ease; }
.fu b { display: block; font-size: 15px; line-height: 1.25; }
.fu small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--fg-3); }
.fu-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: rgba(var(--accent-rgb), .12); }
.fu-ic i, .ag-av i, .w-av i, .w-prod i, .w-mapa i { display: block; background: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.fu-ic i { width: 19px; height: 19px; }
.fu.on { border-color: rgba(var(--accent-rgb), .85); box-shadow: 0 0 24px rgba(var(--accent-rgb), .22); }
.fu .docs { flex: none; width: 88px; height: 70px; }
.fu .scan { flex: none; width: 88px; height: 60px; }
.docs { position: relative; height: 74px; }
.docs span { position: absolute; width: 52px; height: 66px; border-radius: 5px; background: rgba(255,255,255,0.14); border: 1px solid var(--line); }
.docs span::before { content: ""; position: absolute; inset: 10px 8px auto; height: 30px; background: repeating-linear-gradient(rgba(255,255,255,0.3) 0 2px, transparent 2px 7px); }
.scan { position: relative; height: 74px; border-radius: 8px; background: rgba(255,255,255,0.06); overflow: hidden; }
.scan::before { content: ""; position: absolute; inset: 10px 14px; background: repeating-linear-gradient(rgba(255,255,255,0.25) 0 2px, transparent 2px 8px); }
.scan i { position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--accent); box-shadow: 0 0 14px var(--accent); animation: escaneo 1.8s ease-in-out infinite alternate; }
@keyframes escaneo { to { top: calc(100% - 10px); } }
.ag { align-items: center; text-align: center; gap: 10px; padding: 20px 18px; }
.ag > b { font-size: 23px; }
.ag > small { font-family: var(--font-body); font-size: 13px; letter-spacing: 0; color: var(--fg-3); }
.ag-av { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: rgba(var(--accent-rgb), .12); border: 2px solid var(--accent); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .1); }
.ag-av i { width: 30px; height: 30px; }
.ag-k { align-self: stretch; margin-top: 4px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,0.18); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.reglas { align-self: stretch; list-style: none; margin: 0; padding: 0 4px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.reglas li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 14px; line-height: 1.3; color: var(--fg-2); }
.reglas li::before { content: "✓"; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; color: var(--on-accent); background: var(--ok); transition: background .25s ease, color .25s ease; }
.reglas.guarda li::before { content: ""; background: transparent; border: 2px solid var(--accent); width: 10px; height: 10px; margin: 0 4px; }
.reglas.dims li::before { background: rgba(255,255,255,0.1); color: transparent; }
.reglas.dims li.on::before { background: var(--ok); color: var(--on-accent); }
.ag-n { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.ag-n b { color: var(--fg); font-variant-numeric: tabular-nums; }
.bar-x { height: 12px; border-radius: 6px; background: rgba(255,255,255,0.08); overflow: hidden; min-width: 160px; flex: 1; }
.bar-x span { display: block; height: 100%; width: 100%; background: var(--amber); border-radius: 6px; }

/* El celular de WhatsApp: quién escribe y, debajo de cada respuesta, qué consultó el agente */
.wa-tel { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wa-tel .phone { height: 580px; width: 280px; transition: box-shadow .35s ease; }
.wa-tel.on .phone { box-shadow: inset 0 0 0 6px #050B15, 0 0 34px rgba(var(--accent-rgb), .3); }
.wa-pie { max-width: 280px; text-align: center; font-size: 13px; line-height: 1.35; color: var(--fg-3); }
.w-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px 14px 0 0; background: #1F2C34; }
.w-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent); color: var(--on-accent); }
.w-av i { width: 18px; height: 18px; }
.w-head b { display: block; font-size: 14px; }
.w-head small { display: block; font-size: 11px; color: var(--fg-3); }
.w-chat { flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 10px 9px; background: #0B141A; -webkit-mask-image: linear-gradient(transparent, #000 14px); mask-image: linear-gradient(transparent, #000 14px); }
.w-msg { max-width: 90%; display: block; padding: 7px 10px; font-size: 12.5px; line-height: 1.4; transition: box-shadow .35s ease; }
.w-msg.yo { align-self: flex-end; background: #005C4B; border-radius: 10px 10px 3px 10px; }
.w-msg.bot { align-self: flex-start; background: #202C33; border-radius: 10px 10px 10px 3px; }
.w-msg.bot.on { box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .7); }
.w-msg em { display: block; text-align: right; margin-top: 1px; font-style: normal; font-size: 10px; color: rgba(255,255,255,0.55); }
.w-prod { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 7px 8px; border-radius: 8px; border-left: 3px solid var(--accent); background: rgba(255,255,255,0.06); font-weight: 700; font-size: 12px; }
.w-prod i { flex: none; width: 15px; height: 15px; color: var(--accent); }
.w-mapa { display: grid; place-items: center; width: 168px; max-width: 100%; height: 44px; margin-bottom: 5px; border-radius: 8px; color: var(--accent); background: repeating-linear-gradient(35deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 14px), repeating-linear-gradient(-55deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 18px), #12313A; }
.w-mapa i { width: 22px; height: 22px; }
.w-src { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .02em; color: var(--accent); }
.w-escr { align-self: flex-start; display: flex; gap: 4px; padding: 10px 12px; border-radius: 10px; background: #202C33; }
.w-escr i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-3); animation: puntos 1s ease-in-out infinite; }
.w-escr i:nth-child(2) { animation-delay: .15s; } .w-escr i:nth-child(3) { animation-delay: .3s; }
@keyframes puntos { 50% { opacity: .3; transform: translateY(-2px); } }

/* Los corchetes: líneas sólidas y opacas (al encimarse no se ven dobles); la rama que trabaja se enciende */
.esc-wires.esc-corchetes path.r { fill: none; stroke: #17505A; stroke-width: 1.6; stroke-dasharray: none; stroke-linejoin: round; }
.esc-wires.esc-corchetes path.r.on { stroke: var(--accent); stroke-width: 2; }
.esc-wires.esc-corchetes marker path { fill: #17505A; stroke: none; }
.esc-wires.esc-corchetes marker.mb path { fill: var(--accent); }

/* 4. Del diseño a producción: cuatro pasos en fila, unidos por flechas. Misma composición de tablet en pantallas
   grandes (centrada, sin estirarse); en celular y tablet vertical los pasos bajan por una línea a la izquierda. */
.g-pp { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 901px) { .g-pp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.3fr); gap: 0 34px; max-width: 1040px; margin-inline: auto; } }
.pp-e { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pp-c { flex: 1; justify-content: space-between; gap: 12px; transition: border-color .35s ease, box-shadow .35s ease; }
.pp-e.on .pp-c { border-color: rgba(var(--accent-rgb), .7); box-shadow: 0 0 24px rgba(var(--accent-rgb), .16); }
.pp-pie { font-family: var(--font-body) !important; font-size: 12.5px !important; letter-spacing: 0 !important; line-height: 1.35; }
/* flechas entre pasos */
.pp-e:not(:last-child) .pp-c::after { content: ""; position: absolute; top: 50%; right: -30px; width: 22px; height: 2px; background: #17505A; transition: background .35s ease; }
.pp-e:not(:last-child) .pp-c::before { content: ""; position: absolute; top: calc(50% - 5px); right: -32px; border: 6px solid transparent; border-left-color: #17505A; border-right: 0; transition: border-color .35s ease; }
.pp-e.on:not(:last-child) .pp-c::after { background: var(--accent); }
.pp-e.on:not(:last-child) .pp-c::before { border-left-color: var(--accent); }
@media (max-width: 900px) {
  .g-pp { max-width: 560px; margin-inline: auto; }
  .g-pp::before { content: ""; position: absolute; left: 10px; top: 11px; bottom: 60px; width: 2px; background: #17505A; }
  .pp-e .t-k { margin-top: 6px; }
  .pp-c { margin-left: 34px; }
  .pp-e .pp-c::after, .pp-e .pp-c::before { top: 34px !important; right: auto !important; }
  .pp-e .pp-c::after { left: -24px; width: 16px !important; }
  .pp-e .pp-c::before { left: -10px; }
  .pp-e:last-child .pp-c::after { content: ""; position: absolute; height: 2px; background: #17505A; }
  .pp-e:last-child .pp-c::before { content: ""; position: absolute; border: 6px solid transparent; border-left-color: #17505A; border-right: 0; }
  .pp-e.on .pp-c::after { background: var(--accent) !important; }
  .pp-e.on .pp-c::before { border-left-color: var(--accent) !important; }
}
/* ventanas y pantallas ilustradas (también en la vitrina de Software) */
.ui-win { position: relative; border-radius: 10px; border: 1px solid var(--line); background: #0A1628; overflow: hidden; }
.ui-bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: rgba(255,255,255,0.05); border-bottom: 1px solid var(--line); }
.ui-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.22); flex: none; }
.ui-bar span { margin-left: 6px; font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* la tienda en línea: buscador, carrito, categorías y productos con precio */
.ec { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.ec-top { display: flex; align-items: center; gap: 6px; }
.ec-logo { flex: none; width: 22px; height: 10px; border-radius: 3px; background: var(--accent); }
.ec-bus { flex: 1; min-width: 0; padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,0.07); font-size: 9px; color: var(--fg-3); white-space: nowrap; overflow: hidden; }
.ec-cart { position: relative; flex: none; width: 16px; height: 16px; color: var(--fg-2); }
.ec-cart i, .ec-img i, .es-lista i, .es-srv i, .es-main i, .es-cache i { display: block; background: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.ec-cart i { width: 16px; height: 16px; }
.ec-n { position: absolute; top: -6px; right: -7px; min-width: 13px; height: 13px; padding: 0 3px; border-radius: 7px; background: var(--amber); color: #1A1205; font-size: 8.5px; font-weight: 800; line-height: 13px; text-align: center; }
.ec-cats { display: flex; gap: 4px; overflow: hidden; }
.ec-cats span { flex: none; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,0.06); font-size: 8.5px; color: var(--fg-3); white-space: nowrap; }
.ec-cats .on { background: rgba(var(--accent-rgb), .22); color: var(--fg); }
.ec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ec-card { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 5px; border-radius: 7px; background: rgba(255,255,255,0.04); }
.ec-img { height: 36px; display: grid; place-items: center; border-radius: 5px; color: rgba(255,255,255,0.85); background: linear-gradient(135deg, rgba(var(--accent-rgb), .55), rgba(var(--accent-rgb), .12)); }
.ec-img i { width: 16px; height: 16px; }
.ec-card b, .ec.det > b { font-size: 9.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-card em, .ec.det > em { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--fg); }
.ec-disp { display: flex; align-items: center; gap: 3px; font-size: 8px; color: var(--ok); white-space: nowrap; overflow: hidden; }
.ec-disp::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ec-add { margin-top: 2px; padding: 3px 0; border-radius: 999px; text-align: center; font-size: 9px; font-weight: 800; background: var(--accent); color: var(--on-accent); }
.ec-toast { position: absolute; top: 28px; right: 6px; padding: 3px 7px; border-radius: 6px; background: var(--ok); color: #05210F; font-size: 8.5px; font-weight: 800; opacity: 0; pointer-events: none; }
/* el diseño: la misma tienda en bloques grises, sin color ni texto */
.ec.gris .ec-logo, .ec.gris .ec-bus, .ec.gris .ec-cats span, .ec.gris .ec-img, .ec.gris .ec-add { background: rgba(255,255,255,0.09); color: transparent; }
.ec.gris .ec-card b, .ec.gris .ec-card em { color: transparent; background: rgba(255,255,255,0.1); border-radius: 3px; }
.ec.gris .ec-disp { color: rgba(255,255,255,0.15); font-size: 0; height: 6px; }
.ec.gris .ec-n { display: none; }
.ec.gris .ec-cart { color: rgba(255,255,255,0.2); }
.ec.gris .ec-img i { opacity: 0; }
.ec.gris .ec-add { border: 1px dashed rgba(255,255,255,0.25); }
/* el detalle en el celular */
.ec.det { padding: 3px; gap: 3px; }
.ec.det .ec-img { height: 30px; }
.ec.det > b { font-size: 8px; } .ec.det > em { font-size: 9.5px; }
.ec.det .ec-add { font-size: 7px; padding: 2px 0; }
.pp-suc { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 2px 4px; border-radius: 4px; background: rgba(255,255,255,0.05); font-size: 7px; }
.pp-suc b { font-weight: 600; }
.pp-suc em { font-style: normal; font-size: 0; display: inline-flex; align-items: center; }
.pp-suc em::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pp-suc.si em { color: var(--ok); } .pp-suc.poco em { color: var(--amber); } .pp-suc.no em { color: var(--fg-3); }
.pp-nota { position: absolute; right: 8px; bottom: 34px; max-width: 70%; padding: 5px 8px; border-radius: 8px 8px 2px 8px; background: #F2C14E; color: #2A2006; font-size: 10px; font-weight: 700; line-height: 1.25; box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.pp-cod { display: flex; flex-direction: column; gap: 5px; }
.pp-cod span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.pp-cod code { display: block; min-height: 52px; padding: 8px 10px; border-radius: 8px; background: #0A1628; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; line-height: 1.45; color: var(--fg-2); word-break: break-word; }
.pp-cod code b { color: var(--ok); font-weight: 600; }
.pp-chk { padding: 2px 0; }
.pp-dev { position: relative; padding-right: 58px; padding-bottom: 14px; }
.pp-cel { position: absolute; right: 0; bottom: 0; width: 72px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.22); background: #0A1628; padding: 6px 4px; box-shadow: 0 10px 26px rgba(0,0,0,0.5); }

/* 4b. Lista para miles de usuarios: el momento del negocio se elige arriba y la infraestructura responde */
.es-carga { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 18px; }
@media (min-width: 901px) { .g-pp.esc4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.es-gente { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
.es-gente i { aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,0.08); transition: background .35s ease, transform .35s ease; }
.es-gente i.on { background: var(--accent); transform: scale(1.08); }
.es-momento { font-family: var(--font-display); font-size: 20px; line-height: 1.1; color: var(--fg); }
.es-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.es-lista li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; align-items: start; font-size: 13px; line-height: 1.3; color: var(--fg-2); }
.es-lista i { width: 16px; height: 16px; margin-top: 1px; color: var(--accent); }
.es-srv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.es-srv span { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 7px 4px; border-radius: 8px; border: 1px dashed rgba(255,255,255,0.14); color: rgba(255,255,255,0.18); transition: all .35s ease; }
.es-srv i { width: 18px; height: 18px; }
.es-srv s { width: 80%; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.08); overflow: hidden; }
.es-srv span.on { border: 1px solid rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .1); color: var(--accent); }
.es-srv span.on s { background: linear-gradient(90deg, var(--ok) 62%, rgba(255,255,255,0.08) 62%); }
.es-db { display: flex; flex-direction: column; gap: 6px; }
.es-main, .es-cache { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; font-size: 12.5px; font-weight: 600; }
.es-main { border: 1px solid rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .1); }
.es-cache { border: 1px solid rgba(var(--amber-rgb), .45); background: rgba(var(--amber-rgb), .08); font-weight: 400; font-size: 12px; color: var(--fg-2); }
.es-main i, .es-cache i { flex: none; width: 16px; height: 16px; color: var(--accent); }
.es-cache i { color: var(--amber); }
.es-rep { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.es-rep span { padding: 5px 3px; border-radius: 6px; border: 1px dashed rgba(255,255,255,0.14); text-align: center; font-size: 9.5px; line-height: 1.2; color: rgba(255,255,255,0.25); transition: all .35s ease; }
.es-rep span.on { border: 1px solid rgba(var(--accent-rgb), .5); color: var(--fg-2); }
.es-med { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; max-width: 1040px; margin: 18px auto 0; }
@media (max-width: 640px) { .es-med { grid-template-columns: 1fr; } }
.es-med > div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(18,32,51,0.94); }
.es-med span { font-size: 13px; color: var(--fg-2); white-space: nowrap; }
.es-med em { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.es-med s { display: block; height: 100%; border-radius: 4px; transition: width .6s ease; }
.es-resp s { width: 26%; background: var(--ok); }
.es-costo s { width: 22%; background: var(--accent); }
.es-med b { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--fg-3); white-space: nowrap; }
.es-med b.ok { color: var(--ok); }

/* 5. El reporte de las 18:00: los tres pasos a la izquierda, sobre una línea, y a la derecha el correo y el chat que
   producen. Cada parte del correo lleva el número de su paso y se enciende con él. Misma composición en todos los
   tamaños: en grande se centra sin estirarse y en celular los pasos quedan arriba, con el correo debajo. */
.g-rep { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 560px; margin-inline: auto; }
@media (min-width: 901px) { .g-rep { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 44px; max-width: 980px; align-items: center; } }
.rp-pasos { position: relative; display: flex; flex-direction: column; gap: 14px; }
.rp-pasos::before { content: ""; position: absolute; left: 10px; top: 14px; bottom: 34px; width: 2px; background: #17505A; }
.rp-p { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.rp-p p { margin: 0 0 0 34px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(18,32,51,0.94); font-size: 14px; line-height: 1.4; color: var(--fg-2); transition: border-color .35s ease, box-shadow .35s ease, color .35s ease; }
.rp-p.on p { border-color: rgba(var(--accent-rgb), .7); box-shadow: 0 0 24px rgba(var(--accent-rgb), .16); color: var(--fg); }
.rp-obj { position: relative; display: flex; flex-direction: column; min-width: 0; }
.rp-mail { padding-bottom: 22px; }
.rp-cab { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.rp-cab b { display: block; font-size: 14px; line-height: 1.25; }
.rp-cab small { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.3; color: var(--fg-3); }
.rp-av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--accent-rgb), .15); color: var(--accent); }
.rp-av i, .cu-org > i, .cu-c i, .cu-commit i, .cu-tmp i { display: block; background: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.rp-av i { width: 16px; height: 16px; }
.rp-sec { display: flex; flex-direction: column; gap: 8px; margin: 10px 10px 0; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; transition: border-color .35s ease, background .35s ease; }
.rp-sec.on { border-color: rgba(var(--accent-rgb), .7); background: rgba(var(--accent-rgb), .06); }
.rp-k { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.rp-k i { flex: none; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 9.5px; letter-spacing: 0; background: rgba(255,255,255,0.1); color: var(--fg-2); transition: background .35s ease, color .35s ease; }
.on > .rp-k i { background: var(--accent); color: var(--on-accent); }
.rp-n { min-width: 18px; padding: 1px 5px; border-radius: 9px; background: #DC4B4B; color: #fff; font-size: 10px; text-align: center; letter-spacing: 0; }
.rp-f { display: grid; grid-template-columns: 84px minmax(0, 1fr) 122px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--fg-2); }
.rp-f em { height: 9px; border-radius: 5px; background: rgba(255,255,255,0.06); overflow: hidden; }
.rp-f s { display: block; height: 100%; border-radius: 5px; background: rgba(var(--accent-rgb), .75); }
.rp-f b { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--fg-3); white-space: nowrap; }
.rp-f b.up { color: var(--fg); } .rp-f b.warn { color: var(--amber); } .rp-f b.down { color: var(--ok); }
.rp-al { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 12.5px; line-height: 1.35; color: var(--fg-2); }
.rp-pill { justify-self: start; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.rp-pill.pico { background: rgba(220,75,75,0.18); color: #FF8A8A; }
.rp-pill.nuevo { background: rgba(var(--amber-rgb), .18); color: var(--amber); }
.rp-pill.sin { background: rgba(167,139,250,0.18); color: #C4B5FD; }
/* el chat, encima de la esquina del correo */
.rp-chat { position: relative; z-index: 1; align-self: flex-end; width: min(88%, 420px); margin-top: -16px; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: #13202F; box-shadow: 0 14px 34px rgba(0,0,0,0.45); transition: border-color .35s ease, box-shadow .35s ease; }
.rp-chat.on { border-color: rgba(var(--accent-rgb), .7); box-shadow: 0 14px 34px rgba(0,0,0,0.45), 0 0 24px rgba(var(--accent-rgb), .2); }
.rp-q { align-self: flex-end; max-width: 85%; padding: 7px 10px; border-radius: 10px 10px 3px 10px; background: rgba(var(--accent-rgb), .22); font-size: 12.5px; line-height: 1.35; }
.rp-a { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; color: var(--fg-2); }
.rp-a .rp-av { width: 24px; height: 24px; } .rp-a .rp-av i { width: 13px; height: 13px; }
.rp-chat .w-escr { background: rgba(255,255,255,0.08); }
@media (max-width: 520px) {
  .rp-f { grid-template-columns: minmax(0, 1fr) auto; row-gap: 5px; }
  .rp-f em { grid-column: 1 / -1; grid-row: 2; }
  .rp-al { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .rp-chat { width: 94%; }
}

/* 5b. Cuentas separadas y seguras: los pasos del pipeline de Software, en tres columnas. En el paso 2, el árbol de la
   organización: una línea baja de ella y se abre a las dos cuentas. */
@media (min-width: 901px) { .g-pp.esc3 { grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr) minmax(0, 1fr); max-width: 1000px; } }
.cu-cod { min-height: 104px; white-space: pre-wrap; }
.cu-uno { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cu-uno .pp-cod { align-self: stretch; }
.cu-plan i, .cu-tmp i { width: 13px; height: 13px; }
.cu-arbol { display: flex; flex-direction: column; }
.cu-org { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 10px; border: 1px solid rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .08); }
.cu-org > i { flex: none; width: 18px; height: 18px; color: var(--accent); }
.cu-org b { display: block; font-size: 13.5px; }
.cu-org small { display: block; font-size: 11.5px; line-height: 1.3; color: var(--fg-3); }
.cu-hijos { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding-top: 18px; }
.cu-hijos::before { content: ""; position: absolute; top: 0; left: calc(50% - 1px); width: 2px; height: 9px; background: #17505A; }
.cu-hijos::after { content: ""; position: absolute; top: 9px; left: 25%; right: 25%; height: 9px; border: 2px solid #17505A; border-bottom: 0; border-radius: 4px 4px 0 0; }
.cu-c { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 6px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); text-align: center; min-width: 0; }
.cu-c i { width: 18px; height: 18px; color: var(--fg-2); }
.cu-c b { font-size: 13px; }
.cu-c small { font-size: 11px; line-height: 1.25; color: var(--fg-3); }
.cu-c.nueva { border-color: rgba(var(--accent-rgb), .7); background: rgba(var(--accent-rgb), .1); box-shadow: 0 0 20px rgba(var(--accent-rgb), .2); }
.cu-c.nueva i { color: var(--accent); }
.cu-reglas li { font-size: 12.5px; }
.cu-git { display: flex; flex-direction: column; gap: 10px; }
.cu-commit { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.05); font-size: 13px; font-weight: 600; }
.cu-commit i { flex: none; width: 18px; height: 18px; }
.cu-lane { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 12.5px; }
.cu-lane span { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); white-space: nowrap; }
.cu-lane em { position: relative; height: 2px; background: #17505A; }
.cu-lane em s { position: absolute; top: -3px; left: 100%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.cu-lane b { padding: 4px 9px; border-radius: 8px; border: 1px solid var(--line); font-weight: 600; white-space: nowrap; transition: border-color .3s ease, background .3s ease, color .3s ease; }
.cu-lane.ok b { border-color: rgba(61,220,151,0.6); background: rgba(61,220,151,0.1); color: var(--ok); }
.cu-lane.ok b::after { content: " ✓"; }
.cu-tmp { align-self: flex-start; white-space: normal; line-height: 1.3; border-radius: 10px; }

/* 6. El recorrido de una decisión (Estrategia): seis capítulos sobre una línea, cada uno con su número. A la
   izquierda el texto y el ejemplo real; a la derecha su visual. Los visuales con más datos (pronóstico, pruebas y
   plan) van a todo lo ancho, debajo de su texto. En celular, siempre el texto arriba y el visual debajo. */
.mt { position: relative; list-style: none; margin: 40px auto 0; padding: 0; max-width: 1100px; display: flex; flex-direction: column; gap: 56px; }
.mt::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--accent), rgba(var(--accent-rgb), .12)); }
.mt-c { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding-left: 64px; }
@media (min-width: 901px) {
  .mt-c { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 36px; align-items: start; }
  .mt-c.ancho { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .mt-c.ancho .mt-tx { max-width: 760px; }
}
.mt-n { position: absolute; left: 0; top: 0; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; background: var(--bg); border: 2px solid var(--accent); color: var(--accent); box-shadow: 0 0 0 6px var(--bg); }
.mt-tx { display: flex; flex-direction: column; gap: 10px; padding-top: 11px; text-align: left; min-width: 0; }
.mt-tx h3 { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; text-wrap: balance; }
.mt-tx p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--fg-2); }
.mt-tx .mt-pr { padding: 10px 12px; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; background: rgba(var(--accent-rgb), .07); font-size: 14px; color: var(--fg); }
.mt-vis { min-width: 0; }
.vis { border: 1px solid var(--line); border-radius: var(--radius); background: #0B1729; padding: clamp(14px, 2vw, 22px); min-width: 0; overflow: hidden; text-align: left; }
.vis button { min-height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg-2); font: 600 13.5px/1 var(--font-body); cursor: pointer; }
.vis button:hover { color: var(--fg); border-color: rgba(var(--accent-rgb), .6); }
.vis button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mt-fin { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; max-width: 1100px; margin: 48px auto 0; padding: 16px 18px; border-radius: var(--radius); border: 1px solid rgba(var(--accent-rgb), .45); background: rgba(var(--accent-rgb), .07); text-align: left; }
.mt-fin .mt-n { position: static; flex: none; box-shadow: none; }
.mt-fin div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 3px; }
.mt-fin b { font-size: 17px; }
.mt-fin span { font-size: 14px; line-height: 1.4; color: var(--fg-2); }
@media (max-width: 600px) {
  .mt { gap: 44px; }
  .mt::before { left: 16px; }
  .mt-n { width: 34px; height: 34px; font-size: 16px; }
  .mt-c { padding-left: 48px; }
  .vis { padding: 12px; }
}

/* 6.1 La brecha: hoy a la izquierda (ámbar, punteado) y a dónde va a la derecha, con la cita del criterio */
.br { display: flex; flex-direction: column; gap: 10px; }
.br-cab, .br-f { display: grid; grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr); gap: 10px; align-items: center; }
.br-cab span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.br-cab span:last-child { color: var(--accent); }
.br-hoy, .br-meta { padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.35; }
.br-hoy { border: 1px dashed rgba(var(--amber-rgb), .55); background: rgba(var(--amber-rgb), .06); color: var(--fg-2); }
.br-meta { border: 1px solid rgba(var(--accent-rgb), .55); background: rgba(var(--accent-rgb), .08); color: var(--fg); }
.br-fl { position: relative; height: 2px; }
.br-fl s { position: absolute; top: 0; bottom: 0; left: 0; right: 8px; background: linear-gradient(90deg, var(--amber), var(--accent)); }
.br-fl::after { content: ""; position: absolute; right: 0; top: -5px; border: 6px solid transparent; border-left-color: var(--accent); border-right: 0; }
.br-cita { margin: 6px 0 0; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); }
.br-cita p { margin: 0; font-family: var(--font-display); font-size: 21px; line-height: 1.25; color: var(--fg); }
.br-cita small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--fg-3); }
/* en celular cada par (hoy y a dónde va) es su propia tarjeta, con su etiqueta arriba y aire entre pares */
@media (max-width: 520px) {
  .br { gap: 14px; }
  .br-cab { display: none; }
  .br-f { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); }
  .br-hoy::before, .br-meta::before { display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
  .br-hoy::before { content: "Hoy"; color: var(--amber); }
  .br-meta::before { content: "A dónde va"; color: var(--accent); }
  :lang(en) .br-hoy::before { content: "Today"; }
  :lang(en) .br-meta::before { content: "Where it's headed"; }
  .br-fl { width: 2px; height: 18px; margin-left: 22px; }
  .br-fl s { right: 0; bottom: 6px; background: linear-gradient(var(--amber), var(--accent)); }
  .br-fl::after { right: auto; left: -5px; top: auto; bottom: 0; border: 6px solid transparent; border-top-color: var(--accent); border-bottom: 0; }
}

/* 6.2 ¿Se puede deshacer?: dos columnas; la forma de guardar los datos pasa de "a fondo" a "se prueba rápido" */
.pt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pt-col { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); min-width: 0; }
.pt-col.rap { border-color: rgba(61,220,151,0.45); }
.pt-col.fon { border-color: rgba(var(--amber-rgb), .5); }
.pt-k { display: flex; align-items: center; gap: 10px; }
.pt-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 14px; font-weight: 700; }
.rap .pt-ic { background: rgba(61,220,151,0.14); color: var(--ok); }
.fon .pt-ic { background: rgba(var(--amber-rgb), .16); color: var(--amber); }
.pt-k b { display: block; font-size: 15px; }
.pt-k small { display: block; font-size: 12px; color: var(--fg-3); }
.pt ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pt li { padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,0.05); font-size: 13px; line-height: 1.3; color: var(--fg-2); }
.pt li.pt-mov { border: 1px solid var(--accent); background: rgba(var(--accent-rgb), .12); color: var(--fg); font-weight: 600; }
.pt li.pt-mov em { display: block; margin-top: 3px; font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--accent); }
.pt li.pt-fan { opacity: .35; border: 1px dashed rgba(255,255,255,0.3); background: transparent; text-decoration: line-through; }
.pt-rev { margin: 12px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--fg-2); }
.pt-rev b { color: var(--fg); }
@media (max-width: 520px) { .pt { grid-template-columns: minmax(0, 1fr); } }

/* 6.3 Construir, comprar o conservar */
.cc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.cc-col { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; border-top: 3px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.03); min-width: 0; }
.cc-col.c0 { border-top-color: var(--accent); }
.cc-col.c1 { border-top-color: #A78BFA; }
.cc-k b { display: block; font-family: var(--font-display); font-size: 19px; }
.cc-k small { display: block; font-size: 12px; line-height: 1.3; color: var(--fg-3); }
.cc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cc li { padding: 7px 9px; border-radius: 8px; font-size: 12.5px; line-height: 1.3; background: rgba(255,255,255,0.05); color: var(--fg-2); }
.cc .c0 li { background: rgba(var(--accent-rgb), .12); color: var(--fg); }
.cc .c1 li { background: rgba(167,139,250,0.14); color: var(--fg); }
@media (max-width: 600px) { .cc { grid-template-columns: minmax(0, 1fr); } }

/* 6.4 Costo y pronóstico: cuatro escalas, cada barra con su composición; la lectura a la derecha */
.pr { display: flex; flex-direction: column; gap: 14px; }
.pr-ctl { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.pr-modo { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-ley { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-3); }
.pr-ley i { width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.pr-ley i:first-child { margin-left: 0; }
.pr .lic { background: var(--amber); } .pr .pla { background: var(--accent); } .pr .ia { background: #A78BFA; }
.pr-cuerpo { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.pr-graf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; height: 250px; }
.vis .pr-b { height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 4px 6px; border-radius: 10px; border: 1px solid transparent; font: inherit; color: var(--fg-2); }
.vis .pr-b[aria-pressed="true"] { background: rgba(var(--accent-rgb), .08); border-color: rgba(var(--accent-rgb), .6); color: var(--fg); }
.pr-pila { flex: 1; width: 100%; max-width: 70px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 6px 6px 2px 2px; overflow: hidden; background: rgba(255,255,255,0.04); }
.pr-pila s { display: block; width: 100%; transition: height .6s ease; }
.pr-b b { font-family: var(--font-mono); font-size: 12px; }
.pr-b em { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--ok); white-space: nowrap; }
.pr-lec { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.pr-lec small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.pr-lec > div { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.04); }
.pr-lec b { flex: none; min-width: 92px; font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.pr-lec span { font-size: 13px; line-height: 1.3; color: var(--fg-2); }
.pr-nota { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--fg-3); }
.pr-nota b { color: var(--fg); }
@media (max-width: 700px) { .pr-cuerpo { grid-template-columns: minmax(0, 1fr); } .pr-graf { height: 200px; } }

/* 6.5 Probar antes de construir: tres fichas con su sello */
.pb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pb-c { display: flex; flex-direction: column; gap: 9px; padding: 14px 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(18,32,51,0.94); min-width: 0; }
.pb-ind { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.pb-q { font-family: var(--font-display); font-size: 17px; line-height: 1.22; }
.pb dl { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pb dt { font-size: 11px; color: var(--fg-3); }
.pb dd { margin: 0; font-size: 13px; line-height: 1.3; color: var(--fg-2); }
.pb dd b { font-family: var(--font-display); font-size: 19px; color: var(--fg); }
.pb-sello { align-self: flex-start; margin-top: auto; padding: 6px 12px; border-radius: 8px; border: 2px solid; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transform: rotate(-4deg); }
.pb-c.si .pb-sello { color: var(--ok); border-color: var(--ok); background: rgba(61,220,151,0.08); }
.pb-c.no .pb-sello { color: var(--accent); border-color: var(--accent); background: rgba(var(--accent-rgb), .08); }
.pb-c.ajusta .pb-sello { color: var(--amber); border-color: var(--amber); background: rgba(var(--amber-rgb), .08); }
@media (max-width: 860px) { .pb { grid-template-columns: minmax(0, 1fr); } }

/* 6.6 Un plan con varias iniciativas: cada iniciativa y las áreas de servicio que toca. Se enciende una iniciativa a
   la vez (sola o al tocarla), con todas sus áreas al mismo tiempo; las demás se apagan. */
.pm { display: flex; flex-direction: column; gap: 12px; }
.pm-t { display: flex; flex-direction: column; overflow-x: auto; }
.pl-h, .pl-r { display: grid; grid-template-columns: minmax(150px, 1.7fr) repeat(5, minmax(46px, 1fr)); gap: 6px; align-items: center; }
.pl-h { padding: 0 10px 6px 16px; }
.pl-h > span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.pl-a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 2px; border-radius: 10px; border: 1px solid var(--line); font-size: 11.5px; font-weight: 600; line-height: 1.1; color: var(--fg-2); transition: background .3s ease, border-color .3s ease, color .3s ease; }
.pl-a.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pl-a i { width: 18px; height: 18px; background: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.pl-r { padding: 8px 10px 8px 16px; border-top: 1px solid var(--line); border-radius: 8px; cursor: pointer; transition: opacity .3s ease, background .3s ease, box-shadow .3s ease; }
.pl-r:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pl-r.on { background: rgba(var(--accent-rgb), .1); box-shadow: inset 3px 0 0 var(--accent); }
.pl-r.apaga { opacity: .35; }
.pl-n b { display: block; font-size: 13.5px; line-height: 1.25; }
.pl-n em { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-3); }
/* donde la iniciativa usa el área, un círculo lleno con palomita; donde no, la celda queda vacía (Tomás, 27-oct:
   la marca va donde sí aplica). */
.pl-p { display: grid; place-items: center; height: 32px; }
.pl-p:not(.si) i { display: none; }
.pl-p i { transition: transform .3s ease, box-shadow .3s ease; }
.pl-p.si i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.pl-p.si i::after { content: "✓"; font-style: normal; font-size: 12px; font-weight: 900; line-height: 1; color: var(--on-accent); }
.pl-p.si.on i { transform: scale(1.18); box-shadow: 0 0 16px rgba(var(--accent-rgb), .8); }
.pm-sel { margin: 0; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(var(--accent-rgb), .4); background: rgba(var(--accent-rgb), .07); font-size: 14px; line-height: 1.4; color: var(--fg-2); }
.pm-sel b { color: var(--fg); }
.pm-pie { margin: 0; font-size: 13px; line-height: 1.45; color: var(--fg-2); }
.pm-pie b { color: var(--fg); }
.pm-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pm-k div { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(var(--accent-rgb), .3); background: rgba(var(--accent-rgb), .07); }
.pm-k b { display: block; font-family: var(--font-display); font-size: 28px; line-height: 1; color: var(--accent); }
.pm-k span { font-size: 12.5px; line-height: 1.3; color: var(--fg-2); }
@media (max-width: 600px) {
  .pm-k { grid-template-columns: minmax(0, 1fr); }
  .pl-h, .pl-r { grid-template-columns: minmax(96px, 1.5fr) repeat(5, minmax(28px, 1fr)); gap: 3px; }
  .pl-a > span { display: none; }
  .pl-h { padding: 0 6px 6px 12px; }
  .pl-r { padding: 8px 6px 8px 12px; }
  .pl-n b { font-size: 12.5px; }
  .pl-p.si i { width: 19px; height: 19px; }
  .pl-p.si i::after { font-size: 11px; }
}

/* 7. El recorrido de una pregunta */
.g-ana { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px 40px; align-items: center; }
@media (max-width: 900px) { .g-ana { grid-template-columns: 1fr; justify-items: stretch; } .ana-tel { justify-self: center; } }
/* El celular de Teams, el mismo de la portada */
.ana-tel { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ana-tel .phone { height: 560px; }
.ana-tel .t-msg.bot.no { border-color: rgba(var(--amber-rgb), .6); }
.ana-tel .prohibida { min-height: 40px; }
/* La consulta bloqueada antes de ejecutarse */
.paso .bloq { display: none; margin-top: 6px; color: var(--amber); font-size: 12.5px; }
.paso.bloq .bloq { display: block; }
.paso.bloq code { text-decoration: line-through; text-decoration-color: rgba(var(--amber-rgb), .8); opacity: .75; }
/* Dónde se ejecuta: un diagrama hacia cada motor */
.motores { --g: 8px; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); margin-top: 12px; padding-top: 16px; }
/* el bus horizontal lo arma cada motor con su tramo, para que las esquinas siempre se toquen */
.mo::after { content: ""; position: absolute; top: -16px; left: calc(var(--g) / -2); right: calc(var(--g) / -2); height: 1.5px; background: rgba(var(--accent-rgb), .45); }
.mo:first-child::after { left: 50%; }
.mo:last-child::after { right: 50%; }
.mo { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); font-size: 11.5px; color: var(--fg-3); transition: color .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease; min-width: 0; }
.mo::before { content: ""; position: absolute; top: -16px; left: 50%; width: 1.5px; height: 16px; background: rgba(var(--accent-rgb), .45); }
.mo i { width: 20px; height: 20px; background: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.mo.on { color: var(--accent); border-color: rgba(var(--accent-rgb), .7); background: rgba(var(--accent-rgb), .08); box-shadow: 0 0 16px rgba(var(--accent-rgb), .25); }
@media (max-width: 520px) { .mo { font-size: 10px; padding: 7px 2px; } .motores { --g: 5px; } }
.paso.off .mo.on { color: var(--fg-3); border-color: var(--line); background: transparent; box-shadow: none; }
.paso { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); transition: border-color .3s ease, background .3s ease, opacity .3s ease; }
.paso + .paso { margin-top: 12px; }
.paso .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,0.3); font-family: var(--font-mono); font-size: 13px; }
.paso b { display: block; font-size: 15px; }
.paso small { color: var(--fg-3); font-size: 13px; }
.paso.on { border-color: rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .07); }
.paso.on .n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.paso.no { border-color: rgba(var(--amber-rgb), .7); background: rgba(var(--amber-rgb), .08); }
.paso.no .n { background: var(--amber); border-color: var(--amber); color: #04131E; }
.paso.off { opacity: .35; }
.paso code { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-2); white-space: pre-wrap; word-break: break-word; }
.ventana { border-radius: 16px; border: 1px solid rgba(var(--accent-rgb), .4); background: rgba(4,13,30,0.7); padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 280px; }
.ventana .cab { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.ventana .cab span:last-child { font-weight: 400; color: var(--fg-3); font-size: 11px; }
.burbuja { font-size: 14px; padding: 10px 12px; border-radius: 12px; max-width: 92%; }
.burbuja.q { align-self: flex-end; background: rgba(255,255,255,0.08); border-radius: 12px 12px 4px 12px; }
.burbuja.a { align-self: flex-start; background: rgba(18,32,51,0.95); border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; display: flex; flex-direction: column; gap: 8px; }
.burbuja.a.no { border-color: rgba(var(--amber-rgb), .6); }
.mini-bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; }
.mini-bars i { flex: 1; background: var(--accent); border-radius: 4px 4px 1px 1px; transform-origin: bottom; }
.fuente { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }
.motor { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

/* 8. Selector de modelos */
.g-sel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px 34px; align-items: center; }
@media (max-width: 860px) { .g-sel { grid-template-columns: 1fr; } }
.tareas { display: flex; flex-direction: column; gap: 6px; }
.esc .tarea { min-height: 0; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--fg-2); text-align: left; line-height: 1.3; transition: background .3s ease, border-color .3s ease, color .3s ease; }
.esc .tarea.on { border-color: rgba(var(--accent-rgb), .7); background: rgba(var(--accent-rgb), .1); color: var(--fg); }
.orbit { position: relative; width: min(100%, 340px); aspect-ratio: 1; margin: 0 auto; }
.orbit::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed rgba(var(--accent-rgb), .35); }
.orbit .core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 34%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--surface); border: 1px solid var(--accent); box-shadow: 0 0 40px rgba(var(--accent-rgb), .3); font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.orbit .m { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(18,32,51,0.95); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease; }
.orbit .m i { width: 14px; height: 14px; background: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.orbit .m.on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); box-shadow: 0 0 24px rgba(var(--accent-rgb), .5); }
.medidas { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.medidas div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13px; color: var(--fg-2); }
.medidas .tr { height: 10px; border-radius: 5px; background: rgba(255,255,255,0.08); overflow: hidden; }
.medidas .tr span { display: block; height: 100%; border-radius: 5px; background: var(--accent); transition: width .5s ease; }

/* Escenas chicas del acordeón de la portada */
.scene[data-mini] { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 14px; }
.mini-fila { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mini-capas { display: flex; flex-direction: column; gap: 6px; }
.mini-capas span { position: relative; height: 22px; border-radius: 6px; background: rgba(255,255,255,0.06); overflow: hidden; font-size: 12px; font-weight: 600; display: flex; align-items: center; padding-left: 8px; }
.mini-capas span i { position: absolute; inset: 0 auto 0 0; width: 0; opacity: .35; }
.mini-capas span b { position: relative; }
.mini-big { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.mini-big small { font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--fg-3); margin-left: 6px; }
.mini-dots { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; }
.mini-dots i { display: block; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,0.12); }
.mini-dots i.on { background: var(--accent); }
.mini-pods { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; flex: 1; }
.mini-pods i { display: block; aspect-ratio: 1; border-radius: 3px; background: rgba(255,255,255,0.08); }
.mini-pods i.on { background: var(--accent); }
@media (max-width: 860px) { .scene[data-mini] { min-height: 190px; justify-content: flex-start; } }

/* Escenas chicas, versión con más aire */
.scene[data-mini] { padding: clamp(16px, 2vw, 24px); }
.scene[data-mini] > :first-child { margin-top: auto; }
.scene[data-mini] > :last-child { margin-bottom: auto; }
.mm-datos { display: grid; grid-template-columns: auto 22px minmax(0, 1fr) 22px auto; align-items: center; gap: 10px; }
.mm-src { display: flex; flex-direction: column; gap: 6px; }
.mm-fl { height: 2px; background: repeating-linear-gradient(90deg, rgba(var(--accent-rgb), .8) 0 5px, transparent 5px 9px); }
.mm-verdad { width: 78px; height: 78px; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 1px solid var(--accent); background: rgba(var(--accent-rgb), .12); box-shadow: 0 0 24px rgba(var(--accent-rgb), .3); }
.mm-verdad b { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--accent); }
.mm-verdad small { font-size: 11px; color: var(--fg-2); }
@media (max-width: 520px) { .mm-datos { grid-template-columns: auto minmax(0, 1fr); } .mm-fl { display: none; } .mm-verdad { grid-column: 1 / -1; justify-self: center; } }
.mm-ia { display: flex; flex-direction: column; gap: 12px; }
.mm-hub { position: relative; height: 150px; margin-inline: 8%; }
.mm-ag { position: absolute; left: 50%; top: 47%; translate: -50% -50%; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; background: var(--surface); border: 1px solid var(--accent); box-shadow: 0 0 30px rgba(var(--accent-rgb), .35); }
.mm-c { position: absolute; translate: -50% -50%; transition: background .3s ease, color .3s ease; }
.mm-c.on { background: var(--accent); color: var(--on-accent); }
.mm-canales { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.mm-ciclo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mm-ciclo .ch { position: relative; transition: background .3s ease, color .3s ease; }
.mm-ciclo .ch.on { background: rgba(var(--accent-rgb), .9); color: var(--on-accent); }
.mm-ciclo .ch + .ch::before { content: "→"; position: absolute; left: -9px; color: var(--fg-3); font-size: 11px; }
.mm-ciclo .ch + .ch { margin-left: 8px; }
.mm-amb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mm-amb span { padding: 6px; border-radius: 8px; text-align: center; font-size: 12px; font-weight: 600; border: 1px solid rgba(61,220,151,.5); background: rgba(61,220,151,.08); }
.mm-dash { display: flex; flex-direction: column; gap: 10px; }
.mm-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mm-kpis div { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.05); min-width: 0; }
.mm-kpis small { display: block; font-size: 10.5px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-kpis b { font-family: var(--font-display); font-size: 22px; font-variant-numeric: tabular-nums; }
.mm-pan { padding: 10px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
.mm-pan small { display: block; font-size: 10.5px; color: var(--fg-3); margin-bottom: 6px; }
.mm-pan svg { width: 100%; height: 70px; display: block; }
.mm-l { fill: none; stroke: var(--accent); stroke-width: 2; }
.mm-area { fill: rgba(var(--accent-rgb), .14); stroke: none; }
.mm-bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; }
.mm-bars i { flex: 1; background: var(--accent); border-radius: 4px 4px 1px 1px; transform-origin: bottom; }
.mm-tri { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); align-items: center; gap: 16px; }
.mm-tri svg { width: 100%; height: auto; }
.mm-tri .t-base { fill: none; stroke: rgba(255,255,255,0.25); stroke-width: 1.4; }
.mm-tri .t-eq { fill: rgba(var(--accent-rgb), .22); stroke: var(--accent); stroke-width: 1.6; }
.mm-tri .t-pt { fill: var(--accent); }
.mm-tri text { fill: var(--fg-2); font-family: var(--font-mono); font-size: 10px; }
@media (max-width: 520px) { .mm-tri { grid-template-columns: 1fr; justify-items: center; } }

/* Ajustes de la segunda tanda de comentarios */
.mm-med span { justify-content: space-between; gap: 8px; padding: 0 8px; min-width: 0; }
.mm-med b { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-med em { position: relative; font-style: normal; font-size: 10.5px; font-weight: 400; color: var(--fg); opacity: .8; white-space: nowrap; }
.mm-hub { height: 196px; margin-inline: 0; }
.mm-hub::before { content: ""; position: absolute; left: 14%; right: 14%; top: 9%; bottom: 14%; border-radius: 50%; border: 1px dashed rgba(var(--accent-rgb), .35); }
.mm-sw { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px; }
@media (max-width: 560px) { .mm-sw { grid-template-columns: 1fr; } }
.mm-win { border-radius: 10px; border: 1px solid var(--line); background: rgba(4,13,30,0.7); overflow: hidden; min-width: 0; }
.mm-bar { display: flex; align-items: center; gap: 5px; padding: 6px 8px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.04); }
.mm-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.mm-bar span { margin-left: 6px; font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); }
.mm-code { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; font-family: var(--font-mono); font-size: 10.5px; line-height: 1.4; color: var(--fg-2); white-space: pre; overflow: hidden; }
.mm-code b { font-weight: 500; color: var(--accent); }
.mm-code u { text-decoration: none; color: var(--amber); }
.mm-ui { display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.mm-kp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.mm-kp b { padding: 5px; border-radius: 6px; background: rgba(255,255,255,0.06); font-family: var(--font-display); font-size: 15px; text-align: center; }
.mm-row { display: flex; justify-content: space-between; gap: 6px; padding: 4px 6px; border-radius: 6px; background: rgba(255,255,255,0.04); font-size: 11px; }
.mm-row em { font-style: normal; color: var(--fg-3); }
.mm-row.nuevo { background: rgba(var(--accent-rgb), .16); }
.mm-row.nuevo em { color: var(--ok); }
.mm-ci { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mm-ci span { padding: 6px 4px; border-radius: 8px; text-align: center; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line); color: var(--fg-3); transition: all .3s ease; }
.mm-ci span.on { border-color: rgba(61,220,151,.6); background: rgba(61,220,151,.1); color: var(--fg); }
.mm-ci span.on::after { content: " ✓"; color: var(--ok); }
.mm-tri { grid-template-columns: minmax(0, 180px) minmax(0, 1fr); }
.mm-tri .mini-big { font-size: 24px; line-height: 1.05; }
.mm-tri .mini-big small { display: block; margin: 6px 0 0; }

/* Escenas chicas en SVG: medallion, pila de software y triángulo */
.mm-svg { width: 100%; height: auto; max-height: 100%; display: block; overflow: visible; }
.d-src { fill: rgba(255,255,255,0.06); stroke: var(--line); }
.d-srct { fill: var(--fg-2); font: 600 13px var(--font-body); text-anchor: middle; }
.d-cap, .d-banda { fill: rgba(255,255,255,0.035); stroke-width: 1.6; }
.d-verdad-t { fill: var(--accent); font: 700 20px var(--font-display); letter-spacing: .02em; text-anchor: middle; }
.d-lab { font: 500 12px var(--font-mono); letter-spacing: .12em; }
.mm-medallion .d-lab, .mm-medallion .d-sub { text-anchor: start; }
.d-sub { fill: var(--fg-3); font: 400 11px var(--font-body); text-anchor: middle; }
.d-fl { fill: none; stroke: rgba(var(--accent-rgb), .65); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.d-cua { fill: rgba(var(--amber-rgb), .12); stroke: rgba(var(--amber-rgb), .6); }
.d-cuat { fill: var(--amber); font: 600 10.5px var(--font-body); text-anchor: middle; }
.d-verdad { fill: rgba(var(--accent-rgb), .12); stroke: var(--accent); stroke-width: 1.5; }
.d-uno { fill: var(--accent); font: 700 34px var(--font-display); text-anchor: middle; }
.d-unot { fill: var(--fg-2); font: 400 11px var(--font-body); text-anchor: middle; }
.d-cons { fill: var(--fg-3); font: 400 10.5px var(--font-body); text-anchor: middle; }
.d-blq { fill: #F2C14E; opacity: .88; }
.d-pulso { fill: var(--accent); }
.s-cara { fill: rgba(18,32,51,0.97); stroke: rgba(var(--accent-rgb), .5); stroke-width: 1.2; }
.c-ui .s-cara { stroke: var(--accent); }
.s-lado { fill: #0B1626; stroke: rgba(var(--accent-rgb), .22); }
.s-lado2 { fill: #08111F; }
.s-el { fill: rgba(255,255,255,0.09); }
.s-acc { fill: rgba(var(--accent-rgb), .8); }
.s-amb { fill: rgba(var(--amber-rgb), .85); }
.s-lin { fill: rgba(255,255,255,0.2); }
.s-nuevo { fill: rgba(var(--accent-rgb), .15); }
.s-guia { fill: none; stroke: rgba(255,255,255,0.18); stroke-dasharray: 3 4; }
.s-nom { fill: var(--fg); font: 700 16px var(--font-display); letter-spacing: .01em; }
.s-tec { fill: var(--fg-3); font: 400 12px var(--font-mono); }
.s-pulso { fill: var(--amber); }
.mm-triang .t-base { fill: none; stroke: rgba(255,255,255,0.28); stroke-width: 1.5; }
.t-eje { stroke: rgba(255,255,255,0.12); stroke-dasharray: 3 4; }
.mm-triang .t-eq { fill: rgba(var(--accent-rgb), .22); stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; }
.mm-triang .t-pt { fill: var(--accent); }
.t-pill { fill: rgba(18,32,51,0.96); stroke: rgba(var(--accent-rgb), .6); }
.t-pillt { fill: var(--fg); font: 700 12.5px var(--font-body); text-anchor: middle; }

/* Tableros más completos en el acordeón */
.mm-dash.grande { gap: 8px; }
.mm-kpis.cuatro { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 520px) { .mm-kpis.cuatro { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mm-fila { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
@media (max-width: 520px) { .mm-fila { grid-template-columns: 1fr; } }
.mm-dash.grande .mm-pan svg { height: 90px; }
.mm-rej { fill: none; stroke: rgba(255,255,255,0.07); }
.mm-hbars { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.mm-hbars div { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 8px; font-size: 11.5px; color: var(--fg-2); }
.mm-hbars i { display: block; height: 10px; border-radius: 5px; background: var(--accent); transform-origin: left center; }
.mm-bars.etiq { height: 90px; padding-bottom: 16px; }
.mm-bars.etiq i { position: relative; }
.mm-bars.etiq em { position: absolute; left: 50%; bottom: -16px; translate: -50% 0; font-style: normal; font-size: 9.5px; color: var(--fg-3); white-space: nowrap; }
.mm-log { display: flex; flex-direction: column; gap: 5px; }
.mm-log span { padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,0.04); font-size: 12px; color: var(--fg-2); }
.mm-log .hecho::before { content: "✓ "; color: var(--ok); }
.mm-log .info::before { content: "● "; color: var(--accent); }
.mm-tabla { display: flex; flex-direction: column; gap: 4px; }
.mm-tabla div { display: grid; grid-template-columns: minmax(0, 1fr) 80px 54px; gap: 8px; padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,0.04); font-size: 12px; color: var(--fg-2); }
.mm-tabla span:nth-child(2) { font-variant-numeric: tabular-nums; text-align: right; color: var(--fg); }
.mm-tabla em { font-style: normal; text-align: right; }
.mm-tabla .up { color: var(--ok); }
.mm-tabla .down { color: var(--amber); }

/* Estrategia: insumos que alimentan el triángulo */
.t-in { stroke: rgba(var(--accent-rgb), .28); stroke-dasharray: 3 5; }
.t-chip { fill: rgba(18,32,51,0.96); stroke: rgba(255,255,255,0.22); }
.t-chipt { fill: var(--fg-2); font: 600 12px var(--font-body); text-anchor: middle; }
.t-tec .t-chip { stroke: rgba(var(--accent-rgb), .55); }
.t-fin .t-chip { stroke: rgba(242,193,78,.6); }
.t-imp .t-chip { stroke: rgba(var(--amber-rgb), .6); }
.t-pul { fill: var(--accent); }
.mm-triang .t-pill { fill: var(--surface); stroke: var(--accent); }
.mm-triang .t-pillt { font: 700 13px var(--font-display); letter-spacing: .02em; }

/* Celular: las escenas en SVG usan su geometría alta y los tableros se quedan con lo esencial */
.mm-cel .d-srct { font-size: 12px; }
.mm-cel .d-verdad-t { font-size: 22px; }
.mm-cel .s-nom { font-size: 14px; }
.mm-cel .s-tec { font-size: 11px; }
.mm-cel .t-chipt { font-size: 11.5px; }
@media (max-width: 520px) {
  .mm-dash.grande .mm-fila > .mm-pan:last-child { display: none; }
  .mm-tabla div { grid-template-columns: minmax(0, 1fr) 60px 44px; }
  .mm-tabla span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

@media (prefers-reduced-motion: reduce) {
  .scan i, .pulse-dot { animation: none !important; }
}
