/* ============================================================
   Kelp · familia "Para quién" (agencias, consultoras, formación
   corporativa, servicios profesionales). Componentes compartidos;
   se carga después de kelp.css y antes del CSS de cada página.
   Plantilla: agencias.html. Prefijo de clases: vt-.

   Qué hay y cómo se usa (el marcado completo, en agencias.html):

   1. .vt-pains · "Te sonará": tres filas dolor → pieza visual → lo
      que hace Kelp. Cada fila es un .vt-pain con .vt-pq (número y
      verbo en .vt-pk, el dolor en h3.vt-pd), .vt-pv (caja con fondo
      .mesh y dentro un .cv con la escena de la página) y .vt-pa (el
      símbolo .kbot y la respuesta, que empieza por <b>Kelp</b>).
      La escena de cada fila la escribe la página (su CSS con su
      prefijo) y se anima con KELP.vt.seq (vertical.js): el CSS pinta
      el estado final (el dolor ya resuelto) y el JS pone el inicial.

   2. .vt-cyc · "La vida de un/una X, con Kelp dentro": el ciclo en un
      anillo (.vt-life, la escena) y su leyenda al lado (.vt-leg, fuera
      de la escena). Cuatro estaciones (.vt-st con .vt-q1 a .vt-q4:
      arriba a la izquierda y en el sentido de las agujas del reloj),
      cada una con su nodo (.vt-node), su nombre (.vt-sh) y los logos
      de sus dos trabajos (.vt-sl > .vt-si); en el centro la memoria de
      la firma (.vt-mem); la ficha (.vt-acc, con su sello final
      .vt-acc-s) recorre el anillo y entra en la memoria, y de la
      memoria sale la siguiente (.vt-nx). Las frases de cada trabajo
      van en la leyenda (una li por estación, con el mismo logo), que
      marca la fase por la que pasa la ficha. data-warn en una
      estación: la ficha se enfría al llegar y Kelp la recupera (p. ej.
      la renovación). Lo anima vertical.js solo. La geometría del anillo
      (centro y radio) vive aquí, en cx, cy y r de sus círculos; el JS
      la lee. En el móvil el lienzo pasa a vertical: estaciones arriba y
      abajo, el anillo en medio y la leyenda debajo.

   3. .vt-caps · "¿Qué hace Kelp en tu X, en concreto?": rejilla de
      2×2 celdas (.vt-cap) con escena arriba (.vt-cv con .mesh y un
      .cv dentro) y texto debajo (.vt-ct: h3 y p). Las escenas son de
      la página y corren una cada vez con KELP.vt.seq.

   4. .vt-disc · "Y en tu disciplina, al detalle": fila de pestañas
      con icono (.vt-dtab con .vt-dic y b) y un panel por pestaña
      (.vt-dp: .vt-dh con h3.vt-dn y .vt-ds, la lista .vt-dl en dos
      columnas y la banda de herramientas .vt-dt con logos .vt-tool y
      su nombre en data-n, que sale como tooltip al pasar el ratón o al
      tocarlo). vertical.js las conecta (clic, flechas, Inicio y Fin) y
      cuenta las pestañas (--n). En el móvil las pestañas son una tira
      que se desliza en horizontal. El marcado sale del de producción de cada página:
      pestañas con su icono, los 12 trabajos y las herramientas.

   El hero de cada página es propio (su escena en su CSS/JS); nav,
   pie, cabeceras, FAQ y cierre son del sistema (kelp.css).
   ============================================================ */

/* ---- 1 · Te sonará ---- */
.vt-pains { border-top: 1px solid var(--line); }
.vt-pain { display: grid; grid-template-columns: minmax(0, 1fr) 400px minmax(0, 1.1fr); align-items: center; border-bottom: 1px solid var(--line); }
.vt-pain:last-child { border-bottom: 0; }
.vt-pq { padding: 32px 32px 32px clamp(24px, 4.5vw, 56px); }
.vt-pk { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.vt-pd { margin-top: 10px; font-size: 22px; line-height: 1.22; letter-spacing: -0.02em; font-weight: var(--w-head); text-wrap: balance; }
.vt-pv { position: relative; height: 184px; margin: 20px 0; border-radius: 16px; --cw: 380px; --ch: 150px; }
.vt-pa { display: flex; gap: 14px; align-items: flex-start; padding: 32px clamp(24px, 4.5vw, 56px) 32px 36px; }
.vt-pa .kbot { margin-top: 1px; }
.vt-pa p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); max-width: 40ch; text-wrap: pretty; }
.vt-pa b { color: var(--ink); font-weight: 600; }

