/* ============================================================
   Kelp · Producto (hub, "Cómo funciona Kelp"). Solo las escenas
   de esta página; hero, cabeceras, cierre, nav y pie son del sistema.
   Prefijos: cp- (hero, la capa), pz- (las cuatro piezas),
   cm- (frente a un chat de IA).
   ============================================================ */

/* ---- Hero: la arquitectura de Kelp. Dentro de Kelp, arriba donde trabajáis (Studio y
   Chat) y debajo lo que trabaja (Expert Workers y Memoria); fuera, las Conexiones con
   vuestras herramientas. Lo que circula son fichas con el icono de su tipo; cada pieza
   se enciende cuando algo pasa por ella. El diagrama (.cp-dg) mide 1104 × 580 y se escala
   para caber; el cursor de Tú vive fuera de él, en el lienzo sin escalar ---- */
#capas { height: 680px; }
.cp-cv { --cw: 100%; --ch: 100%; }
.cp-dg { position: absolute; left: 50%; top: 50%; width: 1104px; height: 580px; translate: -50% -50%; }
.cp-kelp { position: absolute; left: 0; top: 0; width: 1104px; height: 416px; border-radius: 24px; background: rgb(1 33 32 / .42); box-shadow: inset 0 0 0 1px rgb(198 238 227 / .2), 0 30px 60px -30px rgb(0 0 0 / .55); }
.cp-kt { position: absolute; left: 32px; top: 17px; display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: #F2FBF8; }
.cp-kt .kbot { width: 24px; height: 24px; border-radius: 7px; background: var(--foam); color: var(--deep); }
.cp-wires, .cp-ports, .cp-lit { position: absolute; left: 0; top: 0; width: 1104px; height: 580px; overflow: visible; pointer-events: none; }
.cp-wires path { fill: none; stroke: rgb(198 238 227 / .3); stroke-width: 1.5; stroke-dasharray: 2 5; stroke-linecap: round; }
.cp-wires .cp-bus { stroke-dasharray: none; }
.cp-wires .cp-drop { stroke: rgb(198 238 227 / .2); }
.cp-ports circle { fill: #0B3F3B; stroke: rgb(198 238 227 / .6); stroke-width: 1.5; }
.cp-lit path { fill: none; stroke: var(--foam); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 4px rgb(198 238 227 / .8)); }
.cp-lit .cp-le { stroke: #F6DDAE; filter: drop-shadow(0 0 4px rgb(246 221 174 / .8)); }
/* Donde trabajáis: dos ventanas claras */
.cp-st { left: 32px; top: 56px; width: 480px; height: 148px; }
.cp-ch { left: 592px; top: 56px; width: 480px; height: 148px; }
.cp-ew { left: 32px; top: 256px; width: 480px; height: 136px; }
.cp-mem { left: 592px; top: 256px; width: 480px; height: 136px; }
.cp-win { position: absolute; overflow: hidden; border-radius: 12px; background: #E3EBE9; box-shadow: 0 24px 48px -20px rgb(0 0 0 / .6); transition: background-color .35s, box-shadow .35s; }
.cp-win.on { background: #fff; box-shadow: 0 0 0 2px var(--foam), 0 0 44px -4px rgb(198 238 227 / .45), 0 24px 48px -20px rgb(0 0 0 / .6); }
.cp-wh { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 14px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.cp-wh > .ic { width: 15px; height: 15px; color: var(--teal); }
.cp-wt { margin-left: auto; }
.cp-apps { margin-left: auto; display: flex; gap: 9px; }
.cp-apps img { width: 15px; height: 15px; }
.cp-wb { position: relative; height: 114px; }
.cp-sk { display: block; height: 6px; }
.cp-sk i { display: block; height: 100%; border-radius: 3px; background: #D9E2DF; transform-origin: left; }
/* Studio: la página que se escribe */
.cp-pg { position: absolute; left: 50%; top: 12px; width: 300px; height: 92px; translate: -50% 0; display: grid; grid-template-columns: 1fr 72px; gap: 18px; padding: 22px 16px 10px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 8px 18px -12px rgb(1 33 32 / .4); overflow: hidden; }
.cp-pb { position: absolute; left: 0; right: 0; top: 0; height: 9px; background: var(--deep); }
.cp-pl { display: grid; gap: 8px; align-content: start; }
.cp-pl .cp-sk:first-child { height: 9px; margin-bottom: 2px; }
.cp-pl .cp-sk:first-child i { background: #9DB3AE; }
.cp-bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; border-bottom: 1px solid var(--line-2); }
.cp-bars i { flex: 1; border-radius: 2px 2px 0 0; background: #9FD2C2; transform-origin: bottom; }
.cp-car { position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 5px; z-index: 3; box-shadow: 0 6px 12px -4px rgb(1 33 32 / .5); }
/* Chat: el mensaje de Kelp con el documento y tu visto bueno */
.cp-km { position: absolute; left: 16px; right: 16px; top: 16px; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.cp-km > .kbot { width: 26px; height: 26px; border-radius: 50%; }
.cp-km > .kbot svg { width: 16px; height: 16px; }
.cp-bub { display: grid; gap: 10px; padding: 11px 12px 10px; border-radius: 4px 12px 12px 12px; background: #EEF2F1; }
.cp-att { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; padding: 6px 6px 6px 8px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.cp-th { position: relative; width: 22px; height: 28px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.cp-th i { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--deep); }
.cp-okw { justify-items: end; }
.cp-btn { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 6px; background: var(--deep); color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap; transition: box-shadow .3s; }
.cp-btn.ready { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--teal); }
/* Lo que trabaja: dos piezas de cristal oscuro */
.cp-box { position: absolute; border-radius: 14px; background: rgb(255 255 255 / .045); box-shadow: inset 0 0 0 1px rgb(198 238 227 / .16); transition: background-color .35s, box-shadow .35s; }
.cp-box.on { background: rgb(198 238 227 / .09); box-shadow: inset 0 0 0 1.5px rgb(198 238 227 / .6), 0 0 40px -6px rgb(198 238 227 / .35); }
.cp-bh { position: absolute; left: 16px; top: 11px; font-size: 13px; font-weight: 600; color: #F2FBF8; }
.cp-box .cp-sk i { background: rgb(198 238 227 / .3); }
/* Expert Workers: cada puesto con su especialidad y su avance */
.cp-wks { position: absolute; left: 0; right: 0; top: 52px; display: flex; justify-content: center; gap: 36px; }
.cp-wk { position: relative; display: grid; justify-items: center; gap: 11px; opacity: .55; transition: opacity .35s; }
.cp-wk > .kbot { width: 40px; height: 40px; border-radius: 11px; background: #0B2E2C; box-shadow: inset 0 0 0 1px rgb(198 238 227 / .25); color: var(--foam); transition: box-shadow .35s; }
.cp-wk > .kbot svg { width: 24px; height: 24px; }
.cp-rl { position: absolute; left: 29px; top: -7px; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--teal); display: grid; place-items: center; box-shadow: 0 2px 6px rgb(0 0 0 / .35); }
.cp-rl .ic { width: 11px; height: 11px; stroke-width: 2.2; }
.cp-bar { display: block; width: 40px; height: 3px; border-radius: 2px; background: rgb(198 238 227 / .16); overflow: hidden; }
.cp-bar i { display: block; height: 100%; background: var(--foam); transform-origin: left; transform: scaleX(0); }
.cp-wk.run, .cp-wk.done { opacity: 1; }
.cp-wk.run > .kbot { box-shadow: inset 0 0 0 1px var(--foam), 0 0 0 4px rgb(198 238 227 / .14), 0 0 22px rgb(198 238 227 / .4); }
/* Memoria: los hechos, cada uno con su fuente, y el criterio aprendido */
.cp-mc { position: absolute; left: 16px; right: 16px; top: 40px; display: grid; grid-template-columns: 216px 1fr; }
.cp-cr { padding-left: 20px; border-left: 1px solid rgb(198 238 227 / .14); }
.cp-mc small { display: block; margin-bottom: 7px; font-size: 11.5px; font-weight: 600; line-height: 1.2; color: rgb(198 238 227 / .6); }
.cp-rows { display: grid; gap: 4px; padding-right: 20px; }
.cp-row { display: grid; grid-template-columns: 13px 1fr; align-items: center; gap: 9px; height: 13px; border-radius: 4px; transition: background-color .4s, box-shadow .4s; }
.cp-row img { width: 13px; height: 13px; object-fit: contain; }
.cp-row.hit { background: rgb(198 238 227 / .12); box-shadow: 0 0 0 4px rgb(198 238 227 / .12); }
.cp-ck { width: 13px; height: 13px; border-radius: 50%; background: rgb(198 238 227 / .22); color: var(--foam); display: grid; place-items: center; }
.cp-ck .ic { width: 9px; height: 9px; stroke-width: 3; }
.cp-lr img { border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px var(--ember); }
.cp-lr .cp-sk i { background: rgb(250 231 199 / .6); }
.cp-lr.hit { background: rgb(250 231 199 / .14); box-shadow: 0 0 0 4px rgb(250 231 199 / .14); }
/* Conexiones: el bus y vuestras herramientas */
.cp-cx { position: absolute; left: 32px; top: 421px; height: 24px; display: flex; align-items: center; gap: 7px; padding: 0 12px 0 10px; border-radius: 99px; background: #0B3F3B; box-shadow: inset 0 0 0 1px rgb(198 238 227 / .32); font-size: 13px; font-weight: 600; color: #F2FBF8; }
.cp-cx .ic { width: 14px; height: 14px; color: var(--foam); }
.cp-tray { position: absolute; left: 32px; top: 478px; width: 1040px; height: 88px; border-radius: 18px; background: rgb(255 255 255 / .045); box-shadow: inset 0 0 0 1px rgb(198 238 227 / .13); }
.cp-tools { position: absolute; left: 48px; top: 498px; display: flex; gap: 32px; }
.cp-tile { width: 48px; height: 48px; border-radius: 13px; background: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px -10px rgb(0 0 0 / .55); transition: box-shadow .3s; }
.cp-tile img { width: 24px; height: 24px; object-fit: contain; }
.cp-tile.on { box-shadow: 0 0 0 3px var(--foam), 0 0 26px 2px rgb(198 238 227 / .5); }
/* Lo que circula */
.cp-fx { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.cp-tk { position: absolute; left: 0; top: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: #fff; color: var(--teal); display: grid; place-items: center; box-shadow: 0 0 0 4px rgb(198 238 227 / .22), 0 0 18px 2px rgb(198 238 227 / .55), 0 6px 14px -4px rgb(0 0 0 / .5); opacity: 0; }
.cp-tk .ic { width: 14px; height: 14px; stroke-width: 2; }
.cp-tk img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.cp-tk.cp-em { box-shadow: 0 0 0 3px var(--ember), 0 0 18px 3px rgb(246 221 174 / .6), 0 6px 14px -4px rgb(0 0 0 / .5); }

/* ---- 1 · Las cuatro piezas: una superficie con un objeto por pieza; debajo, el texto
   de cada pieza y la franja de Conexiones ---- */
.pz-surf { margin: 0 24px; height: 264px; border-radius: 18px; }
.pz-in { position: relative; height: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
.pz-slot { display: grid; place-items: center; }
/* Memoria: el archivo de las cuentas. Tres carpetas en un cajón con el símbolo de Kelp;
   lo que llega de cada herramienta entra en su carpeta como una hoja con su logo */
.pz-arc { position: relative; width: 250px; height: 162px; margin-top: 8px; }
.pz-fd { position: absolute; left: 16px; top: 6px; width: 218px; height: 110px; --fc: #BCE4D5; --fd: #A6D8C5; --tx: 18px; }
.pz-fd:nth-child(2) { top: 36px; --fc: #F6E1BA; --fd: #EDD09E; --tx: 82px; }
.pz-fd:nth-child(3) { top: 66px; --fc: #F4F8F7; --fd: #E2ECE8; --tx: 146px; }
.pz-bk { position: absolute; inset: 0; border-radius: 3px 8px 0 0; background: var(--fc); }
.pz-bk::before { content: ""; position: absolute; left: var(--tx); top: -12px; width: 52px; height: 13px; border-radius: 6px 6px 0 0; background: var(--fc); }
.pz-fr { position: absolute; left: 0; right: 0; top: 16px; bottom: 0; border-radius: 3px 3px 0 0; background: var(--fd); box-shadow: 0 -1px 3px rgb(1 33 32 / .08); }
.pz-sh { position: absolute; top: -12px; left: 136px; width: 58px; height: 44px; padding: 7px 8px; display: grid; gap: 5px; align-content: start; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px rgb(1 33 32 / .06), 0 4px 10px -6px rgb(1 33 32 / .35); }
.pz-fd:nth-child(2) .pz-sh { left: 16px; }
.pz-fd:nth-child(3) .pz-sh { left: 76px; }
.pz-sh img { width: 14px; height: 14px; object-fit: contain; }
.pz-sh i { display: block; height: 4px; border-radius: 2px; background: #DDE5E2; }
.pz-sh i:last-child { width: 70%; }
.pz-dr { position: absolute; left: 0; top: 100px; width: 250px; height: 62px; border-radius: 12px; background: var(--deep); display: grid; place-items: center; box-shadow: inset 0 1px 0 rgb(198 238 227 / .16), 0 20px 34px -18px rgb(1 33 32 / .7); }
.pz-dr .kbot { width: 60px; height: 34px; border-radius: 8px; background: rgb(198 238 227 / .06); box-shadow: inset 0 0 0 1px rgb(198 238 227 / .2); }
.pz-dr .kbot svg { width: 22px; height: 22px; }
/* Expert Workers: tres puestos; cada uno termina su encargo y deja el resultado encima,
   hecho en su herramienta (correo, CRM, calendario) */
.pz-team { display: grid; grid-template-columns: repeat(3, 78px); gap: 4px; }
.pz-w { display: grid; grid-template-rows: 52px 64px; justify-items: center; gap: 16px; }
.pz-out { position: relative; align-self: end; display: block; border-radius: 5px; background: #fff; box-shadow: 0 0 0 1px rgb(1 33 32 / .07), 0 10px 20px -12px rgb(1 33 32 / .45); }
.pz-env { width: 54px; height: 38px; }
.pz-env svg { width: 100%; height: 100%; fill: none; stroke: #B5C6C0; stroke-width: 1.6; stroke-linejoin: round; }
.pz-rec { width: 54px; height: 46px; padding: 8px 8px 0 25px; display: grid; gap: 5px; align-content: start; }
.pz-rf { position: absolute; left: 7px; top: 7px; width: 13px; height: 13px; border-radius: 50%; background: #CFE3DC; }
.pz-cal { width: 50px; height: 46px; overflow: hidden; }
.pz-ch { display: block; height: 11px; background: var(--deep); }
.pz-cg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px 7px; }
.pz-cg i { height: 6px; border-radius: 2px; background: #E1E8E6; }
.pz-cg .pz-cd { background: var(--teal); }
.pz-ok { position: absolute; right: -7px; top: -7px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.pz-cal .pz-ok { right: 3px; top: 14px; }
.pz-ok .ic { width: 10px; height: 10px; stroke-width: 3; }
.pz-av { position: relative; width: 64px; height: 64px; display: grid; place-items: center; opacity: .5; transition: opacity .35s; }
.pz-av .kbot { width: 48px; height: 48px; border-radius: 50%; }
.pz-av .kbot svg { width: 28px; height: 28px; }
.pz-rg { position: absolute; inset: 0; width: 64px; height: 64px; rotate: -90deg; fill: none; stroke-width: 3; }
.pz-rg circle { stroke: rgb(1 33 32 / .1); }
.pz-rg .pz-rp { stroke: var(--teal); stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.pz-rl { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--teal); display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line), 0 3px 8px -3px rgb(1 33 32 / .4); }
.pz-rl .ic { width: 12px; height: 12px; stroke-width: 2; }
.pz-w.run .pz-av, .pz-w.done .pz-av { opacity: 1; }
/* Studio: tres entregables con la misma plantilla */
.pz-docs { position: relative; width: 274px; height: 186px; }
.pz-doc { position: absolute; top: 26px; width: 110px; height: 150px; padding: 24px 11px 10px; border-radius: 5px; display: grid; gap: 7px; align-content: start; overflow: hidden; font-size: 11.5px; }
.pz-doc:nth-child(1) { left: 0; rotate: -6deg; }
.pz-doc:nth-child(2) { left: 82px; top: 8px; z-index: 2; }
.pz-doc:nth-child(3) { left: 164px; rotate: 6deg; }
.pz-band { position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--deep); }
.pz-doc > b { font-size: 12px; font-weight: 600; }
.pz-l { display: block; height: 5px; }
.pz-l i { display: block; height: 100%; border-radius: 3px; background: #D9E2DF; transform-origin: left; }
.pz-fee { display: flex; justify-content: space-between; margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--line-2); font-size: 9.5px; color: var(--ink-2); }
.pz-fee span:last-child { font-weight: 700; color: var(--ink); }
.pz-bars { display: flex; align-items: flex-end; gap: 5px; height: 40px; margin-top: 4px; }
.pz-bars i { flex: 1; border-radius: 2px 2px 0 0; background: #9FD2C2; transform-origin: bottom; }
.pz-li { display: grid; grid-template-columns: 8px 1fr; gap: 6px; align-items: center; margin-top: 2px; }
.pz-li > i { width: 8px; height: 8px; border-radius: 2px; background: var(--foam); box-shadow: inset 0 0 0 1px var(--ok); }
/* Chat: Kelp escribe por la app de cada equipo; lo nuevo entra arriba */
.pz-nts { position: relative; width: 256px; height: 176px; }
.pz-nt { position: absolute; left: 0; right: 0; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; height: 54px; padding: 0 12px; border-radius: 12px; font-size: 12px; line-height: 1.35; }
.pz-nt:nth-child(1) { top: 0; }
.pz-nt:nth-child(2) { top: 61px; }
.pz-nt:nth-child(3) { top: 122px; }
.pz-nt img { width: 22px; height: 22px; }
.pz-nt b { display: flex; justify-content: space-between; font-weight: 600; }
.pz-nt small { font-size: 10.5px; font-weight: 500; color: var(--ink-3); }
/* El texto de cada pieza y la base */
.pz-cols { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 24px; }
.pz-c { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 20px 22px 22px; border-right: 1px solid var(--line); }
.pz-c:last-child { border-right: 0; }
.pz-c > b { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.pz-c > p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.pz-c > .link { margin-top: auto; padding-top: 12px; font-size: 14px; }
.pz-conn { display: flex; align-items: center; gap: 12px; margin: 0 24px; padding: 18px 22px 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.pz-conn .ic { width: 18px; height: 18px; color: var(--teal); }
.pz-conn b { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.pz-conn .link { margin-left: auto; font-size: 14px; }

/* ---- 2 · Frente a un chat de IA: dos columnas separadas; en cada ronda, un contraste que
   se entiende sin leer (la ventana vacía frente a la que se llena sola, la memoria a 0 frente
   a cientos, los corchetes frente a la marca de la firma, lo mismo para todas frente a
   vuestras tarifas y casos). Debajo, los cuatro pares, que avanzan con la escena ---- */
.cm { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.cm-side { padding: 10px 0 20px; }
.cm-gen { border-right: 1px solid var(--line); }
.cm-h { display: flex; align-items: center; gap: 10px; padding: 0 clamp(24px, 3vw, 40px) 14px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.cm-ai { width: 28px; height: 28px; border-radius: 8px; background: #E7E7E3; color: #6E7271; display: grid; place-items: center; flex: none; }
.cm-ai .ic { width: 15px; height: 15px; }
.cm-h .kbot { width: 28px; height: 28px; border-radius: 8px; }
.cm-h .kbot svg { width: 18px; height: 18px; }
.cm-s { position: relative; display: grid; place-items: center; height: 298px; margin: 0 24px; border-radius: 18px; }
.cm-gen .cm-s { background: #EFEEEA; box-shadow: inset 0 0 0 1px var(--line); }
.cm-win { width: 440px; height: 278px; display: flex; flex-direction: column; overflow: hidden; }
.cm-gen .cm-win { box-shadow: 0 0 0 1px rgb(1 33 32 / .08), 0 10px 24px -18px rgb(1 33 32 / .35); }
.cm-wh { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--line); font-weight: 600; flex: none; }
.cm-wh img { width: 16px; height: 16px; }
.cm-wh .cm-ai { width: 22px; height: 22px; border-radius: 6px; }
.cm-wh .cm-ai .ic { width: 12px; height: 12px; }
.cm-wh small { margin-left: auto; font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.cm-fr { display: grid; place-items: center; width: 100%; height: 100%; }
.cm-fr > * { grid-area: 1 / 1; }
.cm-body { flex: 1; min-height: 0; }
.cm-in { display: flex; align-items: center; gap: 2px; height: 34px; margin: 0 12px 10px; padding: 0 14px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12.5px; color: var(--ink-3); flex: none; }
.cm-caret { width: 1.5px; height: 15px; margin-right: 3px; background: var(--ink-2); animation: cm-blink 1.1s steps(1) infinite; }
@keyframes cm-blink { 50% { opacity: 0; } }
/* 1 · lo hecho sin pedirlo: cada entrega, con su herramienta y su hora */
.cm-feed { display: grid; align-content: start; gap: 7px; padding: 12px 14px; }
.cm-it { display: grid; grid-template-columns: 18px 1fr auto 14px; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border-radius: 10px; background: #F6F8F7; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.cm-it img { width: 18px; height: 18px; }
.cm-it b { font-weight: 600; }
.cm-it small { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cm-it .ic { width: 14px; height: 14px; color: var(--ok); stroke-width: 2.5; }
/* 2 · la memoria: un contador y las fuentes que lo alimentan */
.cm-mem { display: grid; justify-items: center; gap: 6px; }
.cm-num { font-size: 64px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.cm-gen .cm-num { color: #A2A6A4; }
.cm-ml { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.cm-slots { display: flex; gap: 12px; margin-top: 22px; }
.cm-slots i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1.5px dashed rgb(1 33 32 / .16); }
.cm-kelp .cm-slots i { border: 0; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 8px 18px -10px rgb(1 33 32 / .4); }
.cm-slots img { width: 22px; height: 22px; }
/* 3 · el borrador: huecos entre corchetes frente a la propuesta con la marca de la firma */
.cm-pg { display: grid; align-content: start; gap: 10px; width: 300px; height: 226px; padding: 22px; border-radius: 6px; font-size: 13px; overflow: hidden; }
.cm-gen .cm-pg, .cm-gen .cm-mini { box-shadow: 0 0 0 1px rgb(1 33 32 / .08), 0 10px 24px -18px rgb(1 33 32 / .35); }
.cm-pg > b { margin-bottom: 4px; font-size: 15px; font-weight: 600; }
.cm-pg > span { color: var(--ink-2); }
.cm-pg em { padding: 1px 5px; border-radius: 4px; background: var(--ember); color: var(--ember-ink); font-style: normal; font-weight: 600; transition: box-shadow .3s; }
.cm-pg em.on { box-shadow: 0 0 0 3px rgb(231 178 92 / .4); }
.cm-ln { display: block; height: 7px; border-radius: 4px; background: #E6EBE9; }
.cm-ln + .cm-ln { width: 72%; }
.cm-pk { padding-top: 0; }
.cm-pg > .cm-band { display: flex; align-items: center; gap: 9px; margin: 0 -22px 8px; padding: 11px 22px; background: #23385C; color: #F3E6C8; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.cm-mk { width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 2px #F3E6C8; rotate: 45deg; }
.cm-fee { display: flex; justify-content: space-between; color: var(--ink-2); }
.cm-fee b { font-weight: 600; color: var(--ink); }
.cm-team { display: flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.cm-team img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; margin-right: -5px; }
.cm-team img:last-of-type { margin-right: 8px; }
/* 4 · igual para todas (tres empresas, el mismo documento) frente a vuestras tarifas y casos */
.cm-same, .cm-own { display: flex; align-items: center; gap: 14px; }
.cm-mini { position: relative; display: grid; align-content: start; gap: 9px; width: 118px; height: 150px; padding: 30px 14px 14px; border-radius: 6px; }
.cm-mini .cm-ai { margin-bottom: 4px; }
.cm-co { position: absolute; left: 12px; top: -13px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--c); color: #fff; font-size: 10.5px; font-weight: 700; box-shadow: 0 0 0 3px #EFEEEA; }
.cm-tar { width: 200px; overflow: hidden; }
.cm-th { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.cm-th img { width: 16px; height: 16px; }
.cm-tar > span { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.cm-tar > span:last-child { border-bottom: 0; }
.cm-tar > span i { width: 56px; height: 7px; border-radius: 4px; background: #E6EBE9; }
.cm-tar > span b { font-weight: 600; font-variant-numeric: tabular-nums; }
.cm-cases { display: grid; gap: 10px; }
.cm-case { display: grid; gap: 7px; width: 150px; padding: 12px 14px; font-size: 13px; }
.cm-case b { font-weight: 600; }
.cm-case .tag { justify-self: start; margin-top: 2px; }
.cm-l { list-style: none; margin: 14px 24px 0; }
.cm-l li { position: relative; padding: 9px 12px 9px 28px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.4; color: var(--ink-2); transition: color .3s; }
.cm-l li::before { content: ""; position: absolute; left: 6px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--line-2); transition: background-color .3s, box-shadow .3s; }
.cm-kelp .cm-l li { color: var(--ink); font-weight: 500; }
.cm-l li.on { color: var(--ink); }
.cm-l li.on::before { background: var(--deep); box-shadow: 0 0 0 4px rgb(1 33 32 / .08); }
.cm-pr { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--deep); transform-origin: left; transform: scaleX(0); }

/* ---- Pantallas estrechas (la capa responsive completa del revamp está pendiente): el
   diagrama del hero se escala por JS; las piezas pasan a dos columnas y luego a una, cada
   objeto con sus herramientas debajo; la comparación, una columna sobre otra ---- */
@media (max-width: 1180px) {
  #capas { height: 600px; }
}
@media (max-width: 1100px) {
  .pz-surf { height: auto; }
  .pz-in { grid-template-columns: 1fr 1fr; }
  .pz-slot { height: 250px; }
  .pz-cols { grid-template-columns: 1fr 1fr; }
  .pz-c:nth-child(2n) { border-right: 0; }
  .pz-c:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .pz-conn { flex-wrap: wrap; }
}
@media (max-width: 980px) {
  .cm { grid-template-columns: 1fr; }
  .cm-gen { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 700px) {
  /* hero en vertical: el mismo diagrama recompuesto en 400 × 484 (arriba Studio y Chat, debajo
     Expert Workers y Memoria, y las herramientas que usa la escena); producto.js traza las rutas
     con esta geometría y ajusta el alto de la caja */
  #capas { height: 480px; }
  .cp-dg { width: 400px; height: 484px; }
  .cp-kelp { width: 400px; height: 346px; }
  .cp-kt { left: 16px; top: 14px; }
  .cp-wires, .cp-ports, .cp-lit { width: 400px; height: 484px; }
  .cp-st { left: 16px; top: 46px; width: 168px; height: 126px; }
  .cp-ch { left: 216px; top: 46px; width: 168px; height: 126px; }
  .cp-ew { left: 16px; top: 208px; width: 168px; height: 122px; }
  .cp-mem { left: 216px; top: 208px; width: 168px; height: 122px; }
  .cp-wh { gap: 7px; padding: 0 10px; }
  .cp-apps { gap: 6px; }
  .cp-apps img { width: 13px; height: 13px; }
  .cp-wb { height: 92px; }
  .cp-pg { top: 10px; width: 144px; height: 72px; grid-template-columns: 1fr 40px; gap: 10px; padding: 16px 10px 8px; }
  .cp-pl { gap: 6px; }
  .cp-bars { gap: 4px; height: 40px; }
  .cp-km { left: 10px; right: 10px; top: 12px; grid-template-columns: 1fr; }
  .cp-km > .kbot, .cp-att > .cp-sk { display: none; }
  .cp-att { grid-template-columns: 22px auto; justify-content: space-between; }
  .cp-bh { left: 12px; top: 10px; }
  .cp-wks { top: 44px; gap: 6px; }
  .cp-wk > .kbot { width: 32px; height: 32px; border-radius: 9px; }
  .cp-wk > .kbot svg { width: 19px; height: 19px; }
  .cp-rl { left: 22px; }
  .cp-bar { width: 32px; }
  .cp-mc { left: 12px; right: 12px; top: 36px; grid-template-columns: 1fr 1fr; }
  .cp-cr { padding-left: 10px; }
  .cp-rows { padding-right: 8px; }
  .cp-cx { left: 16px; top: 354px; }
  .cp-tray { left: 16px; top: 408px; width: 368px; height: 64px; }
  .cp-tools { left: 24px; top: 420px; gap: 12px; }
  .cp-tile { width: 40px; height: 40px; border-radius: 11px; }
  .cp-tile img { width: 21px; height: 21px; }
  .cp-tile:nth-child(5), .cp-tile:nth-child(7), .cp-tile:nth-child(9), .cp-tile:nth-child(11), .cp-tile:nth-child(12), .cp-tile:nth-child(13) { display: none; }
  /* las cuatro piezas: cada viñeta con su texto justo debajo, sobre la misma superficie
     (la superficie ocupa todas las filas y comparte con .pz sus líneas por subgrid) */
  .pz { display: grid; grid-template-rows: repeat(8, auto) auto; }
  .pz-surf { grid-area: 1 / 1 / 9 / 2; display: grid; grid-template-rows: subgrid; height: auto; margin-inline: 12px; }
  .pz-in, .pz-cols { display: contents; }
  .pz-slot { height: 236px; padding-top: 20px; }
  .pz-slot:nth-child(2) { grid-row: 3; }
  .pz-slot:nth-child(3) { grid-row: 5; }
  .pz-slot:nth-child(4) { grid-row: 7; }
  .pz-c { grid-column: 1; margin-inline: 12px; padding: 0 20px 28px; border-right: 0; }
  .pz-c:nth-child(1) { grid-row: 2; }
  .pz-c:nth-child(2) { grid-row: 4; }
  .pz-c:nth-child(3) { grid-row: 6; }
  .pz-c:nth-child(4) { grid-row: 8; }
  .pz-c:not(:last-child) { border-bottom: 1px solid rgb(1 33 32 / .08); }
  .pz-conn { grid-row: 9; margin-inline: 12px; border-top: 0; }
  .cm-s, .cm-l { margin-inline: 12px; }
  .cm-fr { zoom: .82; }
}
