/* Formador de Formadores — estilos (formulario público + gestión interna).
   Basado en wwwroot/mockups/formador-formadores.html. Todo está acotado a .ff-page / .ffa-page
   para no afectar el resto del sitio. */

.ff-page,
.ffa-page {
  --ff-azul: #0943B5;
  --ff-azul-profundo: #062e7a;
  --ff-azul-claro: #e8f0ff;
  --ff-verde: #1e8f4e;
  --ff-amarillo: #f2c500;
  --ff-rojo: #c62828;
  --ff-tinta: #142033;
  --ff-muted: #5b6b82;
  --ff-linea: #d7e2f2;
  --ff-fondo: #f3f7fd;
  --ff-radio: 22px;
  --ff-sombra: 0 18px 50px rgba(9, 67, 181, .12);
  color: var(--ff-tinta);
}

.ff-page {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  background:
    radial-gradient(1200px 500px at 10% -10%, #d9e8ff 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #dff5e8 0%, transparent 45%),
    var(--ff-fondo);
  padding: 1.75rem 0 3.5rem;
  /* Escapa el contenedor estrecho del layout público */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.ff-page .ff-container,
.ffa-page .ff-container { max-width: 1180px; margin: 0 auto; padding: 0 1rem; }

.ff-page *, .ffa-page * { box-sizing: border-box; }

/* —— Héroe / banner institucional —— */
.ff-hero {
  --ff-hero-img: none;
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--ff-radio) + 6px);
  color: #fff;
  min-height: clamp(280px, 42vw, 420px);
  margin-bottom: 1.35rem;
  box-shadow: 0 22px 60px rgba(12, 28, 48, .28);
  isolation: isolate;
}
.ff-hero-banner {
  min-height: 0;
  background: #fff;
  box-shadow: 0 12px 32px rgba(12, 28, 48, .12);
}
.ff-hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
}
.ff-hero-media {
  position: absolute;
  inset: 0;
  background:
    var(--ff-hero-img) center / cover no-repeat,
    linear-gradient(135deg, #0b3d6e 0%, #1a6a9a 55%, #c4782a 100%);
  transform: scale(1.06);
  animation: ff-hero-ken 22s ease-in-out infinite alternate;
}
.ff-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 24, 48, .88) 0%, rgba(8, 24, 48, .72) 42%, rgba(8, 24, 48, .28) 72%, rgba(196, 120, 42, .18) 100%),
    linear-gradient(to top, rgba(8, 24, 48, .55) 0%, transparent 45%);
  pointer-events: none;
}
.ff-hero-veil::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(255, 196, 90, .22), transparent 60%),
    radial-gradient(ellipse 40% 35% at 10% 80%, rgba(30, 143, 78, .18), transparent 70%);
  animation: ff-hero-glow 8s ease-in-out infinite alternate;
  pointer-events: none;
}
.ff-hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1.25rem, 3.5vw, 2.6rem);
  max-width: 38rem;
  animation: ff-hero-rise .85s cubic-bezier(.2, .8, .2, 1) both;
}
.ff-hero .ff-kicker {
  display: inline-block;
  margin: 0 0 .85rem;
  padding: .35rem .7rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(6px);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  color: #fff;
}
.ff-hero h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  line-height: 1.05;
  margin: 0 0 .85rem;
  max-width: 14ch;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.ff-hero-lead {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .94);
}
.ff-hero-meta {
  margin: .85rem 0 0;
  font-size: .92rem;
  font-weight: 650;
  color: #ffe8b0;
  letter-spacing: .01em;
}
.ff-tricolor {
  display: flex;
  height: 6px;
  margin: 1.25rem 0 0;
  border-radius: 999px;
  overflow: hidden;
  max-width: 240px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15);
}
.ff-tricolor span { flex: 1; }
.ff-tricolor .g { background: var(--ff-verde); }
.ff-tricolor .y { background: var(--ff-amarillo); }
.ff-tricolor .r { background: var(--ff-rojo); }

@keyframes ff-hero-ken {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-2%, -1%, 0); }
}
@keyframes ff-hero-glow {
  from { opacity: .75; }
  to { opacity: 1; }
}
@keyframes ff-hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ff-hero-media,
  .ff-hero-veil::before,
  .ff-hero-content { animation: none; }
  .ff-hero-media { transform: none; }
}

