/* ============================================================
   Kelp · Para firmas de formación. Solo lo propio de esta página:
   el hero (un programa de la RFP a la segunda edición) y las
   escenas de "Te sonará" y de las cuatro capacidades. Los
   componentes de la familia están en vertical.css. Prefijo: fc-.
   ============================================================ */

/* ---- Hero: el itinerario de Banca Aliaga, un solo objeto. Los módulos llegan de lo ya
   impartido, reciben ponente y fecha, la edición recorre M1-M6 dejando la asistencia
   bajo cada módulo y la tira se duplica en la 2.ª edición. Aquí, el estado final ---- */
#edicion { height: 600px; }
.fc-cv { --cw: 1104px; --ch: 480px; }
.fc-dyn { position: absolute; inset: 0; }
.fc-prog { position: absolute; left: 104px; width: 896px; box-shadow: 0 30px 60px -24px rgb(0 0 0 / .6); }
.fc-e1 { top: 22px; }
.fc-e2 { top: 270px; }
.fc-prog .c-h { gap: 9px; padding: 13px 18px; font-size: 13.5px; }
.fc-prog .c-h img { width: 16px; height: 16px; }
.fc-pt i, .fc-pt em { font-style: normal; }
.fc-tg { display: inline-grid; justify-items: end; }
.fc-tg > * { grid-area: 1 / 1; }
.fc-tg > :not(:last-child) { opacity: 0; visibility: hidden; }
.fc-mods { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; padding: 18px 20px 20px; }
.fc-col { display: grid; }
/* el hueco discontinuo se funde en tarjeta cuando llega su módulo */
.fc-mod { position: relative; height: 104px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 8px 18px -12px rgb(1 33 32 / .45); outline: 1.5px dashed transparent; outline-offset: -1.5px; transition: box-shadow .35s, background-color .35s, outline-color .35s; }
.fc-mod.fc-emp { background: var(--paper); box-shadow: 0 0 0 1px transparent, 0 8px 18px -12px transparent; outline-color: rgb(1 33 32 / .22); }
.fc-mod.fc-cur { box-shadow: 0 0 0 2px var(--teal), 0 10px 22px -12px rgb(0 74 72 / .5); }
.fc-mn { position: absolute; left: 12px; top: 10px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fc-md { position: absolute; right: 9px; top: 8px; padding: 1px 7px; border-radius: 6px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); font-size: 11px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.fc-mi { position: absolute; left: 4px; right: 2px; top: 28px; display: grid; justify-items: start; gap: 6px; padding: 6px 8px; border-radius: 8px; background: #fff; }
.fc-mi b { font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.fc-src { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); opacity: 0; }
.fc-src i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.fc-src.fc-new { padding: 1px 8px; border-radius: 99px; background: var(--foam-2); color: var(--ok); }
.fc-fac { position: absolute; left: 12px; bottom: 10px; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 4px 10px -4px rgb(1 33 32 / .5); }
/* la línea de la edición: un tramo bajo cada módulo, que se une con el siguiente por encima del hueco */
.fc-run { position: relative; height: 3px; margin: 14px -16px 0 0; border-radius: 2px; background: rgb(1 33 32 / .1); overflow: hidden; }
.fc-col:last-child .fc-run { margin-right: 0; }
.fc-run i { position: absolute; inset: 0; background: var(--teal); transform-origin: left; }
.fc-att { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fc-att .ic { width: 14px; height: 14px; color: var(--teal); }

/* ---- Te sonará 01 · un programa de catálogo, en gris, se hace a medida de Banca Aliaga.
   Aquí, el estado final: títulos del cliente, su color y «Lista hoy» ---- */
.fc-rf-p { position: absolute; left: 14px; top: 4px; width: 352px; overflow: hidden; }
.fc-rf-h { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px; background: #3A5BA0; color: #fff; font-size: 13px; font-weight: 600; }
.fc-rf-co, .fc-rf-n, .fc-rf-tg, .fc-rf-sw { display: inline-grid; }
.fc-rf-co > *, .fc-rf-n > *, .fc-rf-tg > *, .fc-rf-sw > * { grid-area: 1 / 1; }
.fc-rf-co > :last-child, .fc-rf-n > :last-child, .fc-rf-tg > :last-child, .fc-rf-sw > :last-child { opacity: 0; visibility: hidden; }
.fc-rf-co .co { box-shadow: 0 0 0 1.5px rgb(255 255 255 / .7); }
.fc-rf-cat { --c: #9AA7A4; }
.fc-rf-cat .ic { width: 13px; height: 13px; color: #fff; }
.fc-rf-n b { font-weight: 600; }
.fc-rf-tg { margin-left: auto; justify-items: end; }
.fc-rf-ms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px; }
.fc-rf-m { position: relative; height: 80px; padding: 14px 10px 0; border-radius: 8px; background: #F2F5FB; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.fc-rf-m > i { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: #3A5BA0; }
.fc-rf-m small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.fc-rf-sw { margin-top: 4px; }
.fc-rf-sw b { font-size: 13px; font-weight: 600; line-height: 1.25; }

/* ---- Te sonará 02 · el aula en U, con cada dosier y cada participante en su sitio ---- */
.fc-au-t { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.fc-au-t .ic { width: 12px; height: 12px; }
.fc-au-scr { position: absolute; left: 130px; top: 6px; width: 120px; height: 7px; border-radius: 4px; background: #2E4A47; box-shadow: 0 6px 12px -6px rgb(1 33 32 / .6); }
.fc-au-u { position: absolute; left: 76px; top: 26px; width: 228px; height: 92px; border: 14px solid #E9DDC5; border-top: 0; border-radius: 0 0 26px 26px; box-shadow: 0 10px 18px -12px rgb(1 33 32 / .35); }
.fc-au-d { position: absolute; width: 10px; height: 12px; border-radius: 2px; background: #fff linear-gradient(var(--line-2) 0 0) 2px 3px / 6px 1px no-repeat; box-shadow: 0 0 0 1px rgb(1 33 32 / .16), 0 2px 4px -1px rgb(1 33 32 / .3); }
.fc-au-x { position: absolute; width: 12px; height: 14px; border-radius: 3px; border: 1.5px dashed #C98A2E; background: rgb(250 231 199 / .7); opacity: 0; }
.fc-au-p { position: absolute; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 3px 6px -2px rgb(1 33 32 / .4); }
.fc-au-e { position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed #C98A2E; background: rgb(250 231 199 / .6); opacity: 0; }

/* ---- Te sonará 03 · la encuesta queda detrás; delante, el informe de impacto ---- */
.fc-im-sv { position: absolute; left: 0; top: 24px; width: 150px; height: 104px; padding: 12px 14px; display: grid; align-content: start; justify-items: start; opacity: .45; }
.fc-im-sv small { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.fc-im-f { display: flex; gap: 5px; margin: 9px 0 7px; }
.fc-im-f i { width: 19px; height: 19px; border-radius: 50%; background: #EEF1F0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%237C8C89' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='7' cy='8' r='.6' fill='%237C8C89'/%3E%3Ccircle cx='13' cy='8' r='.6' fill='%237C8C89'/%3E%3Cpath d='M6.5 12.5c2 2 5 2 7 0'/%3E%3C/svg%3E") center / 100% no-repeat; }
.fc-im-f i.on { background-color: #F6D58E; }
.fc-im-sv b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.fc-im-r { position: absolute; left: 128px; top: 4px; width: 252px; padding-bottom: 8px; }
.fc-im-h { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.fc-im-h img { width: 14px; height: 14px; }
.fc-im-l { display: grid; grid-template-columns: 70px minmax(0, 1fr) 42px; align-items: center; gap: 8px; padding: 7px 12px 0; font-size: 12px; }
.fc-im-l span { font-weight: 600; color: var(--ink-2); }
.fc-im-l i { display: block; height: 7px; border-radius: 4px; background: linear-gradient(var(--teal) 0 0) 0 0 / calc(var(--w) * 100%) 100% no-repeat, #E4EAE8; }
.fc-im-l b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.fc-im-ok { position: absolute; left: 294px; top: 124px; box-shadow: 0 0 0 2px #fff, 0 6px 14px -6px rgb(1 33 32 / .4); }

/* ---- Capacidad 1 · el catálogo se ordena por valoración y las tres mejores encajan en el
   itinerario. Aquí, el estado final: las tres primeras en M1-M3, el resto en su puesto ---- */
/* dónde está cada cosa: el catálogo (--cx, --cy), los huecos del itinerario (--sx, --sy), la
   tarjeta (--pt) y el paso entre filas (--p); el JS lee lo mismo */
.fc-pr-box { --cx: 0px; --cy: 0px; --sx: 296px; --sy: 82px; --pt: 24px; --p: 46px; }
.fc-pr-p { position: absolute; left: 250px; top: var(--pt); width: 270px; height: 204px; }
.fc-pr-m { position: absolute; left: 12px; top: calc(var(--sy) - var(--pt) + var(--r) * var(--p)); font-size: 12px; font-weight: 600; line-height: 40px; color: var(--ink-3); }
.fc-pr-slot { position: absolute; left: var(--sx); top: calc(var(--sy) + var(--r) * var(--p)); width: 190px; height: 40px; border-radius: 12px; border: 1.5px dashed rgb(1 33 32 / .2); }
.fc-pr-s { position: absolute; left: var(--cx); top: calc(var(--cy) + var(--r) * var(--p)); width: 190px; height: 40px; display: flex; align-items: center; gap: 10px; padding-right: 12px; overflow: hidden; font-size: 13px; z-index: 2; }
.fc-pr-s:not(.fc-pr-top) { opacity: .4; }
.fc-pr-top { left: var(--sx); top: calc(var(--sy) + var(--r) * var(--p)); z-index: 3; }
.fc-pr-s i { width: 4px; align-self: stretch; flex: none; background: var(--c); }
.fc-pr-s b { flex: 1; font-weight: 600; white-space: nowrap; }
.fc-pr-s small { font-size: 12px; font-weight: 600; color: #9A6412; font-variant-numeric: tabular-nums; }
.fc-pr-d { position: absolute; left: 250px; top: 242px; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 10px; border-radius: 99px; background: #fff; font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow-card); }
.fc-pr-d .ic { width: 14px; height: 14px; color: var(--teal); }

/* ---- Capacidad 2 · el claustro, y el cliente al día en un mensaje ---- */
.fc-cl-t { position: absolute; left: 0; top: 14px; width: 288px; }
.fc-cl-r { display: flex; align-items: center; justify-content: space-between; height: 62px; padding: 0 16px; border-top: 1px solid var(--line); transition: background-color .35s; }
.fc-cl-r.fc-chg { background: var(--ember-2); }
.fc-cl-n b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.fc-cl-n small { display: block; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fc-cl-n .fc-cl-d { display: grid; justify-items: start; }
.fc-cl-d > :last-child { opacity: 0; visibility: hidden; }
.fc-cl-p { position: relative; }
.fc-cl-p img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 4px 10px -4px rgb(1 33 32 / .5); }
.fc-cl-b { position: absolute; right: -7px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; box-shadow: 0 0 0 2px #fff; }
.fc-cl-b .ic { width: 10px; height: 10px; stroke-width: 2.2; }
.fc-cl-c { position: absolute; left: 304px; top: 60px; width: 216px; padding-bottom: 12px; }
.fc-cl-c .c-h img { width: 15px; height: 15px; }
.fc-cl-m { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px 0; }
.fc-cl-m .kbot { width: 22px; height: 22px; border-radius: 6px; }
.fc-cl-m .co { width: 22px; height: 22px; border-radius: 50%; font-size: 8px; }
.fc-cl-m > span:last-child { padding: 7px 10px; border-radius: 4px 12px 12px 12px; background: var(--foam-2); font-size: 12.5px; line-height: 1.38; }
.fc-cl-m.fc-cl-me { flex-direction: row-reverse; }
.fc-cl-m.fc-cl-me > span:last-child { border-radius: 12px 4px 12px 12px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); }

/* ---- Capacidad 3 · la sesión, preparada; y después del aula, capturada ---- */
.fc-ed { position: absolute; left: 50px; top: 50px; width: 420px; height: 180px; perspective: 1000px; }
.fc-ed-in { position: absolute; inset: 0; transform-style: preserve-3d; }
.fc-ed-f, .fc-ed-b { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.fc-ed-b { transform: rotateY(180deg); }
.fc-ed-f .c-h img, .fc-ed-b .c-h img { width: 15px; height: 15px; }
.fc-ed-l { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.fc-ed-i { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 12px; border-radius: 9px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; }
.fc-ed-i .ic { width: 15px; height: 15px; color: var(--teal); }
.fc-ed-i i { width: 18px; height: 18px; margin-left: auto; 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 / 11px no-repeat; }
.fc-ed-m { display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 0; }
.fc-ed-m > div { padding: 26px 18px; border-right: 1px solid var(--line); }
.fc-ed-m > div:last-child { border-right: 0; }
.fc-ed-m small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.fc-ed-m b { display: block; margin-top: 4px; font-size: 25px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* ---- Capacidad 4 · un punto por participante: de su nivel al inicio a su nivel al cierre.
   Aquí, el estado final ---- */
.fc-ip-r { position: absolute; left: 10px; top: 6px; width: 500px; }
.fc-ip-r .c-h img { width: 15px; height: 15px; }
.fc-ip-ch { position: relative; height: 160px; margin: 12px 14px 16px; }
/* las dos filas: Cierre arriba, Inicio abajo */
.fc-ip-ch::before, .fc-ip-ch::after { content: ""; position: absolute; left: 0; right: 0; border-radius: 8px; }
.fc-ip-ch::before { top: 0; height: 46%; background: rgb(0 74 72 / .06); }
.fc-ip-ch::after { bottom: 0; height: 46%; background: rgb(1 33 32 / .035); }
.fc-ip-lb { position: absolute; left: 10px; z-index: 1; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.fc-ip-lc { top: 8px; color: var(--teal); }
.fc-ip-li { bottom: 8px; }
.fc-ip-pl { position: absolute; left: 64px; right: 6px; top: 6px; bottom: 6px; z-index: 1; }
.fc-ip-pl > span { position: absolute; top: 0; bottom: 0; left: calc((var(--x) + .5) * 100% / 24); width: 0; }
.fc-ip-pl i { position: absolute; left: -4.5px; width: 9px; height: 9px; border-radius: 50%; }
.fc-ip-pl i:nth-child(1) { left: -1px; width: 2px; height: calc((var(--b) - var(--a)) * 100%); bottom: calc(var(--a) * 100%); border-radius: 1px; background: linear-gradient(to top, rgb(1 33 32 / .12), rgb(0 74 72 / .45)); transform-origin: bottom; }
.fc-ip-pl i:nth-child(2) { bottom: calc(var(--a) * 100% - 4.5px); background: #B7C4C0; }
.fc-ip-pl i:nth-child(3) { bottom: calc(var(--b) * 100% - 4.5px); background: var(--teal); box-shadow: 0 0 0 2px #fff; }
.fc-ip-re { position: absolute; right: 12px; top: 244px; display: flex; align-items: flex-start; gap: 8px; }
.fc-ip-re .co { width: 24px; height: 24px; border-radius: 50%; font-size: 8.5px; }
.fc-ip-re > span:last-child { padding: 7px 11px; border-radius: 4px 12px 12px 12px; background: #fff; font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow-card); white-space: nowrap; }

@media (max-width: 1180px) {
  .fc-cv { zoom: .86; }
}
@media (max-width: 980px) {
  #edicion { height: 440px; }
  .fc-cv { zoom: .64; }
}
/* en el móvil, el itinerario en vertical, como una agenda: un módulo por fila con su ponente,
   la línea de la edición bajando por la izquierda y la asistencia a la derecha. Al cerrar,
   la 2.ª edición se posa encima de la primera, que asoma por arriba con su «Impartido» */
@media (max-width: 700px) {
  #edicion { height: 494px; }
  .fc-cv { --cw: 100%; --ch: 100%; zoom: 1; }
  .fc-prog { left: 16px; right: 16px; width: auto; }
  .fc-e1 { top: 28px; }
  .fc-e2 { top: 84px; z-index: 1; box-shadow: 0 -8px 20px -12px rgb(0 0 0 / .45), 0 30px 60px -24px rgb(0 0 0 / .6); }
  .fc-prog .c-h { height: 52px; padding: 0 14px; font-size: 13.5px; }
  /* el cliente, debajo del programa */
  .fc-pt { display: grid; line-height: 1.3; }
  .fc-pt i { display: none; }
  .fc-pt em { font-size: 12px; font-weight: 500; color: var(--ink-3); }
  .fc-mods { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 8px 14px 12px; }
  .fc-col { grid-template-columns: 3px minmax(0, 1fr) 50px; column-gap: 10px; align-items: center; padding: 3px 0; }
  .fc-mod { grid-area: 1 / 2; height: 48px; }
  .fc-mn { left: 10px; top: 0; line-height: 48px; }
  .fc-fac { left: 34px; top: 10px; bottom: auto; width: 28px; height: 28px; }
  .fc-mi { left: 66px; right: 8px; top: 4px; gap: 3px; padding: 2px 6px; }
  .fc-mi b { font-size: 14px; }
  .fc-md { left: 71px; right: auto; top: 25px; z-index: 1; }
  .fc-run { grid-area: 1 / 1; align-self: stretch; width: 3px; height: auto; margin: -3px 0; border-radius: 0; }
  .fc-col:first-child .fc-run { border-radius: 2px 2px 0 0; }
  .fc-col:last-child .fc-run { border-radius: 0 0 2px 2px; }
  .fc-run i { transform-origin: top; }
  .fc-att { grid-area: 1 / 3; justify-content: flex-end; margin-top: 0; }
}

/* ---- Capacidades en el móvil: cada lienzo recompuesto a 326 px de ancho (la caja toma su
   --cw y su --ch; vertical.css la ajusta a su alto) ---- */
@media (max-width: 700px) {
  /* el programa: la tarjeta arriba y el catálogo debajo; las tres mejores suben a sus huecos */
  .fc-pr-box { --cw: 326px; --ch: 446px; --cx: 44px; --cy: 200px; --sx: 44px; --sy: 46px; --pt: 0px; --p: 42px; }
  .fc-pr-p { left: 0; width: 326px; height: 178px; }
  .fc-pr-m { line-height: 36px; }
  .fc-pr-slot, .fc-pr-s { width: 270px; height: 36px; }
  .fc-pr-d { left: 44px; top: 248px; }
  /* el claustro arriba y la conversación con el cliente debajo */
  .fc-cl-box { --cw: 326px; --ch: 360px; }
  .fc-cl-t { top: 0; width: 326px; }
  .fc-cl-r { height: 54px; }
  .fc-cl-c { left: 40px; top: 214px; width: 286px; }
  /* la sesión: las cuatro piezas en lista; al dorso, las tres cifras en filas */
  .fc-ed-box { --cw: 326px; --ch: 248px; }
  .fc-ed { left: 0; top: 0; width: 326px; height: 248px; }
  .fc-ed-l { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px; }
  .fc-ed-i { height: 40px; }
  .fc-ed-m { grid-template-columns: minmax(0, 1fr); padding: 4px 0; }
  .fc-ed-m > div { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .fc-ed-m > div:last-child { border-bottom: 0; }
  .fc-ed-m b { margin-top: 0; font-size: 22px; }
  /* el informe: los 24 participantes en el ancho del móvil */
  .fc-ip-box { --cw: 326px; --ch: 272px; }
  .fc-ip-r { left: 0; top: 0; width: 326px; }
  .fc-ip-r .c-h .end { display: none; }
  .fc-ip-ch { margin: 12px 12px 14px; }
  .fc-ip-pl { left: 52px; right: 4px; }
  .fc-ip-pl i { left: -4px; width: 8px; height: 8px; }
  .fc-ip-pl i:nth-child(2) { bottom: calc(var(--a) * 100% - 4px); }
  .fc-ip-pl i:nth-child(3) { bottom: calc(var(--b) * 100% - 4px); }
  .fc-ip-re { right: 0; top: 238px; }
}