/* ---- 2 · La vida de un X: el anillo y, al lado, su leyenda ---- */
.vt-cyc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; margin: 0 24px 24px; }
.vt-life { position: relative; height: 480px; border-radius: 18px; }
.vt-rcv { --cw: 760px; --ch: 440px; }
.vt-rsvg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
/* el anillo: centro y radio en el lienzo; el progreso empieza en la primera estación (-135°) */
.vt-rtrack, .vt-rprog { cx: 380px; cy: 220px; r: 150px; }
.vt-rtrack { fill: none; stroke: rgb(1 33 32 / .16); stroke-width: 1.5; stroke-dasharray: 3 6; }
.vt-rprog { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; transform-box: fill-box; transform-origin: center; transform: rotate(-135deg); }
.vt-node { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px rgb(1 33 32 / .25); transition: background-color .3s, box-shadow .3s; }
.vt-node.on { background: var(--deep); box-shadow: 0 0 0 5px rgb(1 33 32 / .1); }
.vt-st { position: absolute; width: 150px; display: grid; gap: 10px; }
.vt-st.vt-q1, .vt-st.vt-q4 { left: 12px; justify-items: end; }
.vt-st.vt-q2, .vt-st.vt-q3 { left: 598px; }
.vt-st.vt-q1, .vt-st.vt-q2 { top: 76px; }
.vt-st.vt-q3, .vt-st.vt-q4 { top: 288px; }
.vt-sh { display: flex; align-items: baseline; gap: 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.vt-sh i { font-style: normal; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.vt-sl { display: flex; gap: 10px; }
.vt-si { position: relative; width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgb(1 33 32 / .35); transition: box-shadow .3s; }
.vt-si img, .vt-si .ic { width: 22px; height: 22px; object-fit: contain; }
.vt-si .ic { color: var(--teal); }
.vt-si::after { content: ""; position: absolute; right: -5px; bottom: -5px; width: 16px; height: 16px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; box-shadow: 0 0 0 2px #fff; scale: 0; transition: scale .3s var(--ease-out); }
.vt-si.on { box-shadow: 0 0 0 1.5px var(--teal), 0 8px 18px -8px rgb(0 74 72 / .45); }
.vt-si.on::after { scale: 1; }
.vt-si.bad { box-shadow: 0 0 0 1.5px #C98A2E, 0 8px 18px -8px rgb(138 90 23 / .45); }
.vt-si.bad .ic { color: var(--ember-ink); }
.vt-mem { position: absolute; left: 380px; top: 220px; width: 190px; margin: -40px 0 0 -95px; display: grid; justify-items: center; text-align: center; }
.vt-mem b { margin-top: 14px; font-size: 13.5px; font-weight: 600; }
.vt-acc { position: absolute; left: 0; top: 0; z-index: 5; display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 5px; border-radius: 99px; background: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; box-shadow: 0 0 0 1px var(--line), 0 12px 24px -10px rgb(1 33 32 / .5); transition: box-shadow .3s; }
.vt-acc .co { width: 24px; height: 24px; border-radius: 50%; }
.vt-acc.cold { box-shadow: 0 0 0 2px #E2B36A, 0 12px 24px -10px rgb(138 90 23 / .5); }
.vt-acc-s { position: absolute; left: 50%; top: calc(100% + 8px); translate: -50% 0; box-shadow: 0 0 0 2px #fff, 0 6px 14px -6px rgb(1 33 32 / .4); }
.vt-life .pkt { background: var(--deep); box-shadow: 0 0 0 3px rgb(1 33 32 / .15); }
/* la leyenda: lo que hace Kelp en cada fase, fuera de la escena; se marca la fase por la que va la ficha */
.vt-leg { display: grid; gap: 22px; padding: 12px 0 12px clamp(28px, 3.6vw, 52px); }
.vt-leg li { display: grid; gap: 7px; padding-left: 16px; border-left: 2px solid var(--line); transition: border-color .3s; }
.vt-leg li.on { border-left-color: var(--teal); }
.vt-leg .vt-sh { font-size: 16px; }
.vt-leg p { display: flex; align-items: center; gap: 10px; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.vt-leg p img, .vt-leg p .ic { width: 16px; height: 16px; flex: none; object-fit: contain; }
.vt-leg p .ic { color: var(--teal); }

/* ---- 3 · ¿Qué hace Kelp, en concreto? ---- */
.vt-caps { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.vt-cap { display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vt-cap:nth-child(2n) { border-right: 0; }
.vt-cap:nth-last-child(-n+2) { border-bottom: 0; }
.vt-cv { position: relative; height: 320px; margin: 24px 24px 0; border-radius: 16px; --cw: 520px; --ch: 280px; }
.vt-ct { padding: 26px clamp(24px, 3.4vw, 44px) 36px; }
.vt-ct h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-weight: var(--w-head); }
.vt-ct p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }

/* ---- 4 · Disciplinas ---- */
.vt-disc { margin: 0 24px 24px; padding: 40px 28px 28px; border-radius: 18px; }
.vt-dtabs { display: grid; grid-template-columns: repeat(var(--n, 9), minmax(0, 1fr)); gap: 8px; }
.vt-dtab { position: relative; display: grid; justify-items: center; align-content: start; gap: 12px; padding: 6px 0 14px; border-radius: 12px; text-align: center; transition: background-color .25s; }
.vt-dtab:hover { background: rgb(255 255 255 / .45); }
.vt-dic { width: 60px; height: 60px; border-radius: 17px; display: grid; place-items: center; background: #fff; color: var(--teal); box-shadow: 0 0 0 1px var(--line), 0 10px 22px -14px rgb(1 33 32 / .45); transition: background-color .3s, color .3s, box-shadow .3s, translate .3s var(--ease-out); }
.vt-dic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vt-dtab b { font-size: 13px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink-2); text-wrap: balance; transition: color .3s; }
.vt-dtab[aria-selected="true"] .vt-dic { background: radial-gradient(110% 90% at 30% 12%, #0F5953 0, var(--deep) 72%); color: var(--foam); translate: 0 -3px; box-shadow: 0 16px 28px -14px rgb(1 33 32 / .65); }
.vt-dtab[aria-selected="true"] b { color: var(--ink); }
.vt-dps { position: relative; margin-top: 22px; }
.vt-dnib { position: absolute; top: -7px; left: 0; width: 14px; height: 14px; margin-left: -7px; z-index: 1; background: #fff; rotate: 45deg; border-radius: 3px 0 0 0; box-shadow: -1px -1px 0 rgb(1 33 32 / .07); transition: left .35s var(--ease-out); }
.vt-dp { background: #fff; border-radius: 14px; box-shadow: var(--shadow-card); padding: 30px 36px 0; animation: vt-pin .35s var(--ease-out) both; }
@keyframes vt-pin { from { opacity: 0; translate: 0 6px; } }
.vt-dp[hidden] { display: none; }
.vt-dh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.vt-dn { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; font-weight: var(--w-head); }
.vt-ds { font-size: 15px; color: var(--ink-3); }
.vt-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-top: 18px; }
.vt-dl li { position: relative; padding: 11px 0 11px 30px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.vt-dl li::before { content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--foam-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E6B54' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.vt-dl b { color: var(--ink); font-weight: 600; }
.vt-dt { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 20px -36px 0; padding: 18px 36px 20px; border-top: 1px solid var(--line); background: var(--paper); border-radius: 0 0 14px 14px; }
.vt-dtk { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.vt-dlg { display: flex; flex-wrap: wrap; gap: 6px; }
.vt-tool { position: relative; width: 36px; height: 36px; border-radius: 10px; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); }
.vt-tool img { width: 20px; height: 20px; object-fit: contain; }
.vt-tool::after { content: attr(data-n); position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 4px; padding: 4px 9px; border-radius: 7px; background: var(--deep); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, translate .15s; z-index: 4; }
.vt-tool:hover::after, .vt-tool:focus-visible::after, .vt-tool.tip::after { opacity: 1; translate: -50% 0; }
.vt-dmore { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.vt-dmore:hover { color: var(--teal); }

@media (max-width: 1180px) {
  .vt-pain { grid-template-columns: minmax(0, 1fr) 380px minmax(0, 1.1fr); }
  .vt-pv .cv { zoom: .9; }
  .vt-cv .cv { zoom: .9; }
}
@media (max-width: 980px) {
  .vt-pain { grid-template-columns: 1fr; }
  .vt-pq { padding-bottom: 0; }
  .vt-pv { margin: 20px clamp(24px, 4.5vw, 56px) 0; }
  .vt-pa { padding-top: 20px; padding-left: clamp(24px, 4.5vw, 56px); }
  .vt-caps { grid-template-columns: 1fr; }
  .vt-cap { border-right: 0; }
  .vt-cap:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .vt-dtabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; }
  .vt-dnib { display: none; }
  .vt-dl { grid-template-columns: 1fr; }
  /* el anillo encima y la leyenda debajo, en dos columnas */
  .vt-cyc { grid-template-columns: 1fr; }
  .vt-leg { grid-template-columns: 1fr 1fr; gap: 22px 28px; padding: 28px 0 0; }
}
@media (max-width: 700px) {
  /* las escenas no llevan zoom fijo: kelp.js las encaja en el ancho (fit) y la caja mide lo
     que su lienzo. Una página que recompone una escena para el móvil le da a su caja
     (.vt-pv o .vt-cv) su --cw y su --ch */
  .vt-pv .cv, .vt-cv .cv { zoom: 1; }
  .vt-pv { height: calc(var(--ch) + 28px); margin-inline: 12px; }
  .vt-cv { height: calc(var(--ch) + 32px); margin: 16px 12px 0; }
  .vt-disc, .vt-cyc { margin-inline: 12px; }
  /* el anillo en vertical: dos estaciones arriba, dos abajo y el anillo en medio; la memoria
     lleva su nombre encima y el sello de la ficha sale por arriba, para no pisarse */
  .vt-life { height: 442px; }
  .vt-rcv { --cw: 340px; --ch: 410px; }
  .vt-rtrack, .vt-rprog { cx: 170px; cy: 206px; r: 116px; }
  .vt-st.vt-q1, .vt-st.vt-q4 { left: 0; justify-items: start; }
  .vt-st.vt-q2, .vt-st.vt-q3 { left: 190px; justify-items: end; }
  .vt-st.vt-q1, .vt-st.vt-q2 { top: 0; }
  .vt-st.vt-q3, .vt-st.vt-q4 { top: 334px; }
  .vt-mem { left: 170px; top: 234px; display: flex; flex-direction: column-reverse; align-items: center; translate: 0 -100%; margin: 0 0 0 -95px; }
  .vt-mem b { margin: 0 0 10px; }
  .vt-mem .hubk.big { width: 56px; height: 56px; border-radius: 16px; }
  .vt-mem .hubk.big svg { width: 32px; height: 32px; }
  .vt-acc-s { top: auto; bottom: calc(100% + 8px); }
  .vt-leg { grid-template-columns: 1fr; padding: 24px 12px 0; }
  .vt-disc { padding: 24px 0 12px; }
  /* las pestañas, en una tira que se desliza; asoma la siguiente */
  .vt-dtabs { display: flex; gap: 4px; margin-top: -8px; padding: 8px 12px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 12px; scrollbar-width: none; }
  .vt-dtabs::-webkit-scrollbar { display: none; }
  .vt-dtab { flex: 0 0 92px; scroll-snap-align: start; }
  .vt-dps { margin-inline: 12px; }
  .vt-dic { width: 52px; height: 52px; border-radius: 15px; }
  .vt-dtab b { font-size: 12.5px; }
  .vt-tool { width: 44px; height: 44px; border-radius: 12px; }
  .vt-tool img { width: 22px; height: 22px; }
  .vt-dp { padding: 22px 18px 0; }
  .vt-dt { margin-inline: -18px; padding-inline: 18px; }
  .vt-dmore { margin-left: 0; }
}

/* ---- Franja de sellos bajo las FAQ (los de la home; en producción cerraba las cuatro páginas) ---- */
.vt-seals { display: grid; grid-template-columns: repeat(9, 1fr) auto; border-top: 1px solid var(--line); }
.vt-seals .seal { position: relative; display: grid; place-items: center; padding: 28px 8px 24px; border-right: 1px solid var(--line); }
.vt-seals .seal:last-child { border-right: 0; }
.vt-seals .ct-svg { width: 84px; height: auto; aspect-ratio: 220 / 180; color: var(--deep); overflow: visible; transition: transform .35s var(--ease-out); }
.vt-seals .ct-svg .cl { fill: none; stroke: currentColor; stroke-width: 2.9; stroke-linecap: round; stroke-linejoin: round; }
.vt-seals .ct-t { font-family: var(--font); font-weight: 600; }
.vt-seals .cert-ring, .vt-seals .lbeam { transform-box: view-box; }
.vt-seals .cert-ring { transform-origin: 110px 88px; }
.vt-seals .lbeam { transform-origin: 110px 60px; }
.vt-seals .chk path, .vt-seals .sig path { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.vt-seals .seal:hover .ct-svg { transform: translateY(-3px); }
.vt-seals .seal-link { display: flex; align-items: center; gap: 6px; padding: 0 28px; font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.vt-seals .seal-link:hover { color: var(--teal); background: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .vt-seals .seal:hover .cert-ring { animation: vt-spin 14s linear infinite; }
  .vt-seals .seal:hover .ens-cursor { animation: vt-blink 1.15s steps(1) infinite; }
  .vt-seals .seal:hover .lbeam { animation: vt-rock 2.6s ease-in-out infinite; }
  .vt-seals .seal:hover .chk path, .vt-seals .seal:hover .sig path { animation: vt-redraw 1.8s var(--ease) infinite; }
}
@keyframes vt-spin { to { transform: rotate(360deg); } }
@keyframes vt-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes vt-rock { 0%, 100% { rotate: 0deg; } 30% { rotate: -6deg; } 70% { rotate: 5deg; } }
@keyframes vt-redraw { 0% { stroke-dashoffset: 1; } 55%, 100% { stroke-dashoffset: 0; } }
@media (max-width: 980px) { .vt-seals { grid-template-columns: repeat(5, 1fr); } .vt-seals .seal { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .vt-seals { grid-template-columns: repeat(3, 1fr); } .vt-seals .ct-svg { width: 72px; } }
