/* ============================================================
   Kelp · Para quién (hub de la familia). Solo lo propio de la página:
   el hero de los cuatro oficios, las cuatro fichas de firma con su dock
   de herramientas y la base común. Hero, cierre y marco son del sistema.
   ============================================================ */

/* ---- Hero: los cuatro oficios alrededor de Kelp. Cada ventana es la herramienta
   del oficio; Kelp le lleva lo que la firma ya sabe y hace el trabajo ---- */
#oficios { height: 620px; }
.pq-cv { --cw: 1104px; --ch: 520px; --idle: .5; }
.pq-dyn { position: absolute; inset: 0; }
.pq-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pq-wires .pq-wr { fill: none; stroke: rgb(198 238 227 / .2); stroke-width: 1.25; stroke-dasharray: 2 6; stroke-linecap: round; }
.pq-wires .pq-wl { fill: none; stroke: var(--foam); stroke-width: 1.5; stroke-dasharray: 1 1; stroke-dashoffset: 1; stroke-linecap: round; opacity: .8; }
.pq-w { position: absolute; width: 372px; height: 236px; }
.pq-w1 { left: 0; top: 0; }
.pq-w2 { left: 732px; top: 0; }
.pq-w3 { left: 0; top: 284px; }
.pq-w4 { left: 732px; top: 284px; }
.pq-cap { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 9px; height: 24px; font-size: 14px; font-weight: 600; color: rgb(198 238 227 / .5); white-space: nowrap; transition: color .4s; }
.pq-cap i { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: var(--foam); box-shadow: inset 0 0 0 1px rgb(198 238 227 / .28); transition: background-color .4s, color .4s; }
.pq-cap .ic { width: 13px; height: 13px; }
.pq-w.on .pq-cap { color: #F2FBF8; }
.pq-w.on .pq-cap i { background: var(--foam); color: var(--deep); box-shadow: none; }
.pq-gh { position: absolute; left: 0; top: 30px; width: 372px; height: 206px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px rgb(198 238 227 / .14); background: repeating-linear-gradient(135deg, transparent 0 7px, rgb(198 238 227 / .03) 7px 8px); }
.pq-win { position: absolute; left: 0; top: 30px; width: 372px; height: 206px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 48px -20px rgb(0 0 0 / .6); }
.pq-wh { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 600; flex: none; }
.pq-wh img { width: 16px; height: 16px; object-fit: contain; }
.pq-wt { margin-left: auto; }
.pq-wb { position: relative; flex: 1; min-height: 0; padding: 14px; }
.pq-car { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 6px; z-index: 3; box-shadow: 0 0 0 3px #fff, 0 6px 14px -4px rgb(1 33 32 / .5); }
.pq-dock { position: absolute; left: 50%; top: 58%; width: 0; height: 0; }
.pq-ln { position: relative; display: block; height: 6px; }
.pq-ln > i { display: block; height: 100%; border-radius: 3px; background: #DCE4E1; transform-origin: left; }
/* agencias: tres anuncios de la campaña, como en el administrador de anuncios */
.pq-ads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: #F1F3F6; }
.pq-ad { display: grid; gap: 7px; align-content: start; padding: 7px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px rgb(1 33 32 / .07), 0 4px 10px -6px rgb(1 33 32 / .25); }
.pq-adh { display: flex; align-items: center; gap: 5px; }
.pq-adh .co { width: 16px; height: 16px; border-radius: 50%; font-size: 6.5px; }
.pq-adh i { width: 52%; height: 5px; border-radius: 3px; background: #DCE4E1; }
.pq-adi { height: 66px; border-radius: 5px; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, var(--a), var(--b)); }
.pq-adi .ic { width: 24px; height: 24px; stroke-width: 1.6; }
.pq-adc { height: 16px; border-radius: 4px; background: #E6ECF6; box-shadow: inset 0 0 0 1px #D3DCEC; }
/* consultoras: una diapositiva con la plantilla de la firma */
.pq-wb:has(.pq-sl) { display: grid; place-items: center; background: #EEF0EF; }
.pq-sl { position: relative; width: 246px; height: 138px; padding: 12px 14px 12px 20px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 1px rgb(1 33 32 / .09), 0 6px 14px -8px rgb(1 33 32 / .35);
  display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto 1fr; gap: 12px 14px; }
.pq-slb { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; border-radius: 3px 0 0 3px; background: var(--deep); }
.pq-slt { grid-column: 1 / -1; height: 8px; }
.pq-slt > i { background: var(--ink); opacity: .78; }
.pq-bars { display: flex; align-items: flex-end; gap: 6px; padding: 0 3px; border-bottom: 1px solid var(--line-2); }
.pq-bars > i { flex: 1; border-radius: 2px 2px 0 0; background: #BFD6CF; transform-origin: bottom; }
.pq-bars > .pq-hi { background: var(--teal); }
.pq-slr { display: grid; gap: 7px; align-content: center; }
.pq-kpi { font-size: 21px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: var(--teal); font-variant-numeric: tabular-nums; }
/* formación: el programa a medida, módulo a módulo, con su claustro */
.pq-prg { display: grid; grid-template-rows: auto auto; align-content: start; gap: 12px; }
.pq-mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.pq-md { display: flex; align-items: center; gap: 7px; padding: 8px 7px; border-radius: 7px; background: #FFF5E9; box-shadow: inset 0 0 0 1px #F4DFC3; }
.pq-md b { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; flex: none; background: #F98012; color: #fff; font-size: 11px; font-weight: 700; }
.pq-md .pq-ln { flex: 1; }
.pq-md .pq-ln > i { background: #EBD9C2; }
.pq-fac { display: flex; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.pq-fac img { width: 28px; height: 28px; margin-right: -7px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; }
.pq-fac .pq-ln { width: 38%; margin-left: 18px; }
/* servicios profesionales: el contrato con los cambios marcados y comentados */
.pq-doc { display: grid; grid-template-columns: 1fr 62px; gap: 10px; padding: 12px 12px 0; background: #EEF0EF; }
.pq-pg { display: grid; gap: 10px; align-content: start; padding: 14px 16px; border-radius: 3px 3px 0 0; background: #fff; box-shadow: 0 0 0 1px rgb(1 33 32 / .08); }
.pq-del { position: absolute; top: 2px; height: 2px; border-radius: 1px; background: #C2412D; transform-origin: left; }
.pq-insl > .pq-ins { background: #D5ECE5; box-shadow: inset 0 -2px 0 var(--teal); }
.pq-mg { display: grid; gap: 22px; align-content: start; padding-top: 22px; }
.pq-cm { display: flex; align-items: center; gap: 5px; padding: 5px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgb(1 33 32 / .09), 0 4px 10px -6px rgb(1 33 32 / .3); }
.pq-cm .kbot { width: 16px; height: 16px; border-radius: 4px; }
.pq-cm > i { flex: 1; height: 5px; border-radius: 3px; background: #DCE4E1; }
/* Kelp en el centro y lo que lleva a cada oficio */
.pq-hub { position: absolute; left: 512px; top: 220px; z-index: 4; box-shadow: 0 0 0 1px rgb(198 238 227 / .28), 0 0 0 11px rgb(1 33 32 / .45), 0 0 64px 8px rgb(198 238 227 / .16); }
.pq-chip { position: absolute; left: 0; top: 0; z-index: 6; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px 0 11px; border-radius: 99px; background: var(--foam); color: var(--deep);
  font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 0 0 4px rgb(198 238 227 / .18), 0 12px 26px -10px rgb(0 0 0 / .6); opacity: 0; }
.pq-chip .ic { width: 15px; height: 15px; }

/* ---- Los cuatro tipos de firma: una columna por oficio, con las herramientas
   de ese oficio en un dock y todas sus disciplinas; debajo, la base común ---- */
#firmas { scroll-margin-top: 64px; }
.pq-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.pq-f { display: grid; grid-row: span 5; grid-template-rows: subgrid; border-right: 1px solid var(--line); padding-bottom: 28px; }
.pq-f:nth-child(4n) { border-right: 0; }
.pq-fv { position: relative; height: 196px; margin: 16px 16px 0; padding-top: 36px; border-radius: 14px; display: grid; place-items: center; }
.pq-dk { display: flex; gap: 8px; padding: 8px; border-radius: 18px; background: rgb(255 255 255 / .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .75), 0 14px 30px -16px rgb(1 33 32 / .45); }
.pq-ap { position: relative; width: 42px; height: 42px; border-radius: 11px; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 2px rgb(1 33 32 / .14); transition: translate .35s var(--ease-out); }
.pq-ap img { width: 24px; height: 24px; object-fit: contain; }
.pq-ap > i { position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--deep); opacity: 0; transition: opacity .3s; }
.pq-ap.on { translate: 0 -6px; }
.pq-ap.run > i { opacity: .7; }
.pq-hop { position: absolute; left: 0; top: 0; z-index: 2; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 3px; border-radius: 9px; background: #fff; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; color: var(--ink); opacity: 0; box-shadow: 0 0 0 1px rgb(1 33 32 / .06), 0 10px 20px -8px rgb(1 33 32 / .45); }
.pq-hop .kbot { width: 24px; height: 24px; border-radius: 7px; }
.pq-hop::after { content: ""; position: absolute; left: var(--nib, 15px); bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: #fff; rotate: 45deg; border-radius: 0 0 2px 0; }
.pq-fn { padding: 22px 24px 0; font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; transition: color .2s; }
.pq-fc { padding: 6px 24px 0; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); text-wrap: balance; }
.pq-dl { display: grid; gap: 6px; align-content: start; margin: 18px 24px 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.pq-dl li { position: relative; padding-left: 14px; }
.pq-dl li::before { content: ""; position: absolute; left: 1px; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: rgb(0 74 72 / .35); }
.pq-f .link { align-self: end; margin: 22px 24px 0; }
.pq-f:hover .pq-fn, .pq-f:hover .link { color: var(--teal); }
.pq-f:hover .arrow { translate: 3px 0; }
/* la base: de cada oficio baja una línea a Kelp, que se apoya en las mismas tres piezas.
   Por las líneas sube, de una en una, lo que la base le da a cada oficio */
.pq-base { position: relative; padding: 0 24px 24px; border-top: 1px solid var(--line); }
.pq-fun { display: block; width: calc(100% + 48px); height: 96px; margin-inline: -24px; overflow: visible; }
.pq-fun path { fill: none; stroke: var(--line-2); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.pq-bx { position: relative; display: grid; justify-items: center; margin-top: -2px; padding: 52px 0 0; border-radius: 18px; text-align: center; }
.pq-bk { position: absolute; left: 50%; top: 96px; z-index: 2; translate: -50% -50%; }
.pq-bx > .h3 { padding-inline: 24px; }
.pq-bcs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin-top: 36px; border-top: 1px solid rgb(1 33 32 / .09); text-align: left; }
.pq-bc { display: flex; flex-direction: column; padding: 28px 32px 32px; border-left: 1px solid rgb(1 33 32 / .09); }
.pq-bc:first-child { border-left: 0; }
.pq-bi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--teal); box-shadow: 0 0 0 1px rgb(1 33 32 / .06), 0 6px 14px -8px rgb(1 33 32 / .4); }
.pq-bi .ic { width: 17px; height: 17px; }
.pq-bc b { margin-top: 16px; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.pq-bc > span:not(.pq-bi) { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.pq-bc .link { margin-top: auto; padding-top: 16px; }
.pq-fun .pq-flow { stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 6 94; stroke-dashoffset: 100; opacity: 0; animation: pq-rise 4.8s var(--ease) infinite; }
.pq-fun .pq-flow:nth-child(6) { animation-delay: 1.2s; }
.pq-fun .pq-flow:nth-child(7) { animation-delay: 2.4s; }
.pq-fun .pq-flow:nth-child(8) { animation-delay: 3.6s; }
@keyframes pq-rise { 0% { stroke-dashoffset: 100; opacity: 0; } 3% { opacity: 1; } 21% { opacity: 1; } 25%, 100% { stroke-dashoffset: 6; opacity: 0; } }

@media (max-width: 1240px) {
  .pq-dk { gap: 6px; padding: 6px; border-radius: 15px; }
  .pq-ap { width: 36px; height: 36px; border-radius: 9px; }
  .pq-ap img { width: 20px; height: 20px; }
}
@media (max-width: 1100px) {
  .pq-grid { grid-template-columns: 1fr 1fr; }
  .pq-f:nth-child(2n) { border-right: 0; }
  .pq-f:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .pq-dk { gap: 8px; padding: 8px; border-radius: 18px; }
  .pq-ap { width: 42px; height: 42px; border-radius: 11px; }
  .pq-ap img { width: 24px; height: 24px; }
  /* con dos columnas, las líneas bajan de las dos de abajo */
  .pq-fun { display: none; }
  .pq-bx { margin-top: 64px; }
  .pq-bk { top: 64px; }
}
@media (max-width: 700px) {
  /* el hero en vertical: arriba los cuatro oficios, debajo Kelp, y las ventanas se apilan en
     cascada; cada una tapa el cuerpo de la anterior y deja a la vista su cabecera con el
     trabajo hecho. Las de atrás no se atenúan: ya las tapa la nueva (--idle) */
  .pq-cv { --cw: 380px; --ch: 536px; --idle: 1; }
  .pq-w { left: 4px; top: calc(176px + 40px * var(--i)); }
  .pq-w1 { --i: 0; } .pq-w2 { --i: 1; } .pq-w3 { --i: 2; } .pq-w4 { --i: 3; }
  .pq-gh { display: none; }
  /* los rótulos, en dos filas de dos sobre el lienzo (x, y del lienzo menos la ventana) */
  .pq-cap { left: calc(var(--x) - 4px); top: calc(var(--y) - 176px - 40px * var(--i)); font-size: 13px; }
  .pq-w1 .pq-cap { --x: 6px; --y: 0px; }
  .pq-w2 .pq-cap { --x: 196px; --y: 0px; }
  .pq-w3 .pq-cap { --x: 6px; --y: 36px; }
  .pq-w4 .pq-cap { --x: 196px; --y: 36px; }
  .pq-hub { left: 150px; top: 84px; }
  .pq-grid { grid-template-columns: 1fr; }
  .pq-f, .pq-f:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .pq-f:last-child { border-bottom: 0; }
  .pq-base { padding-inline: 12px; }
  .pq-bcs { grid-template-columns: 1fr; }
  .pq-bc { border-left: 0; border-top: 1px solid rgb(1 33 32 / .09); padding: 24px; }
  .pq-bc:first-child { border-top: 0; }
  .pq-fv { height: 156px; margin-inline: 12px; }
  .pq-fn, .pq-fc { padding-inline: 20px; }
  .pq-dl, .pq-f .link { margin-inline: 20px; }
}
