/* fc2v2-blade-common.css v4 — extraído del mockup aprobado
 * Mockup: 1778522348468_fc2-launchpad-blade-final-v3.html (líneas 6-925)
 * Tokens vienen de lk-tokens.css (sistema)
 * --green-base, --amber-base, --red-base, --red-soft, --blue-base son del mockup
 */

.fc-blade,
.fc2v2-blade {
  --green-base: var(--lk-green, #5DCAA5);
  --amber-base: var(--lk-amber, #EF9F27);
  --red-base:   var(--lk-red, #E24B4A);
  --red-soft:   #F09595;
  --blue-base:  var(--lk-blue, #85B7EB);
  --tx-soft:    var(--lk-text-faint, #6E7681);
  --border-soft: var(--lk-border-soft, rgba(0,0,0,.06));
}

  /* ══════════════════════════════════════════════════════════════════════
   * Tokens del kernel REAL (lk-tokens.css dark mode)
   * ══════════════════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════════════
   * BLADE — Sin cabecera del módulo
   * ══════════════════════════════════════════════════════════════════════ */
  .fc-blade {
    background: var(--bg-card);
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: blade-in 0.45s cubic-bezier(.34, 1.4, .64, 1);
  }
  /* Si está dentro del LUZODesk body, full bleed sin borders */
  .ld-blade-body > .fc-blade {
    border-radius: 0;
    border: 0;
  }
  @keyframes blade-in {
    from { opacity: 0; transform: translateY(8px) scale(0.99); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* ── Header zone (folio izq + win controls der) ─────────────────── */
  .fc-blade-header {
    position: relative;
    padding: 14px 20px 0;
    background: var(--bg-card);
    z-index: 5;
    flex-shrink: 0;
  }

  /* Folio Variante 1 — stack jerárquico */
  .fc-folio {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    animation: fade-up 0.4s ease 0.05s backwards;
  }
  .fc-folio-lbl {
    font-size: 9px;
    color: var(--tx-soft);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    font-weight: 500;
  }
  .fc-folio-val {
    font-family: ui-monospace, "SF Mono", Menlo, Monaco, monospace;
    font-size: 13px;
    color: var(--c-brand-soft);
    font-weight: 500;
    letter-spacing: -0.3px;
    margin-top: 3px;
  }

  /* Win controls */
  .fc-win-controls {
    position: absolute;
    top: 10px;
    right: 16px;
    display: flex;
    gap: 4px;
    z-index: 10;
    animation: fade-in 0.4s ease 0.1s backwards;
  }
  .fc-win-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 0.5px solid var(--border);
    background: var(--bg-surface);
    color: var(--tx-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
  }
  .fc-win-btn svg { width: 14px; height: 14px; }
  .fc-win-btn:hover { background: var(--bg-hover); color: var(--tx-base); }
  .fc-win-btn.fc-win-close:hover {
    background: rgba(226, 75, 74, 0.18);
    color: var(--red-base);
    border-color: rgba(226, 75, 74, 0.30);
  }
  .fc-win-btn:active { transform: scale(0.94); }

  /* ══════════════════════════════════════════════════════════════════════
   * SMARTVIEW BAR — Specs IDÉNTICAS al kernel deployado
   * Estructura emitida por _renderKpi y _renderCapsule de lk-smartview-bar.js
   * ══════════════════════════════════════════════════════════════════════ */
  .sv-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    margin-top: 0;
    white-space: nowrap;
    border-bottom: 0.5px solid var(--border);
    flex-shrink: 0;
    background: var(--bg-card);
    color: var(--tx-base);
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
    transition: opacity .25s cubic-bezier(.4, 0, .2, 1);
    animation: fade-in 0.4s ease 0.15s backwards;
  }
  .sv-bar::-webkit-scrollbar { display: none; }
  .sv-bar { scrollbar-width: none; }

  /* ── Trigger ──────────────────────────────────────────────────────── */
  .sv-bar-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 28px;
    padding: 0 11px;
    border-radius: 8px;
    cursor: pointer;
    border: 0.5px solid var(--lk-brand-border);
    background: var(--c-brand-muted);
    flex-shrink: 0;
    box-sizing: border-box;
    transition: background .2s cubic-bezier(.4, 0, .2, 1), border-color .2s;
  }
  .sv-bar-trigger:hover {
    background: rgba(127, 119, 221, 0.28);
    border-color: var(--c-brand-soft);
  }
  .sv-bar-trigger-ico { display: inline-flex; color: var(--c-brand-soft); }
  .sv-bar-trigger-ico svg { width: 14px; height: 14px; }
  .sv-bar-trigger-lbl {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-brand-soft);
    line-height: 1;
  }
  .sv-bar-trigger-chev {
    display: inline-flex;
    color: var(--c-brand-soft);
    transition: transform .15s cubic-bezier(.4, 0, .2, 1);
  }
  .sv-bar-trigger-chev svg { width: 10px; height: 10px; }
  .sv-bar-trigger:hover .sv-bar-trigger-chev { transform: translateY(1px); }

  /* ── Separador (sv-bar-sep del kernel) ──────────────────────────── */
  .sv-bar-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--tx-muted);
    opacity: 0.4;
    flex-shrink: 0;
  }

  /* ── KPI default (label + value) ──────────────────────────────────── */
  .sv-bar-kpi {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 28px;
    line-height: 1.1;
    flex-shrink: 0;
  }
  .sv-bar-kpi-lbl {
    font-size: 9.5px;
    color: var(--tx-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1px;
    line-height: 1;
  }
  .sv-bar-kpi-val {
    font-size: 13px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--tx-base);
    line-height: 1;
  }

  /* ── KPI ring (sv-bar-kpi-ring del kernel) ───────────────────────── */
  .sv-bar-kpi-ring {
    flex-direction: row;
    gap: 7px;
    align-items: center;
  }
  .sv-bar-ring { flex-shrink: 0; }
  .sv-bar-ring-fg { transition: stroke-dasharray .8s cubic-bezier(.4, 0, .2, 1); }
  .sv-bar-kpi-text { display: flex; flex-direction: column; line-height: 1; }

  /* ── KPI avatar (sv-bar-kpi-avatar del kernel) ───────────────────── */
  .sv-bar-kpi-avatar {
    flex-direction: row;
    gap: 8px;
    align-items: center;
    border-radius: 8px;
    padding: 0 8px 0 2px;
    transition: background .15s;
  }
  .sv-bar-kpi-avatar:hover { background: var(--bg-hover); }

  .sv-bar-av-wrap {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }
  .sv-bar-av {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 500;
    overflow: hidden;
    position: relative;
    z-index: 2;
  }
  .sv-bar-av-ini { line-height: 1; }
  /* Halo púrpura difuso del kernel */
  .sv-bar-av-halo::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109,40,217,.4) 0%, rgba(109,40,217,0) 65%);
    z-index: 1;
    pointer-events: none;
  }

  /* ── Spacer (sv-bar-spacer del kernel) ────────────────────────────── */
  .sv-bar-spacer { flex: 1 1 auto; min-width: 0; }

  /* ── Cápsulas (sv-cap del kernel — IDÉNTICAS) ─────────────────────── */
  .sv-cap {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 28px;
    padding: 0 11px;
    border-radius: 8px;
    flex-shrink: 0;
    box-sizing: border-box;
    font-size: 12px;
    border: 0.5px solid var(--border);
    background: var(--bg-surface);
    color: var(--tx-muted);
    transition:
      width .4s cubic-bezier(.4, 0, .2, 1),
      padding .4s cubic-bezier(.4, 0, .2, 1),
      background .25s,
      border-color .25s;
  }
  .sv-cap.sv-cap-compact { gap: 7px; padding: 0 10px; }

  .sv-cap-stack {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 2px;
    min-width: 0;
  }
  .sv-cap-tag {
    font-size: 9.5px;
    color: inherit;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
  }
  .sv-cap-name {
    font-size: 12px;
    color: var(--tx-base);
    font-weight: 500;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
  }
  .sv-cap-icon { display: inline-flex; flex-shrink: 0; }
  .sv-cap-icon svg { width: 13px; height: 13px; }

  .sv-cap-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-base);
    flex-shrink: 0;
    position: relative;
  }
  .sv-cap-dot::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1px solid rgba(93, 202, 165, 0.5);
    animation: sv-halo 2.8s ease-out infinite;
    opacity: 0;
  }
  @keyframes sv-halo {
    0%   { transform: scale(.85); opacity: .55; }
    100% { transform: scale(1.7); opacity: 0; }
  }

  .sv-cap-timer {
    font-size: 12.5px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, "SF Mono", Menlo, Monaco, monospace;
    line-height: 1;
  }
  .sv-cap-badge {
    height: 16px;
    min-width: 16px;
    padding: 0 5px;
    border-radius: 8px;
    background: rgba(226, 75, 74, 0.85);
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
    line-height: 1;
  }

  /* ── Variantes color cápsula (kernel real) ───────────────────────── */
  .sv-cap.sv-cap-green {
    background: rgba(29, 158, 117, 0.07);
    border-color: rgba(29, 158, 117, 0.28);
    color: var(--green-base);
  }
  .sv-cap.sv-cap-green .sv-cap-icon,
  .sv-cap.sv-cap-green .sv-cap-timer { color: var(--green-base); }

  .sv-cap.sv-cap-red {
    background: rgba(163, 45, 45, 0.08);
    border-color: rgba(226, 75, 74, 0.30);
    color: var(--red-soft);
  }
  .sv-cap.sv-cap-red .sv-cap-icon { color: var(--red-base); }
  .sv-cap.sv-cap-red .sv-cap-timer { color: var(--red-soft); }

  .sv-cap.sv-cap-neutral {
    background: var(--bg-surface);
    border-color: var(--border);
    color: var(--tx-muted);
  }

  /* ── Animación Dynamic Island (kernel real) ──────────────────────── */
  .sv-island-in {
    animation: sv-island-in .5s cubic-bezier(.34, 1.4, .64, 1) backwards;
  }
  @keyframes sv-island-in {
    0%   { transform: scale(.4); opacity: 0; }
    50%  { transform: scale(1.04); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
  }

  /* ══════════════════════════════════════════════════════════════════════
   * VIEW (contenido del Launchpad)
   * ══════════════════════════════════════════════════════════════════════ */
  .fc-view {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--bg-card);
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
  }
  .fc-view::-webkit-scrollbar { width: 6px; }
  .fc-view::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
  .fc-view::-webkit-scrollbar-track { background: transparent; }

  /* Banner ámbar — encuesta atrasada */
  .fc-amber-warn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: rgba(186, 117, 23, 0.08);
    border: 0.5px solid rgba(186, 117, 23, 0.28);
    border-radius: 9px;
    animation: fade-up 0.4s ease 0.20s backwards;
    transition: background 0.2s ease;
  }
  .fc-amber-warn:hover { background: rgba(186, 117, 23, 0.12); }
  .fc-amber-warn-ico { color: var(--amber-base); display: flex; }
  .fc-amber-warn-ico svg { width: 14px; height: 14px; }
  .fc-amber-warn-text { font-size: 11.5px; color: var(--amber-base); flex: 1; }
  .fc-amber-warn-link {
    font-size: 11px;
    color: var(--amber-base);
    text-decoration: underline;
    cursor: pointer;
    transition: opacity 0.15s ease;
  }
  .fc-amber-warn-link:hover { opacity: 0.75; }

  /* ── Card del paciente con halo verde ────────────────────────────── */
  .fc-pac {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-surface);
    border: 0.5px solid var(--border-soft);
    border-radius: 12px;
    animation: fade-up 0.4s ease 0.25s backwards;
    transition: border-color 0.25s ease;
  }
  .fc-pac:hover { border-color: var(--lk-brand-border); }

  .fc-pac-av {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(167,139,250,0.18);
    color: var(--c-brand-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
    position: relative;
  }
  .fc-pac-av-halo::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(93,202,165,0.40) 0%, rgba(93,202,165,0) 65%);
    z-index: 0;
    pointer-events: none;
    animation: pac-halo-pulse 2.4s ease-in-out infinite;
  }
  .fc-pac-av-ini { position: relative; z-index: 1; }
  @keyframes pac-halo-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.08); }
  }

  .fc-pac-info { flex: 1; min-width: 0; }
  .fc-pac-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    color: var(--green-base);
    font-weight: 500;
    margin-bottom: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .fc-pac-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-base);
    box-shadow: 0 0 0 3px rgba(93, 202, 165, 0.18);
    position: relative;
  }
  .fc-pac-status-dot::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1px solid rgba(93, 202, 165, 0.5);
    animation: sv-halo 2.8s ease-out infinite;
    opacity: 0;
  }
  .fc-pac-name { font-size: 16px; font-weight: 500; color: var(--tx-base); }
  .fc-pac-meta { font-size: 12px; color: var(--tx-muted); margin-top: 3px; }
  .fc-pac-meta strong { color: #C9D1D9; font-weight: 500; }

  .fc-pac-time {
    font-family: ui-monospace, "SF Mono", Menlo, Monaco, monospace;
    font-size: 18px;
    color: var(--green-base);
    font-weight: 500;
    letter-spacing: -0.4px;
  }
  .fc-pac-time-sub {
    font-size: 9.5px;
    color: var(--tx-soft);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 2px;
    text-align: right;
  }
  .fc-pac-cambiar {
    padding: 9px 14px;
    background: transparent;
    border: 0.5px solid var(--border);
    border-radius: 8px;
    color: var(--tx-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    transition: all 0.2s ease;
  }
  .fc-pac-cambiar svg { width: 12px; height: 12px; }
  .fc-pac-cambiar:hover {
    border-color: var(--c-brand-soft);
    color: var(--c-brand-soft);
    background: var(--c-brand-muted);
  }
  .fc-pac-cambiar:active { transform: scale(0.97); }

  /* ── Stats grid ──────────────────────────────────────────────────── */
  .fc-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    animation: fade-up 0.4s ease 0.30s backwards;
  }
  .fc-stat-card {
    background: var(--bg-surface);
    border: 0.5px solid var(--border-soft);
    border-radius: 10px;
    padding: 12px 14px;
    transition: all 0.25s ease;
  }
  .fc-stat-card:hover {
    border-color: var(--lk-brand-border);
    transform: translateY(-1px);
  }
  .fc-stat-lbl {
    font-size: 9.5px;
    color: var(--tx-soft);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
  }
  .fc-stat-val {
    font-size: 22px;
    font-weight: 500;
    margin-top: 6px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.4px;
  }
  .fc-stat-val.purple { color: var(--c-brand-soft); }
  .fc-stat-val.green  { color: var(--green-base); }
  .fc-stat-val.amber  { color: var(--amber-base); }
  .fc-stat-val.muted  { color: #C9D1D9; font-size: 14px; line-height: 1.3; margin-top: 8px; }
  .fc-stat-sub { font-size: 10.5px; color: var(--tx-muted); margin-top: 4px; }

  /* ── Section label ───────────────────────────────────────────────── */
  .fc-section-lbl {
    font-size: 9.5px;
    color: var(--tx-soft);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: -6px;
    animation: fade-in 0.3s ease backwards;
  }

  /* ── Tipos de registro ───────────────────────────────────────────── */
  .fc-tipo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    animation: fade-up 0.4s ease 0.35s backwards;
  }
  .fc-tipo-card {
    padding: 14px;
    background: var(--bg-surface);
    border: 0.5px solid var(--border-soft);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
  }
  .fc-tipo-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(167,139,250,0.06) 50%, transparent 70%);
    transform: translateX(-100%);
    pointer-events: none;
  }
  .fc-tipo-card:hover {
    border-color: var(--lk-brand-border);
    transform: translateY(-1px);
  }
  .fc-tipo-card:hover::after { animation: shimmer 1.2s ease-out; }
  .fc-tipo-card.selected {
    border-color: var(--c-brand-soft);
    background: rgba(167, 139, 250, 0.08);
  }
  /* Estado bloqueado (aplicado por reglas de negocio) */
  .fc-tipo-card.disabled {
    opacity: 0.40;
    cursor: not-allowed;
    pointer-events: none;
  }
  .fc-tipo-card.disabled::after { display: none; }

  @keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
  }

  .fc-tipo-ico {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--c-brand-muted);
    color: var(--c-brand-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: background 0.2s ease;
  }
  .fc-tipo-card.selected .fc-tipo-ico { background: rgba(167, 139, 250, 0.28); }
  .fc-tipo-card.disabled .fc-tipo-ico {
    background: rgba(255,255,255,0.04);
    color: var(--tx-soft);
  }
  .fc-tipo-ico svg { width: 16px; height: 16px; }

  .fc-tipo-lbl { font-size: 13px; font-weight: 500; color: var(--tx-base); }
  .fc-tipo-sub { font-size: 11px; color: var(--tx-muted); margin-top: 2px; }

  .fc-tipo-flag {
    display: inline-block;
    margin-top: 8px;
    font-size: 9.5px;
    padding: 2px 7px;
    border-radius: 5px;
    font-weight: 500;
  }
  .fc-tipo-flag-consent {
    color: var(--red-base);
    background: rgba(226, 75, 74, 0.12);
  }
  .fc-tipo-flag-skip {
    color: var(--green-base);
    background: rgba(29, 158, 117, 0.12);
  }
  .fc-tipo-flag-blocked {
    color: var(--tx-soft);
    background: rgba(255,255,255,0.05);
  }

  /* ── Folio reveal ────────────────────────────────────────────────── */
  .fc-folio-reveal {
    padding: 12px 16px;
    background: var(--c-brand-muted);
    border: 0.5px solid var(--lk-brand-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    animation: fade-up 0.4s ease 0.40s backwards;
  }
  .fc-folio-reveal-lbl {
    font-size: 9.5px;
    color: var(--tx-soft);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
  }
  .fc-folio-reveal-val {
    font-size: 14px;
    font-family: ui-monospace, "SF Mono", Menlo, Monaco, monospace;
    color: var(--c-brand-soft);
    font-weight: 500;
    margin-top: 2px;
    letter-spacing: -0.2px;
  }
  .fc-folio-reveal-divider { width: 1px; height: 30px; background: var(--lk-brand-border); }
  .fc-folio-reveal-tipo { font-size: 12px; color: #C9D1D9; font-weight: 500; }
  .fc-folio-reveal-tipo-sub { font-size: 11px; color: var(--tx-muted); margin-top: 2px; }
  .fc-folio-reveal-edit {
    padding: 6px 10px;
    background: transparent;
    border: 0.5px solid var(--border);
    border-radius: 7px;
    color: var(--tx-muted);
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.18s ease;
  }
  .fc-folio-reveal-edit:hover {
    border-color: var(--c-brand-soft);
    color: var(--c-brand-soft);
  }

  /* ── Documentos previos ──────────────────────────────────────────── */
  .fc-docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    animation: fade-up 0.4s ease 0.45s backwards;
  }
  .fc-doc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: var(--bg-surface);
    border: 0.5px solid var(--border-soft);
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.18s ease;
  }
  .fc-doc-row:hover { border-color: var(--lk-brand-border); transform: translateX(2px); }
  .fc-doc-ico {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(167, 139, 250, 0.14);
    color: var(--c-brand-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .fc-doc-ico svg { width: 14px; height: 14px; }
  .fc-doc-info { flex: 1; min-width: 0; }
  .fc-doc-name { font-size: 12px; font-weight: 500; color: var(--tx-base); }
  .fc-doc-meta {
    font-size: 10.5px;
    color: var(--tx-muted);
    margin-top: 2px;
    font-family: ui-monospace, "SF Mono", Menlo, Monaco, monospace;
    letter-spacing: -0.2px;
  }
  .fc-doc-state {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 500;
    background: rgba(29, 158, 117, 0.14);
    color: var(--green-base);
  }

  /* ── Footer ──────────────────────────────────────────────────────── */
  .fc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-card);
    border-top: 0.5px solid var(--border);
    flex-shrink: 0;
    animation: fade-in 0.4s ease 0.50s backwards;
  }
  .fc-foot-info {
    font-size: 11.5px;
    color: var(--tx-muted);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .fc-foot-info-check { color: var(--green-base); display: inline-flex; }
  .fc-foot-info-check svg { width: 13px; height: 13px; }
  .fc-foot-actions { display: flex; gap: 8px; }
  .fc-foot-btn-ghost {
    padding: 9px 14px;
    background: transparent;
    color: #C9D1D9;
    border: 0.5px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.18s ease;
  }
  .fc-foot-btn-ghost:hover { border-color: rgba(255,255,255,0.30); }
  .fc-foot-btn-ghost:active { transform: scale(0.97); }
  .fc-foot-btn-cta {
    padding: 9px 18px;
    background: var(--c-brand);
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    transition: all 0.22s ease;
  }
  .fc-foot-btn-cta:hover { background: #7c3aed; transform: translateY(-1px); }
  .fc-foot-btn-cta:active { transform: scale(0.97); }
  .fc-foot-btn-cta svg { width: 12px; height: 12px; transition: transform 0.18s ease; }
  .fc-foot-btn-cta:hover svg { transform: translateX(2px); }

  /* ══════════════════════════════════════════════════════════════════════
   * Animaciones de entrada
   * ══════════════════════════════════════════════════════════════════════ */
  @keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  @keyframes fade-up {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

  /* ── Specs caption ────────────────────────────────────────────────── */

/* ── Variant selector (3 escenarios de paciente) ───────────────── */


/* ══════════════════════════════════════════════════════════════════════
 * RUNTIME EXTRAS · loading, error, picker dropdown inline, responsive
 * ══════════════════════════════════════════════════════════════════════ */

/* Reset local dentro del blade — no afecta el sistema */
.fc-blade *,
.fc-blade *::before,
.fc-blade *::after { box-sizing: border-box; }

/* Loading state */
.fc-blade-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 12px;
  color: var(--tx-muted);
  background: var(--bg-card);
}
.fc-blade-loading-spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid var(--bg-hover);
  border-top-color: var(--c-brand);
  border-radius: 50%;
  animation: fc-blade-spin 0.7s linear infinite;
}
@keyframes fc-blade-spin {
  to { transform: rotate(360deg); }
}
.fc-blade-loading-text {
  font-size: 12px;
  color: var(--tx-muted);
}

/* Error state */
.fc-blade-error {
  margin: 24px;
  padding: 18px 20px;
  background: rgba(226, 75, 74, 0.08);
  border: 0.5px solid rgba(226, 75, 74, 0.30);
  border-radius: 10px;
  color: var(--red-base);
  font-size: 12.5px;
  text-align: center;
}

/* ── Picker dropdown INLINE (no overlay) ──────────────────────────────
 * Se inserta dentro de .fc-pac como dropdown absoluto a esa card,
 * ancho = ancho de la card, no afecta el resto del blade
 */
.fc-pac { position: relative; }

.fc-pac-picker {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 0.5px solid var(--lk-brand-border);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.40);
  z-index: 100;
  padding: 12px;
  max-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: pac-picker-in 0.22s cubic-bezier(.34, 1.2, .64, 1);
}
@keyframes pac-picker-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fc-pac-picker-search {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  color: var(--tx-base);
  font-size: 12.5px;
  font-family: inherit;
  transition: border-color 0.15s;
  flex-shrink: 0;
}
.fc-pac-picker-search:focus {
  outline: none;
  border-color: var(--c-brand-soft);
}
.fc-pac-picker-search::placeholder { color: var(--tx-muted); }