@media (max-width: 640px) {
  .ff-hero { min-height: 300px; border-radius: 18px; }
  .ff-hero-content { max-width: none; }
  .ff-hero h1 { max-width: 12ch; }
}

/* —— Wizard —— */
.ff-shell { display: grid; grid-template-columns: 280px 1fr; gap: 1.1rem; }
@media (max-width: 900px) { .ff-shell { grid-template-columns: 1fr; } }

.ff-rail {
  background: #fff; border: 1px solid var(--ff-linea); border-radius: var(--ff-radio);
  padding: 1.1rem; height: fit-content; position: sticky; top: 16px;
}
.ff-rail h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ff-muted); margin: 0 0 1rem; font-weight: 700; }
.ff-step-item {
  display: grid; grid-template-columns: 28px 1fr; gap: .7rem; align-items: start;
  padding: .55rem .4rem; border-radius: 12px; margin-bottom: .25rem; cursor: pointer;
}
.ff-step-item:hover, .ff-step-item.active { background: var(--ff-azul-claro); }
.ff-step-item.done .ff-step-num { background: var(--ff-verde); color: #fff; }
.ff-step-item.error .ff-step-num { background: var(--ff-rojo); color: #fff; }
.ff-step-num {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: .78rem; font-weight: 800; background: #dbe6f8; color: var(--ff-azul);
}
.ff-step-item.active .ff-step-num { background: var(--ff-azul); color: #fff; }
.ff-step-item strong { display: block; font-size: 1rem; }
.ff-step-item span.ff-sub { font-size: .85rem; color: var(--ff-muted); }
@media (max-width: 900px) {
  .ff-rail { position: static; display: flex; gap: .3rem; overflow-x: auto; padding: .6rem; }
  .ff-rail h2 { display: none; }
  .ff-step-item { grid-template-columns: 28px; margin: 0; }
  .ff-step-item > div { display: none; }
}

.ff-panel {
  background: #fff; border: 1px solid var(--ff-linea); border-radius: var(--ff-radio);
  padding: 1.5rem 1.5rem 1.3rem; box-shadow: 0 10px 30px rgba(20,32,51,.04);
}
.ff-panel h3 { font-family: Fraunces, Georgia, serif; font-size: clamp(1.55rem, 2.5vw, 1.85rem); margin: 0 0 .45rem; color: var(--ff-azul-profundo); font-weight: 700; }
.ff-lead { color: var(--ff-muted); margin: 0 0 1.35rem; font-size: 1.05rem; }
.ff-progress { height: 8px; background: #e7eef8; border-radius: 999px; overflow: hidden; margin-bottom: 1.3rem; }
.ff-progress > i {
  display: block; height: 100%; width: 12.5%; background: linear-gradient(90deg, var(--ff-azul), #3d7be8);
  border-radius: 999px; transition: width .35s ease;
}

.ff-step { display: none; }
.ff-step.active { display: block; animation: ff-rise .35s ease; }
@keyframes ff-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.ff-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .ff-grid-2 { grid-template-columns: 1fr; } }

.ff-field { margin-bottom: 1.15rem; }
.ff-field > label, .ff-label { display: block; font-weight: 700; font-size: 1.02rem; margin-bottom: .45rem; color: var(--ff-tinta); }
.ff-hint { font-size: .92rem; color: var(--ff-muted); margin-top: .35rem; }
.ff-hint-lg { font-size: 1rem; margin: 0 0 .75rem; }
.ff-req { color: var(--ff-rojo); }

.ff-page input[type="text"], .ff-page input[type="email"], .ff-page input[type="tel"],
.ff-page input[type="date"], .ff-page select, .ff-page textarea {
  width: 100%; border: 1.5px solid #c9d7ec; border-radius: 12px; padding: .9rem 1rem;
  font: inherit; font-size: 1.02rem; background: #fbfcfe; transition: border-color .15s, box-shadow .15s; color: var(--ff-tinta);
}
.ff-page input:focus, .ff-page select:focus, .ff-page textarea:focus {
  outline: 0; border-color: var(--ff-azul); box-shadow: 0 0 0 4px rgba(9,67,181,.12); background: #fff;
}
.ff-page input[readonly], .ff-page input:disabled, .ff-page select:disabled {
  background: #eef2f7 !important; cursor: default; color: #334155;
}
.ff-page .ff-locked { pointer-events: none; background: #eef2f7 !important; color: #334155; }
.ff-page input.invalid, .ff-page select.invalid, .ff-page textarea.invalid { border-color: var(--ff-rojo); background: #fff5f5; }
.ff-page input.valid { border-color: var(--ff-verde); }
.ff-error { color: var(--ff-rojo); font-size: .8rem; margin-top: .35rem; display: none; }
.ff-error.show { display: block; }
.ff-counter { font-size: .8rem; color: var(--ff-muted); text-align: right; margin-top: .35rem; }
.ff-counter.warn { color: #b45309; }
.ff-counter.full { color: var(--ff-rojo); font-weight: 700; }

/* Chips (checkbox / radio estilizados) */
.ff-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.ff-chip { position: relative; margin: 0; }
.ff-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ff-chip span {
  display: inline-block; border: 1.5px solid #c9d7ec; border-radius: 999px; padding: .6rem 1rem;
  font-size: .98rem; font-weight: 600; background: #fff; cursor: pointer; user-select: none;
}
.ff-chip input:checked + span { border-color: var(--ff-azul); background: var(--ff-azul-claro); color: var(--ff-azul); }
.ff-chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(9,67,181,.18); }

/* Consulta de cédula */
.ff-lookup {
  background: linear-gradient(135deg, #eef4ff, #f7faff);
  border: 1.5px solid #b9cceb; border-radius: 16px; padding: 1rem 1.1rem; margin-bottom: 1.15rem;
}
.ff-lookup-row { display: grid; grid-template-columns: 1fr auto; gap: .65rem; align-items: end; }
@media (max-width: 600px) { .ff-lookup-row { grid-template-columns: 1fr; } }
.ff-lookup-status { display: none; margin-top: .75rem; padding: .7rem .85rem; border-radius: 12px; font-size: .88rem; font-weight: 600; }
.ff-lookup-status.show { display: block; }
.ff-lookup-status.found { background: #e8f7ee; color: var(--ff-verde); border: 1px solid #b7e4c7; }
.ff-lookup-status.missing { background: #fff8e8; color: #7a5300; border: 1px solid #f2c94c; }
.ff-lookup-status.loading { background: #eef3fb; color: var(--ff-azul); border: 1px solid #c9d7ec; }
#ffBloqueDatos { opacity: .45; pointer-events: none; transition: opacity .25s; }
#ffBloqueDatos.habilitado { opacity: 1; pointer-events: auto; }
.ff-nota {
  margin-top: 1.25rem; padding: .9rem 1rem; border-radius: 14px;
  background: #f8fafc; border: 1px dashed #9db4d8; font-size: .86rem; line-height: 1.55; color: #475569;
}
.ff-nota a { color: var(--ff-azul); font-weight: 800; text-decoration: none; }

/* Carga de archivos */
.ff-upload {
  border: 1.8px dashed #9db4d8; border-radius: 16px; padding: 1.35rem 1.2rem; text-align: center;
  background: linear-gradient(180deg, #f8fbff, #f2f7ff); cursor: pointer; display: block; margin: 0;
}
.ff-upload-lg { padding: 1.6rem 1.3rem; }
.ff-upload:hover { border-color: var(--ff-azul); }
.ff-upload strong { display: block; color: var(--ff-azul); margin-bottom: .35rem; font-size: 1.12rem; }
.ff-upload small { color: var(--ff-muted); font-size: .98rem; display: block; line-height: 1.45; }
.ff-upload input[type="file"] { display: none; }
.ff-upload .ff-file-name { margin-top: .55rem; font-size: 1rem; font-weight: 700; color: var(--ff-verde); word-break: break-word; }

.ff-file-list { list-style: none; margin: .85rem 0 0; padding: 0; display: grid; gap: .5rem; }
.ff-file-list li {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  background: #fff; border: 1px solid var(--ff-linea); border-radius: 12px; padding: .7rem .9rem;
  font-size: 1rem; font-weight: 600;
}
.ff-file-list li span { word-break: break-word; color: var(--ff-tinta); }
.ff-file-list button {
  border: 0; background: #fde8e8; color: var(--ff-rojo); border-radius: 8px;
  padding: .35rem .65rem; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; flex-shrink: 0;
}
.ff-btn-add-anexo { margin-top: .75rem; font-size: 1rem; }
.ff-academicos .ff-upload[hidden], .ff-btn-add-anexo[hidden] { display: none !important; }

/* Consentimiento */
.ff-consent {
  background: #f7fafc; border: 1px solid var(--ff-linea); border-radius: 14px; padding: 1.05rem;
  font-size: 1rem; line-height: 1.6; color: #334155; max-height: 200px; overflow: auto; margin-bottom: 1rem;
}
.ff-checkline { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .75rem; font-size: 1.02rem; }
.ff-checkline input { width: auto; margin-top: .25rem; }

/* Botones */
.ff-actions { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.4rem; flex-wrap: wrap; }
.ff-btn {
  border: 0; border-radius: 12px; padding: .85rem 1.25rem; font: inherit; font-weight: 800;
  cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; text-decoration: none;
}
.ff-btn-ghost { background: #eef3fb; color: var(--ff-azul); }
.ff-btn-primary { background: var(--ff-azul); color: #fff; box-shadow: 0 10px 24px rgba(9,67,181,.25); }
.ff-btn-primary:hover { background: var(--ff-azul-profundo); color: #fff; }
.ff-btn-primary:disabled { background: #a8b8d4; box-shadow: none; cursor: not-allowed; opacity: .75; }
.ff-btn-soft { background: #e8f7ee; color: var(--ff-verde); }
.ff-btn-soft:hover { background: #d4f0df; color: var(--ff-verde); }
.ff-btn-download {
  margin: .55rem 0 1rem;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
}
.ff-btn-danger { background: #fde8e8; color: var(--ff-rojo); }

.ff-alert {
  border-radius: 14px; padding: .9rem 1.1rem; margin-bottom: 1rem; font-size: .92rem;
  background: #fde8e8; border: 1px solid #f3b6b6; color: #8a1c1c;
}
.ff-alert ul { margin: .4rem 0 0; padding-left: 1.2rem; }

/* Éxito */
.ff-success { text-align: center; padding: 2.5rem 1.5rem; }
.ff-success-mark {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 1rem;
  background: linear-gradient(145deg, #29a35f, var(--ff-verde)); color: #fff;
  display: grid; place-items: center; font-size: 2rem; box-shadow: 0 12px 30px rgba(30,143,78,.3);
}

/* ═════════════ Gestión interna ═════════════ */
.ffa-page { padding: 1rem 0 2rem; }
.ffa-hero {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: end; margin-bottom: 1.2rem;
}
.ffa-hero .ff-kicker { color: var(--ff-muted); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ffa-hero h1 { font-family: Fraunces, Georgia, serif; font-size: 2rem; margin: 0; color: var(--ff-azul-profundo); }
.ffa-nav { display: flex; gap: .4rem; flex-wrap: wrap; background: #eef3fb; padding: .35rem; border-radius: 999px; }
.ffa-nav a {
  padding: .5rem 1rem; border-radius: 999px; font-weight: 700; font-size: .85rem; color: var(--ff-muted); text-decoration: none;
}
.ffa-nav a.active { background: #fff; color: var(--ff-azul); box-shadow: 0 4px 14px rgba(9,67,181,.12); }

.ffa-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.2rem; }
@media (max-width: 900px) { .ffa-stats { grid-template-columns: 1fr 1fr; } }
.ffa-stat { background: #fff; border: 1px solid var(--ff-linea); border-radius: 18px; padding: 1.1rem 1.15rem; }
.ffa-stat .lbl { font-size: .78rem; color: var(--ff-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ffa-stat .num { font-size: 2rem; font-weight: 800; color: var(--ff-azul); margin-top: .2rem; line-height: 1.1; }
.ffa-stat .delta { font-size: .8rem; color: var(--ff-verde); font-weight: 700; }
.ffa-stat-click {
  width: 100%; text-align: left; font: inherit; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ffa-stat-click:hover:not(:disabled) {
  border-color: #9db4d8; box-shadow: 0 10px 24px rgba(9,67,181,.12); transform: translateY(-1px);
}
.ffa-stat-click:disabled { opacity: .55; cursor: default; }
.ffa-chart-bar {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  height: 100%; font-size: .68rem; color: var(--ff-muted);
  background: transparent; border: 0; padding: 0; font: inherit; cursor: pointer;
}
.ffa-chart-bar:hover:not(:disabled) .bar { filter: brightness(1.08); }
.ffa-chart-bar:disabled { cursor: default; }
.ffa-funnel-click {
  width: 100%; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer;
  border-radius: 12px; padding: .25rem .15rem;
}
.ffa-funnel-click:hover { background: #f3f7fd; }

/* Expediente: ventana flotante arrastrable (no clavada al layout) */
.ffa-page--expediente .ffa-expediente-main {
  width: 100%;
  max-width: 920px;
  margin-bottom: 1.5rem;
}
.ffa-eval-float {
  position: fixed;
  top: 5.25rem;
  right: 1.25rem;
  width: min(380px, 92vw);
  max-height: calc(100vh - 5.75rem);
  z-index: 1040;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #e8eef8 0%, #f5f8fd 100%);
  border: 1px solid #9db4d8;
  border-radius: 18px;
  box-shadow:
    0 22px 56px rgba(20, 32, 51, .28),
    0 0 0 1px rgba(255, 255, 255, .45) inset;
  overflow: hidden;
  touch-action: none;
}
.ffa-eval-float.is-dragging {
  box-shadow:
    0 28px 64px rgba(20, 32, 51, .36),
    0 0 0 1px rgba(255, 255, 255, .5) inset;
  opacity: .97;
  user-select: none;
}
.ffa-eval-float-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem .9rem;
  background: var(--ff-azul);
  color: #fff;
  flex-shrink: 0;
  cursor: grab;
}
.ffa-eval-float.is-dragging .ffa-eval-float-head {
  cursor: grabbing;
}
.ffa-eval-float-kicker {
  display: block;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
}
.ffa-eval-float-head strong {
  font-size: 1.05rem;
  font-family: Fraunces, Georgia, serif;
}
.ffa-eval-float-toggle {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  font-weight: 700;
  touch-action: manipulation;
}
.ffa-eval-float-toggle:hover {
  background: rgba(255, 255, 255, .3);
}
.ffa-eval-float-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: .75rem;
  flex: 1 1 auto;
  min-height: 0;
  touch-action: auto;
}
.ffa-eval-float-body .ffa-card {
  box-shadow: 0 6px 18px rgba(20, 32, 51, .08);
}
.ffa-eval-float.is-collapsed {
  max-height: none;
  width: auto;
  min-width: 200px;
}
.ffa-eval-float.is-collapsed .ffa-eval-float-body {
  display: none;
}
.ffa-eval-float-body::-webkit-scrollbar { width: 6px; }
.ffa-eval-float-body::-webkit-scrollbar-thumb {
  background: #b7c6de;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .ffa-page--expediente .ffa-expediente-main {
    max-width: none;
  }
  .ffa-eval-float {
    position: static;
    width: 100%;
    max-height: none;
    margin: 0 0 1.25rem;
    touch-action: auto;
    box-shadow: 0 10px 28px rgba(20, 32, 51, .12);
  }
  .ffa-eval-float-head {
    cursor: default;
  }
  .ffa-expediente-shell {
    display: flex;
    flex-direction: column;
  }
}
.ffa-card {
  background: #fff; border: 1px solid var(--ff-linea); border-radius: var(--ff-radio);
  padding: 1.3rem 1.4rem; box-shadow: 0 10px 30px rgba(20,32,51,.04);
}
.ffa-card h2, .ffa-card h3 { font-family: Fraunces, Georgia, serif; font-size: 1.3rem; margin: 0 0 .3rem; color: var(--ff-azul-profundo); }
.ffa-card .ff-lead { margin-bottom: 1rem; }

.ffa-chart { height: 220px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; gap: .45rem; padding-top: 1rem; }
.ffa-chart div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; font-size: .68rem; color: var(--ff-muted); }
.ffa-chart span.bar {
  display: block; width: 100%; border-radius: 10px 10px 4px 4px; min-height: 3px;
  background: linear-gradient(180deg, #5b8ff0, var(--ff-azul)); opacity: .9;
}
.ffa-chart b { font-size: .72rem; color: var(--ff-tinta); margin-bottom: 2px; }

.ffa-funnel { display: grid; gap: .55rem; }
.ffa-funnel-row { display: grid; grid-template-columns: 120px 1fr 40px; gap: .6rem; align-items: center; font-size: .88rem; }
.ffa-funnel-bar { height: 12px; background: #e7eef8; border-radius: 999px; overflow: hidden; }
.ffa-funnel-bar i { display: block; height: 100%; background: var(--ff-azul); border-radius: 999px; }

.ffa-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .ffa-kanban { grid-template-columns: 1fr; } }
.ffa-col { background: #eef3fb; border-radius: 18px; padding: .85rem; min-height: 320px; }
.ffa-col h3 { margin: .2rem .4rem .85rem; font-family: inherit; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ff-muted); font-weight: 800; }
.ffa-card-asp {
  display: block; background: #fff; border: 1px solid var(--ff-linea); border-radius: 14px; padding: .9rem;
  margin-bottom: .65rem; box-shadow: 0 6px 16px rgba(20,32,51,.04); color: inherit; text-decoration: none;
}
.ffa-card-asp:hover { border-color: #9db4d8; color: inherit; }
.ffa-card-asp strong { display: block; margin: .2rem 0 .15rem; }
.ffa-card-asp .meta { font-size: .78rem; color: var(--ff-muted); }

.ffa-pill { display: inline-block; font-size: .7rem; font-weight: 800; padding: .2rem .55rem; border-radius: 999px; }
.ffa-pill.ok { background: #e8f7ee; color: var(--ff-verde); }
.ffa-pill.wait { background: #fff4cc; color: #7a5300; }
.ffa-pill.rev { background: #e8f0ff; color: var(--ff-azul); }
.ffa-pill.bad { background: #fde8e8; color: var(--ff-rojo); }
.ffa-pill.inc { background: #fdebd9; color: #a24d00; }

.ffa-dl {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  gap: .55rem .85rem;
  margin: 0;
  font-size: .92rem;
  align-items: baseline;
}
.ffa-dl-stack {
  grid-template-columns: 1fr;
  gap: .2rem 0;
}
.ffa-dl-stack dt { margin-top: .65rem; }
.ffa-dl-stack dt:first-child { margin-top: 0; }
.ffa-dl-stack dd { font-weight: 700; color: var(--ff-tinta); margin-bottom: .15rem; }
@media (max-width: 700px) { .ffa-dl { grid-template-columns: 1fr; } }
.ffa-dl dt { color: var(--ff-muted); font-weight: 700; }
.ffa-dl dd { margin: 0; min-width: 0; overflow-wrap: break-word; word-break: normal; white-space: normal; }

/* Estado actual (tarjeta angosta de convocatoria) */
.ffa-estado-lista {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.ffa-estado-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  width: 100%;
}
.ffa-estado-lbl {
  color: var(--ff-muted);
  font-weight: 700;
  font-size: .85rem;
}
.ffa-estado-val {
  display: block;
  width: 100%;
  font-weight: 800;
  color: var(--ff-tinta);
  font-size: 1rem;
  line-height: 1.35;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
}
.ffa-section-title {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ff-azul); font-weight: 800;
  margin: 1.4rem 0 .6rem; padding-bottom: .35rem; border-bottom: 1px solid var(--ff-linea);
}
.ffa-section-title:first-child { margin-top: 0; }
.ffa-step-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ff-azul);
  background: #e8f0ff;
  border-radius: 999px;
  padding: .2rem .65rem;
  margin-bottom: .45rem;
}
.ffa-decision-resumen {
  display: grid;
  gap: .75rem;
  margin-top: .75rem;
  padding: .9rem 1rem;
  background: #f5f8fd;
  border: 1px solid var(--ff-linea);
  border-radius: 14px;
}
.ffa-decision-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
.ffa-decision-item .lbl {
  font-size: .85rem;
  font-weight: 700;
  color: var(--ff-muted);
}
.ffa-hab-row { margin-bottom: .65rem; }
.ffa-hab-main { display: flex; flex-direction: column; gap: .3rem; }
.ffa-hab-locked {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  min-height: 2rem;
}
.ffa-hab-revert {
  padding: .2rem .55rem !important;
  font-size: .75rem !important;
}
.ffa-puntaje-input.ffa-input-bad {
  border-color: var(--ff-rojo) !important;
  color: var(--ff-rojo);
  background: #fff5f5;
  box-shadow: 0 0 0 .15rem rgba(200, 40, 40, .12);
}
.ffa-puntaje-error {
  font-size: .72rem;
  font-weight: 700;
  color: var(--ff-rojo);
  margin-top: .2rem;
}
.ffa-criterios {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.ffa-criterio-row {
  display: grid;
  grid-template-columns: 1fr minmax(120px, 140px);
  gap: .65rem;
  align-items: start;
  padding: .7rem .75rem;
  border: 1px solid var(--ff-linea);
  border-radius: 12px;
  background: #f8fafc;
}
.ffa-criterio-title {
  font-size: .88rem;
  font-weight: 800;
  color: var(--ff-azul-profundo);
  margin-bottom: .2rem;
}
.ffa-criterio-max {
  font-weight: 700;
  color: var(--ff-muted);
  font-size: .78rem;
}
.ffa-criterio-guia {
  margin: 0 0 .35rem;
  font-size: .75rem;
  line-height: 1.35;
  color: #334155;
}
.ffa-criterio-ctx {
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
  color: var(--ff-azul);
}
.ffa-criterio-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .35rem;
  min-width: 118px;
}
.ffa-criterio-save-form {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.ffa-rescue {
  padding: .85rem .9rem;
  border-radius: 14px;
  border: 1px solid #f0b4b4;
  background: #fff5f5;
}
.ffa-rescue-title {
  margin: 0 0 .25rem;
  font-weight: 800;
  color: var(--ff-rojo);
  font-size: .9rem;
}
.ffa-rescue-text {
  margin: 0 0 .65rem;
  font-size: .8rem;
  color: #5c2b2b;
  line-height: 1.35;
}

.ffa-timeline { border-left: 3px solid #c9d7ec; margin-left: .7rem; padding-left: 1.2rem; }
.ffa-tl-item { position: relative; margin-bottom: 1.1rem; }
.ffa-tl-item::before {
  content: ""; position: absolute; left: -1.55rem; top: .35rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--ff-azul); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--ff-azul);
}
.ffa-tl-item .meta { color: var(--ff-muted); font-size: .85rem; }

.ffa-audit-banner {
  background: linear-gradient(120deg, #0f274d, #163a73); color: #fff; border-radius: var(--ff-radio);
  padding: 1.4rem 1.5rem; margin-bottom: 1rem;
}
.ffa-audit-banner h1 { font-family: Fraunces, Georgia, serif; font-size: 1.8rem; margin: .35rem 0 .5rem; color: #fff; }
.ffa-audit-banner p { margin: 0; opacity: .9; max-width: 60ch; }
.ffa-note-ro {
  background: #fff8e8; border: 1px solid #f2c94c; border-radius: 12px; padding: .85rem 1rem;
  font-size: .9rem; color: #7a5300; margin-top: 1rem;
}
.ffa-docs { list-style: none; padding: 0; margin: 0; }
.ffa-docs li {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .6rem .8rem; border: 1px solid var(--ff-linea); border-radius: 12px; margin-bottom: .5rem;
}
.ffa-toolbar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ffa-toolbar input, .ffa-toolbar select {
  border: 1.5px solid #c9d7ec; border-radius: 12px; padding: .6rem .8rem; font: inherit; background: #fff;
}
.ffa-toolbar input[type="search"] { min-width: 260px; }

/* —— Listado público de seleccionados —— */
.ff-seleccionados .ff-hero-banner {
  min-height: 0;
  margin-bottom: 1.25rem;
}
.ff-seleccionados-panel {
  background: #fff;
  border: 1px solid var(--ff-linea);
  border-radius: var(--ff-radio);
  box-shadow: var(--ff-sombra);
  padding: 1.35rem 1.4rem 1.5rem;
}
.ff-seleccionados-head {
  margin-bottom: 1.1rem;
}
.ff-seleccionados-head h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.55rem, 2.5vw, 1.95rem);
  margin: .15rem 0 .45rem;
  color: var(--ff-azul-profundo);
  font-weight: 700;
}
.ff-seleccionados-table thead th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ff-muted);
  border-bottom-width: 2px;
  white-space: nowrap;
}
.ff-seleccionados-table tbody td {
  vertical-align: middle;
  font-size: .95rem;
}
.ff-seleccionados-table tbody tr:hover {
  background: var(--ff-azul-claro);
}
