
  :root { --amber:#B8860B; --red:#B4322A; --green-soft:#E7EEEB; --btn:#304D45; --btn-press:#25403A; --hair:#EAE5D9; }
  html, body { height: 100%; }
  body { margin: 0; font-family: var(--font-body); -webkit-font-smoothing: antialiased; background: #F4F1EA; color: var(--fg); }
  button { font-family: inherit; cursor: pointer; }
  input, textarea, select { font-family: inherit; }
  #root { min-height: 100vh; }

  /* ---------- LOGIN ---------- */
  .auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
    background: linear-gradient(165deg, #355449 0%, #304D45 48%, #243B35 100%); position: relative; overflow: hidden; }
  .auth-decor { position: absolute; border-radius: 50%; width: 520px; height: 520px; top: -180px; right: -160px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08), rgba(255,255,255,0) 70%); pointer-events: none; }
  .auth-decor.two { width: 420px; height: 420px; top: auto; bottom: -160px; left: -140px; right: auto;
    background: radial-gradient(circle at 60% 40%, rgba(226,201,111,0.10), rgba(226,201,111,0) 70%); }
  .auth-mark { position: absolute; right: -70px; bottom: -80px; opacity: 0.055; transform: rotate(-8deg); pointer-events: none; z-index: 1; }
  .auth-card { position: relative; z-index: 2; width: 100%; max-width: 430px; background: #fff; border-radius: 22px;
    padding: 34px 32px 30px; box-shadow: 0 30px 60px -24px rgba(20,32,28,0.55); }
  .auth-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 8px; }
  .auth-brand .word { font-family: var(--font-logo); font-size: 28px; letter-spacing: 0.12em; color: var(--btn); line-height: 1; }
  .auth-brand .tagline { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 13.5px; color: var(--dinamic-green); letter-spacing: 0.01em; margin-top: -2px; }
  .auth-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--btn); color: #fff;
    font-family: var(--font-display); font-weight: 700; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 6px 13px; border-radius: 999px; margin: 6px auto 4px; }
  .auth-sub { text-align: center; color: var(--fg-muted); font-size: 14px; margin: 0 0 24px; }
  .fd-field { display: block; margin-bottom: 15px; }
  .fd-label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--btn); margin-bottom: 7px; }
  .fd-input { display: flex; align-items: center; gap: 10px; background: #F7F9F8; border: 1.5px solid #E2E8E5; border-radius: 12px; padding: 0 14px; height: 52px; transition: border-color var(--dur-2), box-shadow var(--dur-2); }
  .fd-input:focus-within { border-color: var(--dinamic-green); box-shadow: var(--ring); background: #fff; }
  .fd-input svg { color: var(--dinamic-green); flex: none; }
  .fd-input input { border: 0; background: transparent; outline: none; flex: 1; min-width: 0; font-family: var(--font-display); font-size: 16.5px; font-weight: 500; color: var(--dinamic-charcoal); }
  .fd-input input::placeholder { color: #A8B2AE; font-weight: 400; }
  .fd-eye { border: 0; background: transparent; color: var(--ink-300); padding: 4px; display: flex; }
  .forgot { text-align: right; margin: -2px 0 18px; }
  .forgot a { font-size: 13.5px; font-weight: 500; color: var(--dinamic-green); text-decoration: none; }
  .forgot a:hover { text-decoration: underline; }
  .btn { width: 100%; min-height: 52px; border: 0; border-radius: 13px; font-family: var(--font-display); font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap; transition: background var(--dur-2) var(--ease), transform var(--dur-1), opacity var(--dur-2); }
  .btn-primary { background: var(--btn); color: #fff; }
  .btn-primary:hover:not(:disabled) { background: var(--btn-press); }
  .btn-primary:active:not(:disabled) { transform: translateY(1px); }
  .btn-primary:disabled { opacity: 0.42; cursor: not-allowed; }
  .spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,0.4); border-top-color: #fff; animation: spin 0.7s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .auth-note { display: flex; align-items: center; gap: 7px; justify-content: center; margin: 16px 0 0; font-size: 12.5px; color: var(--fg-muted); }
  .auth-note svg { color: var(--dinamic-green); }
  .back-link { display: block; text-align: center; margin-top: 22px; color: rgba(255,255,255,0.8); font-size: 13.5px; text-decoration: none; position: relative; z-index: 2; }
  .back-link:hover { color: #fff; text-decoration: underline; }

  /* ---------- SHELL DEL PANEL ---------- */
  .panel { display: grid; grid-template-columns: 248px 1fr; grid-template-rows: auto 1fr; grid-template-areas: "top top" "side main"; min-height: 100vh; }
  .panel-top { grid-area: top; background: var(--btn); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; height: 62px; position: sticky; top: 0; z-index: 30; box-shadow: inset 0 -1px 0 rgba(255,255,255,0.08); }
  .panel-top .brand { display: flex; align-items: center; gap: 10px; }
  .panel-top .brand .word { font-family: var(--font-logo); font-size: 17px; letter-spacing: 0.12em; }
  .panel-top .brand .tag { font-family: var(--font-display); font-size: 11.5px; font-weight: 500; color: rgba(255,255,255,0.65); border-left: 1px solid rgba(255,255,255,0.25); padding-left: 10px; margin-left: 4px; }
  .panel-top .who { display: flex; align-items: center; gap: 11px; }
  .panel-top .who .av { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,0.16); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; }
  .panel-top .who .meta { display: flex; flex-direction: column; line-height: 1.2; }
  .panel-top .who .meta b { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
  .panel-top .who .meta span { font-size: 11.5px; color: rgba(255,255,255,0.7); white-space: nowrap; }
  .panel-top .out { border: 0; background: rgba(255,255,255,0.12); color: #fff; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; margin-left: 6px; transition: background var(--dur-2); }
  .panel-top .out:hover { background: rgba(255,255,255,0.22); }

  .panel-side { grid-area: side; background: #fff; border-right: 1px solid var(--hair); padding: 16px 12px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
  .nav-group { font-family: var(--font-display); font-weight: 700; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-300); padding: 14px 12px 6px; }
  .nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; border: 0; background: transparent; width: 100%; text-align: left; font-family: var(--font-display); font-weight: 500; font-size: 14.5px; color: var(--dinamic-charcoal); transition: background var(--dur-2); }
  .nav-item svg { color: var(--ink-500); flex: none; }
  .nav-item:hover { background: #F4F1EA; }
  .nav-item.on { background: var(--green-soft); color: var(--btn); font-weight: 600; }
  .nav-item.on svg { color: var(--dinamic-green); }
  .nav-item .badge { margin-left: auto; background: var(--amber); color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; padding: 0 6px; }
  .nav-item .badge.red { background: var(--red); }

  .panel-main { grid-area: main; padding: 28px 30px 60px; overflow-y: auto; background: #F4F1EA; }
  .main-head { margin-bottom: 24px; }
  .main-head h1 { font-family: var(--font-display); font-weight: 800; font-size: 27px; letter-spacing: -0.015em; color: var(--dinamic-green-dark); margin: 0 0 10px; }
  .main-head h1::after { content: ''; display: block; width: 34px; height: 3px; border-radius: 2px; background: var(--dinamic-gold); margin-top: 9px; }
  .main-head p { margin: 0; color: var(--fg-muted); font-size: 14.5px; max-width: 640px; text-wrap: pretty; }
  .a-intro { margin: -8px 0 18px; color: var(--fg-muted); font-size: 14.5px; max-width: 640px; text-wrap: pretty; }

  /* ---------- TARJETAS Y STATS ---------- */
  .a-card { background: #fff; border: 1px solid var(--hair); border-radius: 14px; padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
  .a-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .a-card__head h2 { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--dinamic-green-dark); margin: 0; white-space: nowrap; }
  .a-card__head h2 svg { color: var(--dinamic-green); }
  .a-card__desc { margin: -6px 0 14px; color: var(--fg-muted); font-size: 13.5px; }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
  .two-col .a-card { margin-bottom: 0; }

  .stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
  .stat-grid.three { grid-template-columns: repeat(3, 1fr); }
  .stat { background: #fff; border: 1px solid var(--hair); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); text-align: left; }
  .stat.clickable { transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2); }
  .stat.clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .stat .lab { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 10px; }
  .stat .lab svg { color: var(--dinamic-green); }
  .stat .val { font-family: var(--font-display); font-weight: 800; font-size: 27px; color: var(--dinamic-green-dark); line-height: 1.1; font-variant-numeric: tabular-nums; }
  .stat .sub { margin-top: 5px; font-size: 12.5px; color: var(--fg-muted); }

  /* ---------- PILDORAS ---------- */
  .apill { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-display); font-weight: 600; font-size: 12px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
  .apill.green { background: var(--green-soft); color: var(--btn); }
  .apill.amber { background: #F5EBD3; color: #7A5A08; }
  .apill.red { background: #F6E3E1; color: var(--red); }
  .apill.gray { background: #ECE9E0; color: var(--ink-500); }

  /* ---------- TOOLBAR: BÚSQUEDA Y CHIPS ---------- */
  .a-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
  .a-search { display: flex; align-items: center; gap: 9px; background: #fff; border: 1.5px solid #E2E8E5; border-radius: 11px; padding: 0 13px; height: 44px; flex: 1; min-width: 260px; max-width: 420px; transition: border-color var(--dur-2), box-shadow var(--dur-2); }
  .a-search:focus-within { border-color: var(--dinamic-green); box-shadow: var(--ring); }
  .a-search svg { color: var(--dinamic-green); flex: none; }
  .a-search input { border: 0; background: transparent; outline: none; flex: 1; min-width: 0; font-family: var(--font-display); font-size: 14.5px; color: var(--dinamic-charcoal); }
  .a-search input::placeholder { color: #A8B2AE; }
  .a-search button { border: 0; background: transparent; color: var(--ink-300); display: flex; padding: 3px; }
  .a-chips { display: flex; gap: 7px; flex-wrap: wrap; }
  .a-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--hair); background: #fff; color: var(--ink-500); font-family: var(--font-display); font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 999px; transition: background var(--dur-2), color var(--dur-2), border-color var(--dur-2); }
  .a-chip:hover { background: #F4F1EA; }
  .a-chip.on { background: var(--btn); border-color: var(--btn); color: #fff; }
  .a-chip .n { background: rgba(0,0,0,0.08); border-radius: 999px; font-size: 11px; padding: 1px 7px; }
  .a-chip.on .n { background: rgba(255,255,255,0.2); }

  /* ---------- TABLA ---------- */
  .a-table-card { padding: 6px 0 2px; overflow-x: auto; }
  .a-table { width: 100%; border-collapse: collapse; font-size: 14px; }
  .a-table th { text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-300); padding: 12px 16px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
  .a-table td { padding: 13px 16px; border-bottom: 1px solid #F2EFE6; vertical-align: middle; color: var(--dinamic-charcoal); }
  .a-table tr:last-child td { border-bottom: 0; }
  .a-table tbody tr:not(.static) { cursor: pointer; transition: background var(--dur-1); }
  .a-table tbody tr:not(.static):hover { background: #F8F6F0; }
  .a-table td strong { font-family: var(--font-display); font-weight: 600; display: block; }
  .celda-sub { display: block; font-size: 12px; color: var(--fg-muted); margin-top: 1px; }
  .a-go { color: var(--ink-300); width: 28px; }
  .ruta-celda { max-width: 220px; }
  .a-person { display: flex; align-items: center; gap: 11px; }
  .a-person span:not(.a-av) { display: block; font-size: 12.5px; color: var(--fg-muted); }
  .a-av { width: 36px; height: 36px; border-radius: 11px; background: var(--green-soft); color: var(--btn); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; flex: none; }
  .placas { display: flex; gap: 6px; flex-wrap: wrap; }
  .placa { display: inline-block; font-family: var(--font-mono, monospace); font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; background: #F4F1EA; border: 1px solid var(--hair); border-radius: 6px; padding: 3px 8px; color: var(--dinamic-green-dark); white-space: nowrap; }
  .mini-folio { font-family: var(--font-mono, monospace); font-size: 13px; font-weight: 600; color: var(--dinamic-green-dark); white-space: nowrap; }
  .venc { font-size: 13.5px; white-space: nowrap; }
  .venc.red { color: var(--red); font-weight: 600; }
  .venc.amber { color: #7A5A08; font-weight: 600; }
  .venc.green { color: var(--dinamic-charcoal); }
  .acciones { display: flex; gap: 8px; flex-wrap: wrap; }

  /* ---------- BOTONES ---------- */
  .a-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; border: 0; border-radius: 10px; font-family: var(--font-display); font-weight: 700; font-size: 14px; padding: 11px 18px; transition: background var(--dur-2) var(--ease), transform var(--dur-1), opacity var(--dur-2); }
  .a-btn.primary { background: var(--btn); color: #fff; }
  .a-btn.primary:hover:not(:disabled) { background: var(--btn-press); }
  .a-btn.ghost { background: #fff; border: 1px solid var(--hair); color: var(--btn); }
  .a-btn.ghost:hover { background: #F4F1EA; }
  .a-btn.danger { background: #F6E3E1; color: var(--red); }
  .a-btn.danger:hover:not(:disabled) { background: #F0D5D2; }
  .a-btn:disabled { opacity: 0.42; cursor: not-allowed; }
  .a-btn.mini { padding: 7px 12px; font-size: 12.5px; border-radius: 8px; }
  .a-btn:active:not(:disabled) { transform: translateY(1px); }

  /* ---------- VACÍO ---------- */
  .a-vacio { background: #fff; border: 1px solid var(--hair); border-radius: 14px; padding: 40px 24px; text-align: center; box-shadow: var(--shadow-sm); }
  .a-vacio .pic { width: 60px; height: 60px; border-radius: 17px; background: var(--green-soft); color: var(--dinamic-green-dark); display: grid; place-items: center; margin: 0 auto 14px; }
  .a-vacio h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--dinamic-green-dark); margin: 0 0 6px; }
  .a-vacio p { color: var(--fg-muted); font-size: 14px; margin: 0 auto; max-width: 380px; }

  /* ---------- TABLERO ---------- */
  .alerta-list, .mini-list { display: flex; flex-direction: column; }
  .alerta, .mini-row { display: flex; align-items: center; gap: 11px; padding: 11px 6px; border: 0; background: transparent; width: 100%; text-align: left; border-bottom: 1px solid #F2EFE6; font-size: 14px; color: var(--dinamic-charcoal); transition: background var(--dur-1); border-radius: 8px; }
  .alerta:last-child, .mini-row:last-child { border-bottom: 0; }
  .alerta:hover, .mini-row:hover { background: #F8F6F0; }
  .alerta svg, .mini-row > svg { color: var(--ink-300); margin-left: auto; flex: none; }
  .alerta-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
  .alerta-dot.red { background: var(--red); }
  .alerta-dot.amber { background: var(--amber); }
  .alerta-txt { flex: 1; min-width: 0; }
  .mini-row .mini-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-muted); font-size: 13.5px; }

  /* ---------- REPORTES ---------- */
  .bars { display: flex; align-items: flex-end; gap: 18px; padding: 10px 8px 4px; min-height: 170px; }
  .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; }
  .bar { width: 100%; max-width: 52px; background: var(--dinamic-green); border-radius: 7px 7px 3px 3px; opacity: 0.85; transition: opacity var(--dur-2); }
  .bar-col:last-child .bar { opacity: 1; background: var(--dinamic-green-dark); }
  .bar-col:hover .bar { opacity: 1; }
  .bar-n { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--dinamic-green-dark); }
  .bar-mes { font-size: 12px; color: var(--fg-muted); }
  .conv-list { display: flex; flex-direction: column; gap: 12px; padding: 4px 2px; }
  .conv-row { display: grid; grid-template-columns: 170px 1fr 30px; align-items: center; gap: 12px; }
  .conv-nombre { font-size: 13.5px; font-weight: 500; color: var(--dinamic-charcoal); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .conv-track { height: 9px; background: #F2EFE6; border-radius: 999px; overflow: hidden; }
  .conv-fill { height: 100%; background: var(--dinamic-green); border-radius: 999px; }
  .conv-n { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--dinamic-green-dark); text-align: right; }
  .exp-row { display: flex; gap: 10px; flex-wrap: wrap; }

  /* ---------- DRAWER ---------- */
  .a-drawer-wrap { position: fixed; inset: 0; background: rgba(20,32,28,0.38); z-index: 60; display: flex; justify-content: flex-end; animation: fadeIn 0.18s var(--ease); }
  .a-drawer { width: 440px; max-width: 92vw; background: #fff; height: 100%; display: flex; flex-direction: column; box-shadow: -24px 0 48px -24px rgba(20,32,28,0.4); animation: slideIn 0.24s var(--ease); }
  @keyframes fadeIn { from { opacity: 0; } }
  @keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
  .a-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 14px; border-bottom: 1px solid var(--hair); }
  .a-drawer__head h2 { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--dinamic-green-dark); margin: 0; }
  .a-drawer__x { border: 0; background: #F4F1EA; color: var(--ink-500); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
  .a-drawer__x:hover { background: #ECE7DA; }
  .a-drawer__body { padding: 18px 22px 30px; overflow-y: auto; }
  .d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 14px; margin-bottom: 6px; }
  .d-grid > div { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--dinamic-charcoal); }
  .d-grid svg { color: var(--dinamic-green); flex: none; margin-top: 1px; }
  .d-sub { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-300); margin: 20px 0 9px; }
  .d-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #F2EFE6; font-size: 13.5px; }
  .d-row:last-child { border-bottom: 0; }
  .d-row__txt { flex: 1; min-width: 0; color: var(--dinamic-charcoal); }
  .d-row__txt strong { font-family: var(--font-display); font-weight: 600; }
  .d-nada { color: var(--fg-muted); font-size: 13.5px; margin: 0; }
  .d-aviso { display: flex; align-items: flex-start; gap: 8px; border-radius: 10px; padding: 11px 13px; font-size: 13.5px; margin-bottom: 12px; }
  .d-aviso.red { background: #F6E3E1; color: var(--red); }
  .d-aviso.amber { background: #F5EBD3; color: #7A5A08; margin-top: 4px; }
  .d-aviso.info { background: var(--green-50, #EEF4F0); color: var(--dinamic-green-dark); }
  .d-aviso svg { flex: none; margin-top: 1px; }
  .d-form textarea { width: 100%; box-sizing: border-box; border: 1.5px solid #E2E8E5; border-radius: 10px; padding: 10px 12px; font-size: 14px; resize: vertical; outline: none; transition: border-color var(--dur-2), box-shadow var(--dur-2); }
  .d-form textarea:focus { border-color: var(--dinamic-green); box-shadow: var(--ring); }
  .d-form__row { display: flex; gap: 9px; justify-content: flex-end; margin-top: 10px; }
  .d-nota { font-size: 12.5px; color: var(--fg-muted); margin: 10px 0 0; }
  .d-estado { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

  /* ---------- VALIDADOR ---------- */
  .validador { display: flex; justify-content: center; }
  .validador-card { width: 100%; max-width: 660px; padding: 26px; }
  .validador-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
  .validador-head .pic { width: 56px; height: 56px; border-radius: 16px; background: var(--green-soft); color: var(--dinamic-green-dark); display: grid; place-items: center; flex: none; }
  .validador-head h2 { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--dinamic-green-dark); margin: 2px 0 5px; }
  .validador-head p { margin: 0; color: var(--fg-muted); font-size: 14px; text-wrap: pretty; }
  .validador-input { display: flex; align-items: center; gap: 10px; background: #F7F9F8; border: 1.5px solid #E2E8E5; border-radius: 13px; padding: 6px 6px 6px 16px; transition: border-color var(--dur-2), box-shadow var(--dur-2); }
  .validador-input:focus-within { border-color: var(--dinamic-green); box-shadow: var(--ring); background: #fff; }
  .validador-input svg { color: var(--dinamic-green); flex: none; }
  .validador-input input { border: 0; background: transparent; outline: none; flex: 1; min-width: 0; font-family: var(--font-mono, monospace); font-size: 17px; font-weight: 600; letter-spacing: 0.04em; color: var(--dinamic-charcoal); text-transform: uppercase; }
  .validador-ej { display: flex; align-items: center; gap: 8px; margin: 12px 2px 0; font-size: 13px; color: var(--fg-muted); flex-wrap: wrap; }
  .validador-ej button { border: 1px solid var(--hair); background: #fff; border-radius: 999px; padding: 4px 11px; font-family: var(--font-mono, monospace); font-size: 12.5px; font-weight: 600; color: var(--dinamic-green-dark); }
  .validador-ej button:hover { background: #F4F1EA; }
  .val-res { display: flex; gap: 13px; align-items: flex-start; border-radius: 13px; padding: 16px 17px; margin-top: 18px; }
  .val-res.green { background: var(--green-soft); color: var(--btn); }
  .val-res.red { background: #F6E3E1; color: var(--red); }
  .val-res.gray { background: #ECE9E0; color: var(--ink-700); }
  .val-res svg { flex: none; margin-top: 2px; }
  .val-res strong { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; display: block; margin-bottom: 3px; }
  .val-res p { margin: 0; font-size: 13.5px; line-height: 1.5; }
  .val-detalle { margin-top: 16px; }

  /* ---------- BLOQUEOS ---------- */
  .bloqueo-list { display: flex; flex-direction: column; gap: 12px; }
  .bloqueo-card { display: flex; align-items: center; gap: 14px; margin-bottom: 0; padding: 16px 18px; }
  .bloqueo-card.off { background: #FBF7F0; }
  .bloqueo-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .bloqueo-info strong { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--dinamic-charcoal); }
  .bloqueo-info span { font-size: 13px; color: var(--fg-muted); }
  .bloqueo-motivo { display: inline-flex; align-items: center; gap: 6px; color: var(--red) !important; font-weight: 500; }
  .bloqueo-accion { display: flex; align-items: center; gap: 12px; flex: none; }
  .bloqueo-form { width: 340px; flex: none; }

  /* ---------- CONFIGURACIÓN ---------- */
  .c-field { display: block; margin-bottom: 14px; }
  .c-field > span { display: block; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--btn); margin-bottom: 6px; }
  .c-field input { width: 100%; box-sizing: border-box; border: 1.5px solid #E2E8E5; border-radius: 10px; padding: 11px 13px; font-size: 15px; font-family: var(--font-display); font-weight: 500; color: var(--dinamic-charcoal); outline: none; transition: border-color var(--dur-2), box-shadow var(--dur-2); }
  .c-field input:focus { border-color: var(--dinamic-green); box-shadow: var(--ring); }
  .c-select { width: 100%; box-sizing: border-box; border: 1.5px solid #E2E8E5; border-radius: 10px; padding: 11px 13px; font-size: 14.5px; font-family: var(--font-display); font-weight: 500; color: var(--dinamic-charcoal); background: #fff; outline: none; transition: border-color var(--dur-2), box-shadow var(--dur-2); }
  .c-select:focus { border-color: var(--dinamic-green); box-shadow: var(--ring); }
  .c-nuevo { display: flex; gap: 9px; margin-bottom: 14px; }
  .c-nuevo input { flex: 1; min-width: 0; border: 1.5px solid #E2E8E5; border-radius: 10px; padding: 10px 13px; font-size: 14px; outline: none; transition: border-color var(--dur-2), box-shadow var(--dur-2); }
  .c-nuevo input:focus { border-color: var(--dinamic-green); box-shadow: var(--ring); }
  .c-nuevo select { border: 1.5px solid #E2E8E5; border-radius: 10px; padding: 0 11px; font-size: 14px; background: #fff; color: var(--dinamic-charcoal); outline: none; }
  .c-sector { font-size: 12px; font-weight: 600; color: var(--ink-500); background: #F4F1EA; border: 1px solid var(--hair); border-radius: 999px; padding: 3px 10px; flex: none; }
  .conv-tabla { max-height: 320px; overflow-y: auto; }

  /* ---------- CAPACIDAD TRANSPORTADORA ---------- */
  .cap-wrap { max-width: 720px; margin: 0 auto; }
  .seg { display: flex; gap: 4px; background: #F4F1EA; border: 1px solid var(--hair); border-radius: 11px; padding: 4px; }
  .seg button { flex: 1; border: 0; background: transparent; border-radius: 8px; padding: 10px 12px; font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--ink-500); transition: background var(--dur-2), color var(--dur-2); white-space: nowrap; }
  .seg button:hover { color: var(--btn); }
  .seg button.on { background: var(--btn); color: #fff; }
  .cap-vin { display: flex; align-items: center; gap: 11px; background: #F7F9F8; border: 1.5px solid #E2E8E5; border-radius: 13px; padding: 0 16px; height: 56px; transition: border-color var(--dur-2), box-shadow var(--dur-2); }
  .cap-vin:focus-within { border-color: var(--dinamic-green); box-shadow: var(--ring); background: #fff; }
  .cap-vin svg { color: var(--dinamic-green); flex: none; }
  .cap-vin input { border: 0; background: transparent; outline: none; flex: 1; min-width: 0; font-family: var(--font-mono, monospace); font-size: 18px; font-weight: 600; letter-spacing: 0.08em; color: var(--dinamic-charcoal); text-transform: uppercase; }
  .cap-vin input::placeholder { color: #A8B2AE; font-weight: 400; letter-spacing: 0.03em; }
  .cap-nota { margin: 12px 2px 0; font-size: 13px; color: var(--fg-muted); line-height: 1.5; text-wrap: pretty; }
  .cap-demo { margin: 6px 2px 0; font-size: 12px; color: var(--ink-300); }
  .prop-row { border: 1px solid var(--hair); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
  .prop-head { display: flex; align-items: center; gap: 14px; margin-bottom: 11px; }
  .prop-fact { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--btn); cursor: pointer; }
  .prop-fact input { accent-color: var(--dinamic-green); width: 16px; height: 16px; cursor: pointer; }
  .cp-motivo { font-family: var(--font-display); font-weight: 600; }
  .prop-num { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--dinamic-green-dark); flex: 1; }
  .prop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .prop-doc { grid-column: 1 / -1; }
  .prop-siigo { margin: 9px 2px 0; font-size: 12px; color: var(--dinamic-green-dark); font-weight: 500; }
  .prop-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
  .prop-grid input.bad { border-color: #D8A39D; background: #FDF8F7; }
  .prop-err { font-size: 11.5px; color: var(--red); line-height: 1.35; }
  .prop-okmsg { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--dinamic-green-dark); }
  .prop-sug { display: flex; gap: 6px; flex-wrap: wrap; }
  .prop-sug button { border: 1px solid var(--hair); background: #fff; border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 500; color: var(--dinamic-green-dark); }
  .prop-sug button:hover { background: var(--green-soft); }
  .cap-eco { margin-top: 12px; align-items: center; }
  .cap-eco .up-x { margin-left: auto; }
  .cap-motor { font-family: var(--font-mono, monospace) !important; font-size: 14.5px !important; margin: 3px 0 4px !important; letter-spacing: 0.04em; }
  .prop-eco { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; background: var(--green-soft); border-radius: 9px; padding: 9px 12px; font-size: 13px; color: var(--btn); }
  .prop-eco svg { color: var(--dinamic-green); flex: none; }
  .rev-admin-det { display: block; font-size: 12.5px; color: var(--fg-muted); margin-top: 2px; }
  .rev-file { max-width: 200px; font-size: 12.5px; }
  .rev-confirma { display: flex; align-items: flex-start; gap: 10px; background: #FBF7EC; border: 1px solid #EADFC2; border-radius: 11px; padding: 13px 15px; margin: 20px 0 16px; font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--dinamic-charcoal); cursor: pointer; line-height: 1.45; }
  .rev-confirma input { accent-color: var(--dinamic-green); width: 17px; height: 17px; margin-top: 1px; flex: none; cursor: pointer; }
  .rev-acciones { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
  .rev-acciones .a-btn.primary { min-height: 48px; }
  .prop-grid input, .prop-doc select { border: 1.5px solid #E2E8E5; border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: var(--font-display); color: var(--dinamic-charcoal); outline: none; background: #fff; min-width: 0; transition: border-color var(--dur-2), box-shadow var(--dur-2); }
  .prop-grid input:focus { border-color: var(--dinamic-green); box-shadow: var(--ring); }
  .prop-grid input { width: 100%; box-sizing: border-box; }
  .prop-doc { display: flex; gap: 7px; min-width: 0; }
  .prop-doc select { flex: none; padding: 0 8px; }
  .prop-doc input { flex: 1; }
  .cap-add { margin-bottom: 4px; }
  .up-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
  .up-zone { display: flex; align-items: center; gap: 11px; border: 1.5px dashed #D5CFC0; border-radius: 12px; padding: 13px 14px; background: #FBFAF6; transition: border-color var(--dur-2), background var(--dur-2); }
  .up-zone.drag { border-color: var(--dinamic-green); background: var(--green-soft); }
  .up-zone.has { border-style: solid; border-color: #BFD4CC; background: #F4F9F7; }
  .up-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--green-soft); color: var(--dinamic-green-dark); display: grid; place-items: center; flex: none; }
  .up-zone.has .up-ic { background: var(--dinamic-green); color: #fff; }
  .up-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  .up-txt strong { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--dinamic-charcoal); }
  .up-txt span { font-size: 12px; color: var(--fg-muted); }
  .up-file { font-family: var(--font-mono, monospace); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dinamic-green-dark) !important; font-weight: 600; }
  .up-x { border: 0; background: #F4F1EA; color: var(--ink-500); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; }
  .up-x:hover { background: #ECE7DA; color: var(--red); }
  .cap-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .cap-submit { width: 100%; min-height: 54px; font-size: 16px; border-radius: 13px; margin-top: 2px; }
  .cap-falta { text-align: center; font-size: 12.5px; color: var(--ink-300); margin: 10px 0 0; }
  .cap-error { margin: 0 0 16px; }
  .cap-exito { padding: 26px; }
  .cap-int { text-align: center; margin: 22px 0 14px; }
  .cap-int__lab { display: block; font-family: var(--font-display); font-weight: 700; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-300); margin-bottom: 6px; }
  .cap-int__num { font-family: var(--font-mono, monospace); font-weight: 700; font-size: 40px; letter-spacing: 0.06em; color: var(--dinamic-green-dark); }
  .cap-otro { width: 100%; }

  /* ---------- TARJETA DE OPERACIÓN ---------- */
  .to-pipe { display: flex; flex-direction: column; margin: 16px 0 4px; }
  .to-pipe__track { display: flex; width: 100%; }
  .to-pipe__lab { overflow-wrap: anywhere; word-break: break-word; }
  .to-pipe__cap { font-family: var(--font-display); font-weight: 600; font-size: 11.5px; color: var(--dinamic-green-dark); margin-top: 7px; line-height: 1.3; }
  .to-pipe.compact { margin: 8px 0 2px; }
  .to-pipe.compact .to-pipe__dot { width: 16px; height: 16px; }
  .to-pipe.compact .to-pipe__bar { top: 7px; }
  .rn-card__pasos { grid-column: 1; margin: 14px 2px 2px; }
  .rn-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--hair); }
  .rn-tab { background: none; border: none; padding: 9px 16px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink-300); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
  .rn-tab.on { color: var(--dinamic-green-dark); border-bottom-color: var(--dinamic-green); }
  .to-pipe__step { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
  .to-pipe__bar { position: absolute; top: 10px; right: 50%; width: 100%; height: 2px; background: #E5E0D2; }
  .to-pipe__bar.done { background: var(--dinamic-green); }
  .to-pipe__dot { width: 21px; height: 21px; border-radius: 50%; background: #E5E0D2; color: #fff; display: grid; place-items: center; z-index: 1; box-sizing: border-box; }
  .to-pipe__dot.done { background: var(--dinamic-green); }
  .to-pipe__dot.now { background: #fff; border: 2.5px solid var(--dinamic-green); box-shadow: var(--ring); }
  .to-pipe__lab { font-family: var(--font-display); font-weight: 600; font-size: 11px; color: var(--ink-300); text-align: center; line-height: 1.25; padding: 0 4px; text-wrap: balance; }
  .to-pipe__lab.now { color: var(--dinamic-green-dark); }
  .to-cand { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: transparent; padding: 11px 8px; border-bottom: 1px solid #F2EFE6; border-radius: 8px; font-size: 14px; transition: background var(--dur-1); }
  .to-cand:hover { background: #F8F6F0; }
  .to-cand:last-child { border-bottom: 0; }
  .to-cand .mini-folio { font-size: 14px; }
  .to-cand > svg { color: var(--ink-300); flex: none; }
  .to-cand__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  .to-cand__txt strong { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--dinamic-charcoal); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .to-cand__txt span { font-size: 12.5px; color: var(--fg-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .to-admin { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--hair); border-radius: 12px; padding: 12px 14px; margin: 10px 0 8px; }
  .to-admin__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .to-admin__txt strong { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--dinamic-charcoal); }
  .to-admin__txt span { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 12.5px; color: var(--fg-muted); }
  .to-admin__txt span svg { color: var(--dinamic-green); }
  .to-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
  .to-dot.green { background: var(--dinamic-green); }
  .to-dot.amber { background: var(--amber); }
  .to-dot.red { background: var(--red); }
  .to-dot.gray { background: #C9C4B6; }
  .to-ficha { border: 1px solid var(--hair); border-radius: 12px; padding: 14px 16px; margin-top: 12px; background: #FBFAF6; }
  .to-ficha__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .to-ficha__head strong { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--dinamic-green-dark); }
  .to-eco { border: 1px solid var(--hair); border-radius: 12px; padding: 6px 14px; margin-top: 12px; }
  .to-empresa { display: flex; align-items: center; gap: 9px; border: 1.5px solid #E2E8E5; border-radius: 10px; padding: 11px 13px; background: #FBFAF6; font-size: 14px; color: var(--dinamic-charcoal); }
  .to-empresa svg { color: var(--dinamic-green); flex: none; }
  .to-empresa strong { font-family: var(--font-display); font-weight: 700; color: var(--dinamic-green-dark); }
  .to-empresa span { font-size: 12px; color: var(--fg-muted); }
  .to-exito-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: center; margin: 22px 0 18px; }
  .to-exito-num { font-family: var(--font-mono, monospace); font-weight: 700; font-size: 23px; letter-spacing: 0.05em; color: var(--dinamic-green-dark); display: block; }
  @media (max-width: 700px) { .to-exito-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 700px) {
    .up-grid, .prop-grid, .cap-2col { grid-template-columns: 1fr; }
  }

  /* ---------- CAMBIO DE PROPIETARIO ---------- */
  .cp-tip { display: inline-flex; align-items: center; color: var(--ink-300); vertical-align: -2px; margin-left: 5px; cursor: help; }
  .cp-comp { display: grid; grid-template-columns: 1fr 28px 1fr; gap: 10px; align-items: stretch; margin: 4px 0 8px; }
  .cp-comp__col { border: 1px solid var(--hair); border-radius: 12px; padding: 12px 14px; background: #FBFAF6; min-width: 0; }
  .cp-comp__col.nuevo { background: #F4F9F7; border-color: #BFD4CC; }
  .cp-comp__lab { font-family: var(--font-display); font-weight: 700; font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-300); margin-bottom: 8px; }
  .cp-comp__col.nuevo .cp-comp__lab { color: var(--dinamic-green-dark); }
  .cp-comp__arrow { align-self: center; color: var(--dinamic-green); display: grid; place-items: center; }
  .cp-pers { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; font-size: 13px; color: var(--dinamic-charcoal); }
  .cp-pers svg { color: var(--dinamic-green); flex: none; margin-top: 2px; }
  .cp-pers strong { font-family: var(--font-display); font-weight: 600; display: block; }
  .cp-pers span { font-size: 12px; color: var(--fg-muted); }
  .cp-nombre strong { font-size: 15.5px; }
  @media (max-width: 700px) { .cp-comp { grid-template-columns: 1fr; } .cp-comp__arrow { transform: rotate(90deg); justify-self: center; } }

  /* ---------- TOAST ---------- */
  .a-toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: var(--dinamic-charcoal); color: #fff; font-family: var(--font-display); font-weight: 500; font-size: 14px; padding: 13px 22px; border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 100; max-width: min(560px, 88vw); text-align: center; animation: toastIn 0.22s var(--ease); }
  @keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }

  @media (max-width: 1100px) {
    .two-col { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 860px) {
    .panel { grid-template-columns: 1fr; grid-template-areas: "top" "main"; }
    .panel-side { display: none; }
    .panel-main { padding: 20px 16px 50px; }
    .bloqueo-card { flex-wrap: wrap; }
  }

  /* ============================================================
     Renovación de Tarjeta de Operación — estilos mejorados
     ============================================================ */
  .rn-wrap { max-width: 720px; margin: 0 auto; }
  .rn-back-btn { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--dinamic-green); cursor: pointer; margin-bottom: 32px; padding: 10px 0; letter-spacing: 0.01em; }
  .rn-back-btn:hover { opacity: 0.8; }

  /* Buscador — alineado a .cap-vin del resto del panel */
  .rn-search { display: flex; align-items: center; gap: 11px; background: #F7F9F8; border: 1.5px solid #E2E8E5; border-radius: 13px; padding: 0 8px 0 16px; height: 56px; margin-bottom: 22px; transition: border-color var(--dur-2), box-shadow var(--dur-2), background var(--dur-2); }
  .rn-search:focus-within { border-color: var(--dinamic-green); box-shadow: var(--ring); background: #fff; }
  .rn-search__ic { color: var(--dinamic-green); flex: none; }
  .rn-search__input { border: 0; background: transparent; outline: none; flex: 1; min-width: 0; font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--dinamic-charcoal); }
  .rn-search__input::placeholder { color: #A8B2AE; font-weight: 400; }
  .rn-search__clear { border: 0; background: transparent; color: #B0A99F; display: grid; place-items: center; padding: 6px; border-radius: 8px; cursor: pointer; flex: none; transition: background var(--dur-2), color var(--dur-2); }
  .rn-search__clear:hover { background: #EEEAE0; color: var(--dinamic-charcoal); }
  .rn-search__btn { border: 0; background: var(--btn); color: #fff; border-radius: 9px; height: 40px; padding: 0 20px; font-family: var(--font-display); font-weight: 700; font-size: 14px; cursor: pointer; flex: none; transition: background var(--dur-2); }
  .rn-search__btn:hover { background: var(--btn-press); }

  /* Resumen de urgencias */
  /* Resumen de urgencias — panel unificado elegante */
  .rn-resumen { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--hair); border-radius: 14px; box-shadow: var(--shadow-sm); margin-bottom: 16px; overflow: hidden; }
  .rn-resumen__group { display: flex; flex-direction: column; gap: 12px; padding: 20px 24px; border-right: 1px solid var(--hair); }
  .rn-resumen__group:last-child { border-right: 0; }
  .rn-resumen__group strong { font-size: 34px; font-weight: 700; color: var(--dinamic-green-dark); line-height: 1; letter-spacing: -0.03em; font-feature-settings: 'tnum'; }
  .rn-resumen__meta { display: flex; flex-direction: column; gap: 3px; }
  .rn-resumen__cat { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dinamic-charcoal); font-weight: 700; white-space: nowrap; }
  .rn-resumen__thr { font-size: 11.5px; color: var(--ink-300); font-weight: 500; padding-left: 15px; }
  .rn-resumen__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
  .rn-resumen__dot.red { background: #DC2626; }
  .rn-resumen__dot.amber { background: #F59E0B; }
  .rn-resumen__dot.yellow { background: #EAB308; }

  .rn-nota { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-muted); margin: 0 0 24px 0; line-height: 1.5; font-weight: 500; padding: 11px 14px; background: #FBFAF6; border: 1px solid var(--hair); border-radius: 11px; }
  .rn-nota svg { color: var(--dinamic-gold); flex: none; }

  .rn-lista { display: flex; flex-direction: column; gap: 14px; }
  .rn-card { padding: 14px 16px; border: 1px solid var(--hair); border-radius: 12px; background: #FBFAF6; cursor: pointer; transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; }
  .rn-card:hover { background: #fff; box-shadow: var(--shadow-md); border-color: var(--dinamic-green); }

  .rn-card__head { grid-column: 1; display: flex; align-items: center; gap: 8px; padding-bottom: 9px; margin-bottom: 2px; border-bottom: 1px solid #F2EFE6; }
  .rn-card__id { display: flex; align-items: center; gap: 6px; }
  .rn-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.15); }
  .rn-dot.red { background: #EF4444; }
  .rn-dot.amber { background: #F97316; }
  .rn-dot.yellow { background: #EAB308; }
  .rn-dot.green { background: #22C55E; }

  .rn-card__id .folio { font-family: var(--font-mono, monospace); font-weight: 600; font-size: 14px; color: var(--dinamic-green-dark); }
  .rn-card__id .placa { font-family: var(--font-mono, monospace); font-weight: 600; font-size: 12px; background: #F4F1EA; padding: 3px 8px; border-radius: 5px; letter-spacing: 0.04em; color: var(--dinamic-charcoal); border: 1px solid var(--hair); }
  .rn-card__desc { flex: 1; font-size: 13px; color: #6B6259; font-weight: 500; }

  .rn-card__body { grid-column: 1; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }

  .rn-card__vence { display: flex; flex-direction: column; gap: 3px; }
  .rn-card__vence .label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: #8B7D6F; font-weight: 700; }
  .rn-card__vence strong { font-size: 14px; font-weight: 700; color: var(--dinamic-green-dark); }
  .rn-card__vence .dias { font-size: 12px; color: var(--dinamic-green); font-weight: 600; }

  .rn-card__estado { display: flex; align-items: center; gap: 10px; }
  .rn-falta { font-size: 11px; color: #8B7D6F; font-weight: 500; }

  /* Chips de estado de seguimiento */
  .rn-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
  .rn-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
  .rn-chip.azul { background: rgba(37, 99, 235, 0.08); color: #1D4ED8; border-color: rgba(37, 99, 235, 0.18); }
  .rn-chip.ambar { background: rgba(245, 158, 11, 0.1); color: #B45309; border-color: rgba(245, 158, 11, 0.22); }
  .rn-chip.verde { background: rgba(34, 197, 94, 0.1); color: #15803D; border-color: rgba(34, 197, 94, 0.2); }
  .rn-chip.gris { background: rgba(107, 98, 89, 0.08); color: #6B6259; border-color: rgba(107, 98, 89, 0.16); }

  /* Checklist de verificación RUNT */
  .rn-runt { display: flex; flex-direction: column; }
  .rn-runt__check { display: flex; align-items: center; gap: 14px; padding: 15px 2px; border-bottom: 1px solid var(--hair); cursor: pointer; transition: opacity var(--dur-2); }
  .rn-runt__check:last-child { border-bottom: 0; }
  .rn-runt__check:hover { opacity: 0.78; }
  .rn-runt__check input { position: absolute; opacity: 0; width: 0; height: 0; }
  .rn-runt__box { width: 21px; height: 21px; border-radius: 50%; border: 1.5px solid #CFC9BC; background: #fff; display: grid; place-items: center; color: #fff; flex: none; transition: all var(--dur-2); }
  .rn-runt__box svg { opacity: 0; transform: scale(0.6); transition: opacity var(--dur-2), transform var(--dur-2); }
  .rn-runt__check.on .rn-runt__box { background: var(--dinamic-green); border-color: var(--dinamic-green); }
  .rn-runt__check.on .rn-runt__box svg { opacity: 1; transform: scale(1); }
  .rn-runt__label { font-size: 14px; font-weight: 500; color: var(--dinamic-charcoal); transition: color var(--dur-2); }
  .rn-runt__check.on .rn-runt__label { color: var(--dinamic-green-dark); font-weight: 600; }

  .rn-card__go { grid-column: 2; grid-row: 1 / -1; display: flex; align-items: center; color: rgba(60, 126, 103, 0.3); transition: color 140ms, transform 140ms; }
  .rn-card:hover .rn-card__go { color: var(--dinamic-green); transform: translateX(2px); }

  .rn-vacio { text-align: center; padding: 80px 40px; }
  .rn-vacio__ic { font-size: 72px; margin-bottom: 20px; opacity: 0.7; }
  .rn-vacio h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; color: var(--dinamic-green-dark); }
  .rn-vacio p { font-size: 14px; color: #6B6259; line-height: 1.6; }

  .rn-ficha { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 11px 24px; margin-bottom: 16px; padding: 13px 18px; background: #FBFAF6; border-radius: 12px; border: 1px solid var(--hair); }
  .rn-ficha__row { display: grid; grid-template-columns: 110px 1fr; gap: 9px; align-items: center; }
  .rn-ficha__row .label { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-300); padding-top: 1px; }
  .rn-ficha__row strong { font-size: 13.5px; color: var(--dinamic-charcoal); }
  .rn-ficha__row span { font-size: 13.5px; color: var(--dinamic-charcoal); }

  .rn-props { display: flex; flex-direction: column; gap: 6px; }
  .rn-prop { font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--dinamic-charcoal); }
  .rn-prop__doc { color: #8B7D6F; font-size: 13px; font-weight: 400; }

  .rn-to-vigente { display: grid; grid-template-columns: 1fr 1fr 1fr; background: #fff; border: 1px solid var(--hair); border-radius: 12px; margin-top: 16px; overflow: hidden; }
  .rn-to-vigente__item { display: flex; flex-direction: column; gap: 7px; padding: 18px 22px; border-right: 1px solid var(--hair); }
  .rn-to-vigente__item:last-child { border-right: 0; }
  .rn-to-vigente__item .label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-300); font-weight: 700; }
  .rn-to-vigente__item strong { font-size: 17px; font-weight: 700; color: var(--dinamic-green-dark); line-height: 1.2; letter-spacing: -0.01em; }
  .rn-to-vigente__item .dias { font-size: 11.5px; color: var(--fg-muted); font-weight: 500; margin-top: 1px; }
  .rn-objetivo { grid-column: auto; background: var(--green-soft); padding: 18px 22px; border-radius: 0; border-left: 0; }
  .rn-objetivo .label { color: var(--dinamic-green); }
  .rn-objetivo strong { color: var(--dinamic-green-dark); }
  .rn-objetivo .dias { color: var(--dinamic-green); font-weight: 600; }

  .rn-expl { font-size: 14px; color: #555; margin-bottom: 18px; line-height: 1.7; font-weight: 500; }

  .rn-contrato-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
  .rn-contrato-preview__item { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: #FBFAF6; border: 1px solid var(--hair); border-radius: 10px; }
  .rn-contrato-preview__item .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-300); font-weight: 700; }
  .rn-contrato-preview__item strong { font-size: 15px; font-weight: 700; color: var(--dinamic-green-dark); }

  .rn-envio { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 11px 14px; background: var(--green-soft); border-radius: 10px; font-size: 13.5px; color: var(--dinamic-charcoal); }
  .rn-envio svg { color: var(--dinamic-green); flex: none; }
  .rn-envio strong { font-weight: 700; color: var(--dinamic-green-dark); }

  .rn-desc-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
  .rn-desc-acciones .a-btn { text-decoration: none; }

  .rn-descarga-link { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--dinamic-green); margin-top: 14px; font-weight: 600; }
  .rn-descarga-link a { color: var(--dinamic-green); text-decoration: none; }
  .rn-descarga-link a:hover { text-decoration: underline; }

  .rn-docs { display: flex; flex-direction: column; gap: 20px; }

  .up-zone { padding: 12px 16px; border: 2px dashed #E2E1D6; border-radius: 12px; background: #F6F2E9; display: flex; flex-direction: row; align-items: center; gap: 10px; transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1); cursor: pointer; }
  .up-zone:hover { border-color: #D4CFBF; background: #EFE9DC; }
  .up-zone.drag { border-color: var(--dinamic-green); border-width: 2px; background: rgba(60, 126, 103, 0.08); }
  .up-zone.has { border-style: solid; border-color: var(--dinamic-green); background: rgba(34, 197, 94, 0.08); }
  .up-ic { display: flex; color: #7A7560; flex-shrink: 0; }
  .up-ic svg { stroke: var(--dinamic-green); stroke-width: 1.75; }
  .up-zone.has .up-ic svg { stroke: #16A34A; }
  .up-txt { display: flex; flex-direction: column; gap: 3px; text-align: left; flex: 1; min-width: 0; }
  .up-txt strong { font-size: 13px; font-weight: 600; color: var(--dinamic-charcoal); }
  .up-txt span { font-size: 11px; color: #7A7560; line-height: 1.3; }
  .up-file { display: inline; padding: 0; background: none; border-radius: 0; color: var(--dinamic-green); font-weight: 600; font-family: monospace; font-size: 11px; word-break: break-all; }
  .up-x { padding: 4px; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; color: #DC2626; border-radius: 4px; transition: background 120ms; flex-shrink: 0; }
  .up-x:hover { background: rgba(220, 38, 38, 0.08); }