.fc-pac-picker-list {
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fc-pac-picker-list::-webkit-scrollbar { width: 6px; }
.fc-pac-picker-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.fc-pac-picker-list::-webkit-scrollbar-track { background: transparent; }

.fc-pac-picker-section-lbl {
  font-size: 9.5px;
  color: var(--tx-soft);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 4px 0;
  flex-shrink: 0;
}

.fc-pac-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: transparent;
  border: 0.5px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.fc-pac-picker-row:hover {
  background: var(--bg-hover);
  border-color: var(--border-soft);
}
.fc-pac-picker-row-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.18);
  color: var(--c-brand-soft);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 500;
  flex-shrink: 0;
}
.fc-pac-picker-row-info { flex: 1; min-width: 0; }
.fc-pac-picker-row-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--tx-base);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc-pac-picker-row-meta {
  font-size: 10.5px;
  color: var(--tx-muted);
  margin-top: 1px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.fc-pac-picker-empty {
  font-size: 11.5px;
  color: var(--tx-muted);
  padding: 16px 8px;
  text-align: center;
}

/* Empty state del paciente (modo picker · placeholder) */
.fc-pac-empty .fc-pac-av {
  background: var(--bg-hover);
  color: var(--tx-muted);
}
.fc-pac-empty .fc-pac-name {
  color: var(--tx-muted);
  font-style: italic;
}

/* Estado del botón cambiar/elegir cuando está active */
.fc-pac-cambiar.is-active {
  border-color: var(--c-brand-soft);
  color: var(--c-brand-soft);
  background: var(--c-brand-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .fc-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .fc-tipo-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .fc-view { padding: 14px 14px; }
  .fc-pac { flex-wrap: wrap; }
  .fc-pac-time, .fc-pac-time-sub { display: none; }
  .sv-bar { overflow-x: auto; }
}
