/* ================================================
   UNES SHOPPING — Components Library
   Cards, Buttons, Forms, Tables, Badges, etc.
   ================================================ */

/* ── BUTTONS — Neumorphism ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px;
  border-radius: var(--neu-r-md);
  font-size: 13px; font-weight: 700;
  cursor: pointer; border: none;
  font-family: inherit;
  background: var(--neu-bg);
  color: var(--text-2);
  box-shadow: var(--neu-raised);
  transition: var(--neu-t), color var(--t-fast);
  white-space: nowrap;
  position: relative;
  overflow: visible;
}
/* Sin shimmer overlays — pureza neumorfíca */
.btn::before, .btn::after { display: none; }

.btn:hover {
  box-shadow: var(--neu-raised-hover);
  color: var(--text);
}
.btn:active {
  box-shadow: var(--neu-inset);
  transform: scale(.98);
}
.btn:focus-visible {
  outline: none;
  box-shadow:
    var(--neu-raised),
    0 0 0 2px rgba(0,180,216,.55),
    0 0 12px rgba(0,180,216,.30);
}
.btn .icon { font-size: 16px; }

/* ── btn-primary: raised + acento cyan UNES ── */
.btn-primary {
  background: var(--neu-bg);
  color: var(--cyan, #00b4d8);
  box-shadow:
    var(--neu-raised),
    0 0 10px rgba(0,180,216,.18);
  font-weight: 800;
}
.btn-primary:hover {
  box-shadow:
    var(--neu-raised-hover),
    0 0 18px rgba(0,180,216,.35);
  color: var(--cyan-dark, #0088a8);
}
.btn-primary:active {
  /* Pressed INTO the surface + cyan glow */
  box-shadow:
    var(--neu-inset),
    0 0 8px rgba(0,180,216,.22);
  color: var(--cyan, #00b4d8);
}

/* ── btn-glow: alias de primary en login (mismo estilo) ── */
.btn-glow {
  background: var(--neu-bg);
  color: var(--neu-accent-dark, #5a7ab5);
  box-shadow: var(--neu-raised);
  border-radius: var(--neu-r-md);
}
.btn-glow:hover {
  box-shadow: var(--neu-raised-hover);
  color: var(--primary-dark);
}
.btn-glow:active { box-shadow: var(--neu-inset); }

/* ── btn-outline: inset suave ── */
.btn-outline {
  background: var(--neu-bg);
  color: var(--primary);
  box-shadow: var(--neu-inset);
}
.btn-outline:hover {
  box-shadow: var(--shadow-sm);
  color: var(--primary-dark);
}
.btn-outline:active { box-shadow: var(--neu-inset); }

/* ── btn-surface: flat levemente raised ── */
.btn-surface {
  background: var(--neu-bg);
  color: var(--text-2);
  box-shadow: var(--shadow-xs);
}
.btn-surface:hover { box-shadow: var(--shadow-sm); color: var(--text); }
.btn-surface:active { box-shadow: var(--neu-inset); }

/* ── btn-danger: acento rojo con raised ── */
.btn-danger {
  background: var(--neu-bg);
  color: #dc2626;
  box-shadow: var(--neu-raised);
}
.btn-danger:hover {
  box-shadow: var(--neu-raised-hover);
  color: #b91c1c;
}
.btn-danger:active { box-shadow: var(--neu-inset); }

/* ── btn-success: acento verde con raised ── */
.btn-success {
  background: var(--neu-bg);
  color: #166534;
  box-shadow: var(--neu-raised);
}
.btn-success:hover {
  box-shadow: var(--neu-raised-hover);
  color: #14532d;
}
.btn-success:active { box-shadow: var(--neu-inset); }

.btn-sm { padding: 7px 14px; font-size: 12px; border-radius: var(--neu-r-sm); }
.btn-sm .icon { font-size: 14px; }
.btn-xs { padding: 5px 10px; font-size: 11px; border-radius: var(--r-sm); }
.btn-xs .icon { font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 14px; border-radius: var(--neu-r-lg); }
.btn-lg .icon { font-size: 18px; }

.btn-icon {
  width: 38px; height: 38px; padding: 0;
  border-radius: var(--neu-r-md);
  display: flex; align-items: center; justify-content: center;
}
.btn-icon .icon { font-size: 18px; }
.btn-xs.btn-icon { width: 30px; height: 30px; border-radius: var(--neu-r-sm); }

/* Circular (reproductor) */
.btn-circle {
  border-radius: 50% !important;
  padding: 0;
}
.btn-circle.btn-icon { width: 48px; height: 48px; }
.btn-circle.btn-icon.lg { width: 60px; height: 60px; }

.btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ── CARDS — Neumorphism ── */
.card {
  background: var(--neu-bg);
  border-radius: var(--neu-r-lg);
  border: none;
  box-shadow: var(--neu-raised);
  transition: box-shadow var(--t-base);
  overflow: hidden;
}

.card-hover {
  transition: var(--neu-t);
}
.card-hover:hover {
  box-shadow: var(--neu-raised-hover);
}

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
}
.card-header h3 { font-size: 15px; font-weight: 800; color: var(--text); }

.card-body { padding: 20px 22px; }

/* ── KPI CARDS — Neumorphism ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.kpi-card {
  background: var(--neu-bg);
  border-radius: var(--neu-r-lg);
  border: none;
  box-shadow: var(--neu-raised);
  padding: 22px 18px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
  transition: var(--neu-t);
  animation: slideUp .3s both;
}
.kpi-card:hover {
  box-shadow:
    var(--neu-raised-hover),
    0 0 16px rgba(0,180,216,.18);
}
.kpi-card.active {
  /* Inset = seleccionado + cyan highlight */
  box-shadow:
    var(--neu-inset),
    0 0 12px rgba(0,180,216,.22);
  border-left: 3px solid rgba(0,180,216,.55);
}

.kpi-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  background: var(--neu-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.kpi-icon .icon { font-size: 26px; }

.kpi-body .kpi-label { font-size: 11.5px; color: var(--text-2); font-weight: 600; margin-bottom: 3px; }
.kpi-body .kpi-num   {
  font-size: 32px; font-weight: 900;
  color: var(--text); letter-spacing: -1.5px; line-height: 1;
}
.kpi-body .kpi-sub   { font-size: 10.5px; color: var(--text-3); margin-top: 4px; }

/* Themes — solo color del ícono, sin fondos extra */
.kpi-pending  .kpi-icon .icon { color: #f59e0b; }
.kpi-approved .kpi-icon .icon { color: #22c55e; }
.kpi-review   .kpi-icon .icon { color: var(--primary); }
.kpi-rejected .kpi-icon .icon { color: #ef4444; }
.kpi-delivered .kpi-icon .icon { color: #0ea5e9; }

/* ── BADGES — Neumorphism pill raised ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px;
  border-radius: var(--r-full);
  font-size: 11px; font-weight: 700;
  border: none;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  background: var(--neu-bg);
}
.badge .icon { font-size: 12px; }

.badge-pending    { color: var(--pending-color);  }
.badge-review     { color: var(--review-color);   }
.badge-approved,
.badge-aprobada   { color: var(--approved-color); }
.badge-rejected,
.badge-rechazada  { color: var(--rejected-color); }
.badge-delivered,
.badge-entregada  { color: var(--delivered-color); }
.badge-special    { color: #6d28d9; }
.badge-material   { color: var(--review-color);   }
.badge-compra     { color: #92640a; }

/* ── FORMS — Neumorphism inset ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 11.5px; font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase; letter-spacing: .06em;
}
.form-label .req { color: #dc2626; margin-left: 2px; }

.form-control {
  padding: 11px 14px;
  border: none;
  border-radius: var(--neu-r-md);
  font-size: 13.5px; color: var(--text);
  background: var(--neu-bg);
  /* Inset = campo hundido en la superficie */
  box-shadow: var(--neu-inset);
  outline: none;
  transition: box-shadow var(--t-fast);
  font-family: inherit;
}
.form-control:hover:not(:disabled):not(:focus) {
  box-shadow: var(--neu-inset);
}
.form-control:focus {
  /* Inset focus con anillo CYAN */
  box-shadow: var(--neu-inset-focus);
}
.form-control:disabled { opacity: .5; cursor: not-allowed; }
.form-control.error {
  box-shadow:
    inset -4px -4px 9px var(--neu-light),
    inset  4px  4px 9px var(--neu-shadow),
    0 0 0 2px rgba(220,38,38,.4);
}

/* Selects — flecha personalizada neumorfica */
select.form-control {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235a6a85' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}
select.form-control:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235a7ab5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

[data-theme="dark"] select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238a9ab8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

textarea.form-control { resize: vertical; min-height: 90px; }

.form-hint { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.form-error { font-size: 11.5px; color: #dc2626; margin-top: 2px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ── TABLES — Neumorphism ── */
.table-wrap {
  overflow-x: auto;
  border-radius: 0 0 var(--neu-r-lg) var(--neu-r-lg);
  /* Inset track para la tabla */
  box-shadow: var(--neu-inset-deep);
  border-radius: var(--neu-r-lg);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-3);
  background: var(--neu-bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
  background: var(--neu-bg);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr {
  transition: box-shadow var(--t-fast), color var(--t-fast);
}
.data-table tbody tr:hover td {
  background: var(--surface-2);
  color: var(--text);
}

/* ── Fila seleccionada — inset ── */
.data-table tbody tr.is-selected td {
  background: var(--surface-2);
}
.data-table tbody tr.is-selected:hover td {
  background: var(--surface-3);
}

/* ── Bulk checkbox ── */
.bulk-checkbox {
  width: 16px; height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
  border-radius: 3px;
  display: block;
  margin: 0 auto;
  flex-shrink: 0;
}

/* ── Bulk toolbar — raised ── */
.bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  margin-bottom: 10px;
  background: var(--neu-bg);
  border: none;
  border-radius: var(--neu-r-lg);
  box-shadow: var(--neu-raised);
  position: sticky;
  top: 70px;
  z-index: 50;
  flex-wrap: wrap;
}
.bulk-toolbar-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}
.bulk-toolbar-info strong {
  font-weight: 700;
  color: var(--primary);
}
.bulk-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Empty state */
.table-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
}
.table-empty .icon {
  font-size: 48px;
  color: var(--border);
  display: block;
  margin: 0 auto 12px;
}
.table-empty p { font-size: 14px; font-weight: 600; }
.table-empty span { font-size: 12px; margin-top: 4px; display: block; }

/* ── SOLICITANTE CELL ── */
.sol-cell { display: flex; align-items: center; gap: 10px; }
.sol-cell-info { min-width: 0; }
.sol-cell-name {
  font-size: 13px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sol-cell-folio {
  font-size: 10.5px; font-family: monospace;
  color: var(--primary); font-weight: 700; margin-top: 1px;
}

/* ── AREA AVATAR ── */
.area-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: 2.5px solid;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.area-avatar:hover { transform: scale(1.1); box-shadow: 0 4px 16px rgba(0,0,0,.28); }
.area-avatar img, .area-avatar svg {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.area-avatar.sm { width: 32px; height: 32px; }

/* ── MOTIVO RECHAZO CHIP ── */
.motivo-chip {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 5px; padding: 3px 8px;
  background: var(--rejected-bg);
  border: 1px solid var(--rejected-border);
  border-radius: var(--r-sm);
  font-size: 10.5px; font-weight: 700;
  color: var(--rejected-color);
  max-width: 220px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.motivo-chip .icon { font-size: 12px; flex-shrink: 0; }

/* ── MODAL — Neumorphism ── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(30,36,51,.55);
  z-index: var(--z-overlay);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
  animation: fadeIn .18s ease;
}

.modal {
  background: var(--neu-bg);
  border-radius: var(--neu-r-xl);
  box-shadow:
    /* Fuerte raised para el modal sobre backdrop */
    -12px -12px 28px var(--neu-light),
     12px  12px 28px var(--neu-shadow),
     0     0    0   1px var(--border);
  width: 100%; max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn .22s cubic-bezier(.4,0,.2,1);
}

.modal-sm { max-width: 380px; }
.modal-lg { max-width: 700px; }
.modal-xl { max-width: 900px; }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.modal-header h4 { font-size: 17px; font-weight: 800; color: var(--text); }
.modal-close {
  width: 34px; height: 34px;
  border-radius: var(--neu-r-md);
  background: var(--neu-bg);
  border: none;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  transition: var(--neu-t), color var(--t-fast);
}
.modal-close:hover { box-shadow: var(--shadow-md); color: #dc2626; }
.modal-close:active { box-shadow: var(--neu-inset); }
.modal-close .icon { font-size: 18px; }

.modal-body { padding: 22px 24px; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
}

/* ── TOAST — Neumorphism raised ── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: var(--neu-bg);
  border-radius: var(--neu-r-lg);
  box-shadow:
    -8px -8px 18px var(--neu-light),
     8px  8px 18px var(--neu-shadow);
  border-left: 4px solid var(--primary);
  font-size: 13px; font-weight: 600; color: var(--text);
  min-width: 260px; max-width: 360px;
  pointer-events: all;
  animation: toastIn .3s cubic-bezier(.4,0,.2,1) both;
}
.toast.exit { animation: toastOut .25s ease forwards; }
.toast .icon { font-size: 18px; flex-shrink: 0; }
.toast-success { border-left-color: #22c55e; }
.toast-success .icon { color: #22c55e; }
.toast-error   { border-left-color: #ef4444; }
.toast-error   .icon { color: #ef4444; }
.toast-warning { border-left-color: #f59e0b; }
.toast-warning .icon { color: #f59e0b; }
.toast-info    { border-left-color: var(--primary); }
.toast-info    .icon { color: var(--primary); }

/* ── NOTIFICATION PANEL ── */
.notif-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: calc(var(--z-modal) - 1);
  backdrop-filter: blur(2px);
  animation: fadeIn .18s ease;
}

.notif-panel {
  position: fixed; top: 0; right: 0;
  width: 380px; height: 100vh;
  background: var(--neu-bg);
  box-shadow:
    -10px 0 30px var(--neu-shadow),
    -4px 0  10px var(--neu-light);
  z-index: var(--z-modal);
  display: flex; flex-direction: column;
  animation: panelSlideIn .3s cubic-bezier(.4,0,.2,1);
}
@media (max-width: 500px) { .notif-panel { width: 100%; } }

.notif-panel-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--border-light);
}
.notif-panel-title { font-size: 17px; font-weight: 900; color: var(--text); }
.notif-panel-sub   { font-size: 11px; color: var(--text-3); margin-top: 3px; }

.notif-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
}
.ntab {
  flex: 1; padding: 11px;
  font-size: 12px; font-weight: 700;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  transition: all var(--t-fast);
  text-align: center;
}
.ntab:hover { color: var(--primary); }
.ntab.active { color: var(--primary); border-bottom-color: var(--primary); }

.notif-list { flex: 1; overflow-y: auto; scrollbar-width: thin; }

.notif-item {
  display: flex; gap: 12px; padding: 14px 22px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background var(--t-fast);
  animation: slideLeft .2s both;
  position: relative;
}
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: var(--surface-2); }
.notif-item.unread::before {
  content: ''; position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%; background: var(--primary);
}

.notif-icon-wrap {
  width: 38px; height: 38px;
  border-radius: var(--neu-r-md);
  background: var(--neu-bg);
  border: none;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.notif-body .notif-title { font-size: 12.5px; font-weight: 700; color: var(--text); }
.notif-body .notif-sub   { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.notif-body .notif-time  { font-size: 10px; color: var(--text-3); font-weight: 600; margin-top: 4px; }

.notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0; align-self: center;
  box-shadow: 0 0 0 2px rgba(30,79,216,.2);
}

.notif-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 200px; gap: 10px; color: var(--text-3);
}
.notif-empty .icon { font-size: 44px; color: var(--border); }
.notif-empty p { font-size: 13px; font-weight: 600; }

.notif-panel-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border-light);
  display: flex; gap: 10px; flex-wrap: wrap;
}

/* ── SPINNER — Neumorphism ── */
.spinner {
  width: 22px; height: 22px;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .65s linear infinite;
  display: inline-block;
  flex-shrink: 0;
  /* Raised circular */
  box-shadow: var(--shadow-xs);
}
.spinner.lg { width: 36px; height: 36px; border-width: 3.5px; }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; }

/* ── PAGE LOADER ── */
.page-loader {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 60vh; gap: 16px; color: var(--text-3);
}
.page-loader .loader-dots {
  display: flex; gap: 8px;
}
.loader-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
  animation: wave .9s ease-in-out infinite;
}
.loader-dot:nth-child(2) { animation-delay: .15s; }
.loader-dot:nth-child(3) { animation-delay: .30s; }

/* ── SEARCH BAR — Neumorphism inset ── */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  border: none;
  border-radius: var(--neu-r-pill);
  background: var(--neu-bg);
  box-shadow: var(--neu-inset);
  transition: box-shadow var(--t-fast);
}
.search-bar:focus-within {
  box-shadow: var(--neu-inset-focus);
}
.search-bar .icon { color: var(--text-3); font-size: 18px; flex-shrink: 0; }
.search-bar input {
  flex: 1; padding: 10px 0;
  border: none; background: transparent;
  font-size: 13px; color: var(--text);
  outline: none;
}

/* ── PILL TABS — Neumorphism ── */
.pill-tabs {
  display: flex; gap: 8px;
  flex-wrap: wrap;
}
.pill-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  border-radius: var(--r-full);
  font-size: 13px; font-weight: 600;
  color: var(--text-3);
  background: var(--neu-bg);
  border: none;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: var(--neu-t), color var(--t-fast);
}
.pill-tab:hover { box-shadow: var(--shadow-sm); color: var(--cyan, #00b4d8); }
.pill-tab.active {
  /* Inset = pestaña activa hundida + cyan accent */
  box-shadow: var(--neu-inset);
  color: var(--cyan, #00b4d8);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0,180,216,.25);
}
.pill-tab .icon { font-size: 15px; }

/* ── PAGINATION — Neumorphism ── */
.pagination {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  justify-content: flex-end;
}
.pag-info { font-size: 12px; color: var(--text-3); flex: 1; font-weight: 600; }
.pag-btn {
  width: 34px; height: 34px;
  border-radius: var(--neu-r-sm);
  background: var(--neu-bg);
  border: none;
  box-shadow: var(--shadow-xs);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: var(--neu-t), color var(--t-fast);
  font-size: 11px; font-weight: 700;
}
.pag-btn:hover:not(:disabled) { box-shadow: var(--shadow-sm); color: var(--cyan, #00b4d8); }
.pag-btn:active:not(:disabled) { box-shadow: var(--neu-inset); }
.pag-btn:disabled { opacity: .4; cursor: not-allowed; }
.pag-btn.active {
  /* Inset = página activa hundida + cyan */
  box-shadow: var(--neu-inset);
  color: var(--cyan, #00b4d8);
  font-weight: 800;
  text-shadow: 0 0 8px rgba(0,180,216,.25);
}
.pag-btn .icon  { font-size: 18px; }

/* ── TOGGLE SWITCH — Neumorphism ── */
.toggle-switch {
  width: 48px; height: 26px;
  border-radius: var(--r-full);
  background: var(--neu-bg);
  box-shadow: var(--neu-inset);
  border: none; cursor: pointer;
  position: relative;
  transition: var(--neu-t);
  flex-shrink: 0;
}
.toggle-switch::after {
  content: ''; position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%; background: var(--neu-bg);
  transition: transform var(--t-base);
  /* Thumb raised */
  box-shadow: var(--shadow-sm);
}
.toggle-switch.on {
  box-shadow:
    inset -4px -4px 9px var(--neu-light),
    inset  4px  4px 9px rgba(0,140,180,.55),
    inset 0 0 10px rgba(0,180,216,.15);
}
.toggle-switch.on::after {
  transform: translateX(22px);
  background: var(--cyan, #00b4d8);
  box-shadow:
    var(--shadow-sm),
    0 0 8px rgba(0,180,216,.55);
}

/* ── SECTION HEADER ── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}

/* ── FILTER ROW — Neumorphism ── */
.filter-row {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.filter-row select {
  padding: 9px 34px 9px 12px;
  border: none;
  border-radius: var(--neu-r-md);
  font-size: 12.5px; color: var(--text);
  background: var(--neu-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6a85' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 14px;
  appearance: none; -webkit-appearance: none;
  cursor: pointer;
  box-shadow: var(--neu-inset);
  transition: box-shadow var(--t-fast);
  font-family: inherit;
  outline: none;
}
.filter-row select:focus {
  box-shadow: var(--neu-inset-focus);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a7ab5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
[data-theme="dark"] .filter-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a9ab8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* ── STAT CARD — Neumorphism ── */
.stat-card {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px;
  border-radius: var(--neu-r-md);
  background: var(--neu-bg);
  border: none;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--neu-t);
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card.active {
  box-shadow: var(--neu-inset);
  color: var(--primary);
}
.stat-num {
  font-size: 24px; font-weight: 900; color: var(--text); letter-spacing: -1px;
}
.stat-label { font-size: 11.5px; color: var(--text-3); font-weight: 600; }

/* ── TIMELINE ── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-step {
  display: flex; gap: 14px;
  position: relative;
  padding-bottom: 20px;
  animation: slideLeft .25s both;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step:last-child .tl-line { display: none; }

.tl-dot-wrap {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0; width: 32px;
}
.tl-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  border: none;
  background: var(--neu-bg);
  box-shadow: var(--shadow-sm);
  transition: var(--neu-t);
}
.tl-dot.done   { color: #16a34a; box-shadow: var(--neu-raised); }
.tl-dot.active { background: var(--review-bg); border-color: var(--primary); color: var(--primary); animation: pulse 2s infinite; }
.tl-dot.failed { background: var(--rejected-bg); border-color: var(--rejected-border); color: var(--rejected-color); }
.tl-dot .icon  { font-size: 16px; }

.tl-line {
  width: 2px; flex: 1; min-height: 20px;
  background: var(--border-light);
  margin-top: 4px;
}
.tl-line.done { background: #86efac; }

.tl-content { flex: 1; padding-top: 5px; }
.tl-content strong { font-size: 13px; font-weight: 800; color: var(--text); display: block; }
.tl-content span   { font-size: 11.5px; color: var(--text-3); margin-top: 2px; display: block; }

/* ── INFO ALERT ── */
.alert {
  display: flex; gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1px solid;
  font-size: 12.5px;
}
.alert .icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-info    { background: var(--review-bg);    border-color: var(--review-border);    color: var(--review-color); }
.alert-success { background: var(--approved-bg);  border-color: var(--approved-border);  color: var(--approved-color); }
.alert-warning { background: var(--pending-bg);   border-color: var(--pending-border);   color: var(--pending-color); }
.alert-danger  { background: var(--rejected-bg);  border-color: var(--rejected-border);  color: var(--rejected-color); }

/* ── EMPTY STATE FULL PAGE ── */
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 64px 24px; gap: 14px;
  text-align: center;
}
.empty-state .icon { font-size: 64px; color: var(--border); display: block; }
.empty-state h3 { font-size: 17px; font-weight: 800; color: var(--text); }
.empty-state p  { font-size: 13px; color: var(--text-3); max-width: 320px; }
/* Imágenes Aquila en empty-state — neumórfico redondeado */
.empty-state img {
  border-radius: 50%;
  box-shadow: var(--neu-raised), 0 0 16px rgba(0,180,216,.18);
  transition: var(--neu-t);
}
.empty-state img:hover {
  box-shadow: var(--neu-raised-hover), 0 0 24px rgba(0,180,216,.30);
  transform: scale(1.04);
}

/* ── CYAN GLOW — Clases utilitarias ── */
.glow-cyan    { box-shadow: var(--cyan-glow-md, 0 0 16px rgba(0,180,216,.40)); }
.glow-cyan-sm { box-shadow: var(--cyan-glow-sm, 0 0 8px  rgba(0,180,216,.45)); }
.glow-cyan-lg { box-shadow: var(--cyan-glow-lg, 0 0 24px rgba(0,180,216,.50)); }
.text-cyan    { color: var(--cyan, #00b4d8); text-shadow: 0 0 10px rgba(0,180,216,.30); }
.border-cyan  { border-color: rgba(0,180,216,.45) !important; }
.ring-cyan    { box-shadow: var(--cyan-glow-ring, 0 0 0 2px rgba(0,180,216,.55)); }

/* ── RESPONSIVE UTILITIES ── */
@media (max-width: 768px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-row { flex-direction: column; align-items: stretch; }
  .form-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════
   LOGIN — Tarjetas de perfil
   ════════════════════════════════════════════════ */
.login-profile-card {
  /* base definida inline, aquí sólo focusable */
  outline-offset: 3px;
}
.login-profile-card:focus-visible {
  outline: 2.5px solid var(--primary);
}

/* ════════════════════════════════════════════════
   COMPROBANTE DE IMPRESIÓN — Ticket PDF-style
   ════════════════════════════════════════════════ */
.comprobante-wrap {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--neu-bg);
}

/* Cabecera institucional */
.comp-header {
  background: linear-gradient(135deg, #1340b8 0%, #2563eb 55%, #6344e8 100%);
  border-radius: 14px;
  padding: 22px 26px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 6px 28px rgba(37,99,235,.35);
}
.comp-header::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.comp-header-left { position: relative; z-index: 1; }
.comp-header-logo {
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
}
.comp-header-logo-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(255,255,255,.2); border: 1.5px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  flex-shrink: 0;
}
.comp-header-logo-icon .material-symbols-outlined {
  font-size: 24px; color: #fff;
  font-variation-settings: 'FILL' 1,'wght' 700,'GRAD' 0,'opsz' 28;
}
.comp-header-org { color: #fff; }
.comp-header-org strong { display: block; font-size: 16px; font-weight: 900; letter-spacing: -.2px; }
.comp-header-org span  { display: block; font-size: 10.5px; opacity: .7; font-weight: 500; margin-top: 1px; }

.comp-header-doc { position: relative; z-index: 1; text-align: right; }
.comp-folio {
  font-family: 'Courier New', monospace;
  font-size: 13px; font-weight: 800;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff; padding: 5px 12px;
  border-radius: 8px;
  letter-spacing: .04em;
  display: inline-block;
  margin-bottom: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.comp-fecha-emision {
  font-size: 10px; color: rgba(255,255,255,.65); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  display: block; margin-bottom: 6px;
}

/* Sección de tipo / banner */
.comp-tipo-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  background: linear-gradient(90deg, rgba(37,99,235,.08) 0%, rgba(99,68,232,.05) 100%);
  border-left: 4px solid #2563eb;
  border-radius: 0 10px 10px 0;
  margin-bottom: 18px;
}
.comp-tipo-banner .material-symbols-outlined {
  font-size: 22px; color: #2563eb;
  font-variation-settings: 'FILL' 1,'wght' 700,'GRAD' 0,'opsz' 24;
}
.comp-tipo-text strong { display: block; font-size: 13.5px; font-weight: 800; color: #1a2340; }
.comp-tipo-text span   { display: block; font-size: 11px; color: #5c6e8a; margin-top: 1px; }

/* Grid de datos del solicitante */
.comp-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.comp-data-cell {
  background: var(--neu-bg);
  border: none;
  box-shadow: var(--shadow-xs);
  border-radius: var(--neu-r-md);
  padding: 10px 14px;
  position: relative;
  overflow: hidden;
}
.comp-data-cell::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, #2563eb, #6344e8);
  border-radius: 10px 0 0 10px;
}
.comp-data-label {
  font-size: 9.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  color: #8b96b8; margin-bottom: 4px;
}
.comp-data-value {
  font-size: 13px; font-weight: 700; color: #0f1c3a;
  line-height: 1.3;
}

/* Tabla de artículos */
.comp-items-title {
  font-size: 12px; font-weight: 800; color: #1340b8;
  text-transform: uppercase; letter-spacing: .07em;
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 2px solid #e2e8f8;
}
.comp-items-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 16px;
  background: linear-gradient(180deg, #2563eb, #6344e8);
  border-radius: 2px;
}
.comp-item-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--neu-r-md);
  margin-bottom: 6px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  background: var(--neu-bg);
  border: none;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t-fast);
}
.comp-item-row:last-child { margin-bottom: 0; }
.comp-item-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #6344e8);
  color: #fff; font-size: 9.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.comp-item-row .material-symbols-outlined {
  font-size: 15px; color: #2563eb; flex-shrink: 0;
  font-variation-settings: 'FILL' 1,'wght' 600,'GRAD' 0,'opsz' 20;
}

/* Motivo rechazo en comprobante */
.comp-rechazo {
  display: flex; gap: 12px;
  padding: 14px 16px;
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 10px;
  margin-top: 16px;
}
.comp-rechazo .material-symbols-outlined {
  font-size: 22px; color: #dc2626; flex-shrink: 0;
  font-variation-settings: 'FILL' 1,'wght' 700,'GRAD' 0,'opsz' 24;
}
.comp-rechazo-title { font-size: 12px; font-weight: 800; color: #991b1b; margin-bottom: 4px; }
.comp-rechazo-text  { font-size: 13px; color: #7f1d1d; }

/* ── SECCIÓN DE FIRMA ── */
.comp-firma-section {
  margin-top: 28px;
  padding: 22px 20px 20px;
  border-top: 2px dashed #c7d2f0;
  border-bottom: 1px solid #e2e8f8;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background: linear-gradient(135deg, rgba(37,99,235,.02) 0%, rgba(99,68,232,.02) 100%);
  border-radius: 0 0 10px 10px;
  position: relative;
  overflow: hidden;
}
/* Sello-watermark detrás del área de firmas */
.comp-firma-section::before {
  content: 'UNES';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
  font-size: 88px; font-weight: 900; letter-spacing: 6px;
  color: rgba(37,99,235,.04);
  pointer-events: none; white-space: nowrap;
  font-family: 'Inter', system-ui, sans-serif;
}
.comp-firma-section-title {
  grid-column: 1 / -1;
  font-size: 9.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
  color: #8b96b8;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: -8px;
}
.comp-firma-section-title::before,
.comp-firma-section-title::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, #c7d2f0, transparent);
}
.comp-firma-box {
  display: flex; flex-direction: column; align-items: center;
  gap: 0; position: relative;
}
.comp-firma-area {
  width: 100%; min-height: 64px;
  margin-bottom: 10px;
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 6px;
}
.comp-firma-area::after {
  content: '';
  position: absolute; bottom: 0; left: 10%; right: 10%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #94a3c0 20%, #94a3c0 80%, transparent);
}
/* Firma SVG decorativa (cuando hay aprobación) */
.comp-firma-area-approved {
  background: linear-gradient(135deg, rgba(37,99,235,.05), rgba(99,68,232,.05));
  border: 1.5px dashed #93c5fd;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  min-height: 64px;
  margin-bottom: 10px;
  width: 100%;
  position: relative;
}
.comp-firma-area-approved::before {
  content: 'FIRMADO';
  position: absolute; bottom: 4px; right: 8px;
  font-size: 7.5px; font-weight: 900; letter-spacing: .1em;
  color: rgba(19,64,184,.25); text-transform: uppercase;
}
.comp-firma-area-approved svg {
  opacity: .72;
}
.comp-firma-label {
  font-size: 11.5px; font-weight: 700; color: #1a2340;
  text-align: center; letter-spacing: -.1px;
}
.comp-firma-sublabel {
  font-size: 9.5px; color: #8b96b8;
  text-align: center; margin-top: 2px; font-weight: 500;
}
.comp-firma-stamp {
  position: absolute; right: 6px; bottom: 4px;
}

/* Sello de aprobación */
.comp-sello {
  margin-top: 20px;
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
}
.comp-sello-inner {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 24px;
  border: 2.5px solid;
  border-radius: 14px;
  font-size: 12.5px; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase;
  position: relative; overflow: hidden;
  transform: rotate(-1.5deg);
}
.comp-sello-inner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.3) 0%, transparent 60%);
  pointer-events: none;
}
.comp-sello-approved {
  border-color: #16a34a;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  color: #15803d;
  box-shadow: 0 0 18px rgba(22,163,74,.22), 0 4px 12px rgba(22,163,74,.14);
}
.comp-sello-pending {
  border-color: #d97706;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #92400e;
  box-shadow: 0 0 12px rgba(217,119,6,.15);
}
.comp-sello-rejected {
  border-color: #dc2626;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #991b1b;
  box-shadow: 0 0 12px rgba(220,38,38,.15);
}
.comp-sello-inner .material-symbols-outlined {
  font-size: 19px;
  font-variation-settings: 'FILL' 1,'wght' 700,'GRAD' 0,'opsz' 20;
}
.comp-sello-diagonal {
  position: absolute; inset: -1px; border-radius: inherit;
  overflow: hidden; pointer-events: none;
}
.comp-sello-diagonal::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  width: 130%; height: 2.5px;
  background: currentColor;
  opacity: .1;
}

/* ════════════════════════════════════════════════════════════
   IMPRESIÓN — @media print
   ESTRATEGIA:
   - PrintTicket.js inyecta el vale como <div id="print-ticket-root">
     directamente en <body> y añade la clase "is-printing-vale"
   - Cuando body.is-printing-vale → ocultar TODO excepto #print-ticket-root
   - Sin esa clase → reglas normales para comprobante PDF
   ════════════════════════════════════════════════════════════ */

/* Página en landscape para el vale */
@page { size: A4 landscape; margin: 10mm; }

@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

  /* ─────────────────────────────────────────────
     CASO A: Impresión del vale (body.is-printing-vale)
     Ocultar absolutamente todo excepto el contenedor clonado
  ───────────────────────────────────────────── */
  body.is-printing-vale {
    background: #fff !important;
    margin: 0 !important; padding: 0 !important;
    overflow: visible !important;
  }

  /* Ocultar TODOS los hijos directos del body excepto el print-root */
  body.is-printing-vale > *:not(#print-ticket-root) {
    display: none !important;
    visibility: hidden !important;
  }

  /* El contenedor del vale clonado */
  #print-ticket-root {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Ticket actual v9 (clases pt2): ocupar una sola hoja A4 horizontal. */
  #print-ticket-root .pt2-wrapper {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 170mm !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  #print-ticket-root .pt2-main { flex: 1 1 auto !important; min-width: 0 !important; }
  #print-ticket-root .pt2-header { padding: 8mm 11mm 6mm !important; }
  #print-ticket-root .pt2-logo-main { width: 23mm !important; height: 23mm !important; }
  #print-ticket-root .pt2-title { font-size: 42pt !important; }
  #print-ticket-root .pt2-subtitle { font-size: 18pt !important; }
  #print-ticket-root .pt2-body { padding: 4mm 10mm 3mm !important; }
  #print-ticket-root .pt2-field-row {
    grid-template-columns: 45mm 1fr !important;
    gap: 4mm !important;
    padding: 1.8mm 0 !important;
  }
  #print-ticket-root .pt2-firmas { padding: 5mm 16mm 7mm !important; gap: 12mm !important; }
  #print-ticket-root .pt2-perf { width: 5mm !important; }
  #print-ticket-root .pt2-stub {
    width: 52mm !important;
    padding: 9mm 5mm 0 !important;
    background: #f4f8ff !important;
  }
  #print-ticket-root .pt2-stub-folio-wrap { margin: 6mm 0 3mm !important; }
  #print-ticket-root .pt2-stub-folio-num { font-size: 31pt !important; }
  #print-ticket-root .pt2-stub-footer { width: calc(100% + 10mm) !important; }

  /* El wrapper del ticket: A4 landscape completo */
  #print-ticket-root .pt-wrapper {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 160mm !important;
    box-shadow: none !important;
    border-radius: 4px !important;
    clip-path: none !important;
    margin: 0 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    overflow: visible !important;
  }

  /* Spine conserva navy */
  #print-ticket-root .pt-spine {
    background: #0d2b5e !important;
    color: #fff !important;
    min-width: 36px !important;
    width: 36px !important;
    flex-shrink: 0 !important;
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }
  #print-ticket-root .pt-spine-big,
  #print-ticket-root .pt-spine-small { color: #fff !important; }

  /* Body principal */
  #print-ticket-root .pt-body {
    display: flex !important;
    flex: 1 !important;
    min-height: 160mm !important;
  }

  /* Main area */
  #print-ticket-root .pt-main {
    flex: 1 !important;
    position: relative !important;
    overflow: visible !important;
  }

  /* Stub (talón derecho) */
  #print-ticket-root .pt-stub {
    background: #eef5ff !important;
    min-width: 140px !important;
    width: 140px !important;
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }

  /* Perforación */
  #print-ticket-root .pt-perf { display: flex !important; }

  /* Olas decorativas */
  #print-ticket-root .pt-wave-svg path {
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }

  /* Divider */
  #print-ticket-root .pt-divider {
    background: linear-gradient(90deg, #1340b8, #60a5fa) !important;
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }

  /* Sello de estado */
  #print-ticket-root .pt-estado-sello {
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }

  /* Firma aprobada */
  #print-ticket-root .pt-firma-space.approved {
    background: #eef5ff !important;
    border-color: #bdd3f7 !important;
    print-color-adjust: exact !important;
  }

  /* Stub: folio grande color celeste */
  #print-ticket-root .pt-stub-num  { color: #60a5fa !important; }
  #print-ticket-root .pt-stub-unes { color: #1340b8 !important; }

  /* Controles siempre ocultos */
  .pt-controls,
  .tut-overlay { display: none !important; }

  /* ─────────────────────────────────────────────
     CASO B: Comprobante PDF (sin is-printing-vale)
  ───────────────────────────────────────────── */
  body:not(.is-printing-vale) {
    background: #fff !important;
  }
  body:not(.is-printing-vale) .sidebar,
  body:not(.is-printing-vale) .topbar,
  body:not(.is-printing-vale) .pt-overlay,
  body:not(.is-printing-vale) .pt2-wrapper ~ * { display: none !important; }
  body:not(.is-printing-vale) .main-area  { margin-left: 0 !important; padding: 0 !important; }

  .comprobante-wrap {
    color: #000; max-width: 100% !important; padding: 0 !important;
  }
  .comp-header {
    background: linear-gradient(135deg, #1340b8 0%, #2563eb 55%, #6344e8 100%) !important;
    box-shadow: none !important; border-radius: 8px !important;
  }
  .comp-data-cell    { background: #f5f8ff !important; }
  .comp-item-row     { background: #f5f8ff !important; }
  .comp-tipo-banner  { background: rgba(37,99,235,.07) !important; }
  .comp-sello-approved { background: #f0fdf4 !important; }
  .comp-sello-rejected { background: #fef2f2 !important; }
  .comp-sello-pending  { background: #fffbeb !important; }
  .comp-firma-area-approved { background: rgba(37,99,235,.05) !important; }
  .comp-firma-section       { background: rgba(37,99,235,.02) !important; }
  .modal-backdrop { position: static !important; background: none !important; }
  .modal { box-shadow: none !important; max-height: none !important; overflow: visible !important; border: none !important; }
  .modal-header, .modal-footer { display: none !important; }
  .pagination, .filter-row, .kpi-grid, .card-header .search-bar { display: none !important; }
  .comp-firma-section { page-break-inside: avoid; }
  .comp-sello         { page-break-inside: avoid; }
  .comp-data-grid     { page-break-inside: avoid; }
}


/* ════════════════════════════════════════════════════════════
   PRINT TICKET v9 — Vale institucional rediseñado
   Layout: cuerpo (header onda + body campos + firmas) | perf | talón
   ════════════════════════════════════════════════════════════ */

/* Overlay preview pantalla completa */
.pt-overlay {
  position: fixed; inset: 0;
  background: rgba(10,20,50,.75);
  z-index: calc(var(--z-overlay) + 10);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
  animation: fadeIn .22s ease;
  overflow-y: auto;
}

/* Controles imprimir / cerrar */
.pt-controls {
  display: flex; gap: 10px; margin-bottom: 18px;
  animation: slideUp .3s .1s both;
}

/* ── Wrapper nuevo ticket pt2 ── */
.pt2-wrapper {
  display: flex;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 32px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
  overflow: hidden;
  max-width: 920px; width: 100%;
  animation: scaleIn .3s .05s cubic-bezier(.4,0,.2,1) both;
  font-family: Arial, 'Inter', sans-serif;
}

/* ── Cuerpo principal ── */
.pt2-main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  border-right: 3px dashed #c9c9c9;
}

/* ── HEADER ── */
.pt2-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 48px 28px;
  color: #fff;
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
/* Orbs decorativos en header */
.pt2-header::before {
  content: '';
  position: absolute; top: -50px; right: -50px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.07); pointer-events: none;
}
.pt2-header::after {
  content: '';
  position: absolute; bottom: -40px; left: 80px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(0,0,0,.07); pointer-events: none;
}

/* Logo principal (izq) */
.pt2-logo-main {
  width: 82px; height: 82px;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.35));
  position: relative; z-index: 1; flex-shrink: 0;
}
.pt2-logo-frame {
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  box-sizing: border-box;
}
.pt2-stub-logo { margin: 0 auto; box-shadow: 0 2px 10px rgba(0,43,120,.12); }
.pt2-stub-footer-logo { flex-shrink: 0; }

/* Centro: VALE + subtítulo */
.pt2-header-center {
  flex: 1; text-align: center; position: relative; z-index: 1;
}
.pt2-title {
  font-size: 72px; font-weight: 900;
  line-height: 0.9; margin: 0;
  letter-spacing: 3px; color: #fff;
}
.pt2-subtitle {
  font-size: 30px; font-weight: 900;
  color: #8fd0ff; margin: 6px 0 0; letter-spacing: 2px;
}

/* Derecha: logo secundario + nombre colegio */
.pt2-header-right {
  display: flex; align-items: center; gap: 14px;
  position: relative; z-index: 1; flex-shrink: 0;
}
.pt2-logo-sec {
  width: 62px; height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.3));
}
.pt2-school-name { text-align: right; }
.pt2-school-line1 {
  display: block;
  font-size: 18px; font-weight: 700; color: rgba(255,255,255,.85);
  letter-spacing: 2px;
}
.pt2-school-line2 {
  display: block;
  font-size: 32px; font-weight: 900; color: #fff;
  letter-spacing: 2px; line-height: 1;
}

/* ── BODY (campos) ── */
.pt2-body {
  padding: 28px 48px 16px;
  flex: 1;
}

/* Fila de campo con icono */
.pt2-field-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dotted #b8c9ec;
  color: #172750;
  align-items: baseline;
}
.pt2-full-row { grid-template-columns: 200px 1fr; align-items: flex-start; }

.pt2-field-label {
  display: flex; align-items: center; gap: 6px;
  color: #073b9a; font-weight: 900; font-size: 12.5px;
  letter-spacing: .03em; text-transform: uppercase;
  white-space: nowrap;
}
.pt2-field-icon {
  font-size: 16px !important; color: #073b9a; flex-shrink: 0;
}
.pt2-field-value {
  font-size: 14.5px; font-weight: 700; color: #172750;
}

/* Lista items material */
.pt2-items-list {
  display: flex; flex-direction: column; gap: 4px; flex: 1;
}
.pt2-item-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: #172750;
  background: #eef4ff; border: 1px solid #c7d2f0;
  border-radius: 6px; padding: 3px 10px;
}
.pt2-item-num {
  width: 17px; height: 17px; border-radius: 50%;
  background: #073b9a; color: #fff;
  font-size: 8px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pt2-item-qty {
  margin-left: auto; font-weight: 800; color: #073b9a; font-size: 11px;
}

/* Bloque autorización */
.pt2-auth-box {
  margin-top: 14px; padding: 12px 16px;
  border: 1px solid #89b8ff; border-radius: 12px;
  background: linear-gradient(135deg,#f5f9ff,#eaf3ff);
  display: flex; flex-direction: column; gap: 4px;
}
.pt2-auth-box .pt2-field-row {
  border-bottom: none; padding: 4px 0;
}

/* ── FIRMAS ── */
.pt2-firmas {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 24px 80px 32px;
  border-top: 1.5px dashed #c7d2f0;
  text-align: center;
  flex-shrink: 0;
}
.pt2-firma-col { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pt2-firma-space {
  width: 100%; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
}
.pt2-firma-space.approved {
  background: linear-gradient(135deg,rgba(18,63,138,.05),rgba(91,174,245,.07));
  border: 1px dashed #93c5fd;
}
.pt2-firma-line {
  width: 80%; height: 2px;
  background: #0b3c91;
  margin-bottom: 6px;
}
.pt2-firma-name {
  display: block; font-size: 11.5px; font-weight: 800;
  color: #172750; letter-spacing: .04em; text-transform: uppercase;
}
.pt2-firma-role {
  display: block; font-size: 10px; color: #7b8cae; margin-top: 2px;
}

/* ── PERFORACIÓN ── */
.pt2-perf {
  width: 20px; display: flex; flex-direction: column;
  align-items: center; justify-content: space-around;
  background: #f4f7fb;
  border-left:  1px dashed #c7d2f0;
  border-right: 1px dashed #c7d2f0;
  padding: 10px 0; flex-shrink: 0;
}
.pt2-perf-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #c7d2f0;
}

/* ── TALÓN ── */
.pt2-stub {
  width: 220px; flex-shrink: 0;
  padding: 40px 22px 0;
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
  color: #0b3c91;
}
.pt2-stub-sigla {
  font-size: 46px; font-weight: 900; color: #0b3c91;
  margin: 14px 0 0; letter-spacing: 2px; line-height: 1;
}
.pt2-stub-inst {
  font-size: 9px; font-weight: 700; color: #4a6490;
  text-transform: uppercase; letter-spacing: .06em;
  margin: 4px 0 0; line-height: 1.4;
}

/* Folio */
.pt2-stub-folio-wrap {
  margin: 28px 0 16px; width: 100%;
}
.pt2-stub-folio-label {
  display: block;
  font-size: 10px; font-weight: 900; color: #0b3c91;
  letter-spacing: 5px; margin-bottom: 4px;
}
.pt2-stub-folio-num {
  display: block;
  font-size: 56px; font-weight: 900; color: #073b9a;
  letter-spacing: 6px; font-family: 'Courier New', monospace; line-height: 1;
}
.pt2-stub-folio-full {
  display: block;
  font-size: 9px; font-family: monospace; font-weight: 700;
  color: #6f7890; letter-spacing: 2px; margin-top: 4px; word-break: break-all;
}

/* Línea punteada */
.pt2-stub-hr {
  border: none; border-top: 2px dashed #6fa8ff;
  margin: 16px 0; width: 100%;
}

/* Tipo */
.pt2-stub-tipo {
  font-size: 11px; font-weight: 900; color: #073b9a;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 6px;
}

/* Texto conserve */
.pt2-stub-conserve {
  font-size: 9.5px; color: #4a6490; font-weight: 600;
  line-height: 1.5; white-space: pre-line; margin-bottom: 8px;
}

/* Fecha */
.pt2-stub-date {
  font-size: 10px; color: #172750; font-weight: 600; margin-bottom: 0;
}

/* Footer azul lema */
.pt2-stub-footer {
  margin-top: auto;
  width: calc(100% + 44px);
  background: #073b9a;
  padding: 12px 18px;
  display: flex; align-items: center; gap: 8px;
}
.pt2-stub-lema {
  font-size: 8.5px; font-weight: 700; color: #fff;
  letter-spacing: .04em; line-height: 1.4;
  text-transform: uppercase; text-align: left;
}

/* Print */
@media print {
  .pt2-wrapper {
    box-shadow: none !important; max-width: 100% !important;
    border-radius: 0 !important;
  }
  .pt2-header { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .pt2-stub-footer { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* ════════════════════════════════════════════════════════════
   ITEMS LIST — Lista dinámica de artículos en formularios
   ════════════════════════════════════════════════════════════ */

.items-table-head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 22px 6px;
  border-bottom: 1.5px solid var(--border-light);
  font-size: 9.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-3);
}
.ith-num   { width: 28px; flex-shrink: 0; text-align: center; }
.ith-name  { flex: 2; min-width: 0; }
.ith-cat   { width: 130px; flex-shrink: 0; }
.ith-qty   { width: 90px; flex-shrink: 0; text-align: center; }
.ith-notes { flex: 1; min-width: 80px; }
.ith-del   { width: 32px; flex-shrink: 0; }

.items-list { display: flex; flex-direction: column; gap: 10px; }

.item-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  transition: border-color .15s, background .15s;
}
.item-row:focus-within {
  border-color: var(--primary);
  background: var(--primary-ghost);
}

.item-num-badge {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #2563eb, #6344e8);
  color: #fff; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-top: 10px;
}
.item-num-badge--teal {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
}

.item-row-fields {
  flex: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.item-field { }
.item-field-name  { flex: 2; min-width: 160px; }
.item-field-cat   { width: 130px; flex-shrink: 0; }
.item-field-qty   { width: 90px; flex-shrink: 0; }
.item-field-notes { flex: 1; min-width: 100px; }

/* Autocompletado de catálogo */
.item-suggest-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-md);
  z-index: 50; overflow: hidden;
  animation: scaleIn .12s ease;
}
.item-suggest-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; width: 100%;
  font-size: 12.5px; font-weight: 600; color: var(--text);
  background: none; border: none; cursor: pointer; text-align: left;
  transition: background var(--t-fast);
}
.item-suggest-opt:hover { background: var(--primary-ghost); color: var(--primary); }

/* Fila eliminación */
.item-remove-btn { margin-top: 0; flex-shrink: 0; align-self: center; }

/* Grid de artículo de compra — LEGACY, reemplazado por sección FormulariosPage v5 abajo */
/* Mantener vacío para compatibilidad con otros componentes que usen estas clases */


/* ════════════════════════════════════════════════════════════
   TUTORIAL POPUP — Popups de ayuda animados
   ════════════════════════════════════════════════════════════ */

/* Overlay oscuro */
.tut-overlay {
  position: fixed; inset: 0;
  background: rgba(8, 16, 40, .65);
  z-index: calc(var(--z-toast) + 10);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
  transition: opacity .3s ease;
}
.tut-out { opacity: 0 !important; }

/* Card del tutorial */
.tut-card {
  background: var(--surface);
  border-radius: var(--r-2xl);
  box-shadow: 0 32px 80px rgba(0,0,0,.35), 0 0 0 1px var(--border-light);
  width: 100%; max-width: 440px;
  overflow: hidden;
  animation: scaleIn .28s cubic-bezier(.4,0,.2,1) both;
}
.tut-card-out {
  animation: scaleOut .25s cubic-bezier(.4,0,.2,1) forwards !important;
}

/* Header gradiente */
.tut-header {
  padding: 22px 24px 20px;
  display: flex; align-items: center; gap: 16px;
  position: relative; overflow: hidden;
}
.tut-header-orb {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.08); pointer-events: none;
}
.tut-orb-1 { width: 140px; height: 140px; top: -50px; right: -40px; }
.tut-orb-2 { width: 80px;  height: 80px;  bottom: -30px; left: 40px; }

.tut-module-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.28);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; z-index: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.tut-header-text { position: relative; z-index: 1; }
.tut-header-eyebrow {
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 3px;
}
.tut-header-title {
  font-size: 19px; font-weight: 900; color: #fff; letter-spacing: -.2px; line-height: 1.1;
}
.tut-close-btn {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8); cursor: pointer;
  transition: background .15s;
}
.tut-close-btn:hover { background: rgba(255,255,255,.3); }

/* Indicadores de paso */
.tut-dots {
  display: flex; justify-content: center; gap: 8px; padding: 14px 24px 8px;
}
.tut-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border);
  border: none; cursor: pointer;
  transition: all .2s; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.tut-dot.active {
  background: var(--dot-color, var(--primary));
  width: 28px; border-radius: 5px;
  box-shadow: 0 0 10px var(--dot-color, var(--primary));
}
.tut-dot.done {
  background: var(--dot-color, var(--primary));
  opacity: .55;
  font-size: 7px;
}

/* Contenido del paso */
.tut-step {
  padding: 20px 28px 16px;
  text-align: center;
  animation: slideUp .22s ease both;
}
.tut-step-icon-wrap {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(37, 99, 235, .06);
  border: 2px solid rgba(37, 99, 235, .18);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 0 8px rgba(37,99,235,.04);
  transition: background .2s, border-color .2s;
}
.tut-step-title {
  font-size: 16px; font-weight: 800; color: var(--text);
  margin-bottom: 10px; letter-spacing: -.1px;
}
.tut-step-desc {
  font-size: 13.5px; color: var(--text-2); line-height: 1.65;
}

/* Barra de progreso */
.tut-progress-bar {
  height: 3px; background: var(--border-light); margin: 8px 24px 0;
  border-radius: 3px; overflow: hidden;
}
.tut-progress-fill {
  height: 100%; border-radius: 3px;
  transition: width .35s cubic-bezier(.4,0,.2,1);
}

/* Navegación */
.tut-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px 20px;
}
.tut-step-counter {
  font-size: 11.5px; font-weight: 700; color: var(--text-3);
}

/* Botón flotante de ayuda (FAB) */
.tut-fab {
  position: fixed; bottom: 28px; left: 28px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--fab-color, var(--primary));
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
  z-index: var(--z-toast);
  transition: transform .18s, box-shadow .18s;
  animation: popIn .4s cubic-bezier(.4,0,.2,1) both;
}
.tut-fab:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.3);
}
.tut-fab .material-symbols-outlined { color: #fff; }

/* Animación scaleOut */
@keyframes scaleOut {
  from { transform: scale(1); opacity: 1; }
  to   { transform: scale(.9); opacity: 0; }
}
/* Animación fadeIn (ya puede existir en layout.css, se repite sin problema) */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ════════════════════════════════════════════════════════════
   PAGE CONTENT — Wrapper estándar para páginas multi-tenant
   ════════════════════════════════════════════════════════════ */
.page-content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  animation: fadeIn .2s ease both;
}



/* ════════════════════════════════════════════════════════════
   SOLICITUDES HERO — Media pantalla, botones grandes + glow
   ════════════════════════════════════════════════════════════ */

.sol-hero {
  position: relative;
  min-height: 52vh;
  border-radius: var(--neu-r-xl);
  overflow: hidden;
  /* Neumórfico raised + degradado UNES profundo con cyan */
  background: linear-gradient(135deg,
    #0a1f45 0%,
    #0d2b6e 35%,
    #0a4a7a 70%,
    #055f8a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  box-shadow:
    var(--neu-raised),
    0 0 60px rgba(0,180,216,.20),
    0 12px 48px rgba(13,43,94,.50);
  border: 1px solid rgba(0,180,216,.18);
}

/* Orbe cyan top-left */
.sol-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 40%, rgba(0,180,216,.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(0,180,216,.12) 0%, transparent 38%),
    radial-gradient(circle at 50% 90%, rgba(0,90,180,.15) 0%, transparent 50%);
  pointer-events: none;
  animation: solHeroOrbs 8s ease-in-out infinite alternate;
}

/* Fade bottom hacia el fondo de la app */
.sol-hero::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 70px;
  background: linear-gradient(to top, var(--bg, #e6ebf4) 0%, transparent 100%);
  pointer-events: none;
}

@keyframes solHeroOrbs {
  from { opacity: .8; transform: scale(1); }
  to   { opacity: 1;  transform: scale(1.04); }
}

/* Partículas */
.hero-particles { position: absolute; inset: 0; pointer-events: none; }

/* Inner — columna centrada */
.sol-hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 28px;
  text-align: center; width: 100%; max-width: 700px;
}

/* Águila */
.sol-hero-eagle {
  animation: heroFloat 3.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,.25));
}

/* Títulos */
.sol-hero-title {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.5px;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
  margin: 0;
}
.sol-hero-sub {
  font-size: clamp(13px, 1.8vw, 16px);
  color: rgba(255,255,255,.75);
  margin: 4px 0 0;
  font-weight: 400;
}
.sol-hero-text { display: flex; flex-direction: column; gap: 4px; }

/* ── Botones CTA hero ── */
.sol-hero-btns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.sol-hero-btn {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  padding: 24px 36px;
  min-width: 190px;
  border-radius: var(--neu-r-lg);
  cursor: pointer;
  font-family: inherit;
  /* Raised neumórfico sobre fondo oscuro */
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,.20);
  box-shadow:
    -4px -4px 10px rgba(255,255,255,.06),
     4px  4px 12px rgba(0,0,0,.35),
     0 0 20px rgba(0,180,216,.12);
  transition: transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s, border-color .22s;
  overflow: hidden;
  outline: none;
}

/* Shimmer sweep cyan */
.sol-hero-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(0,180,216,.20) 50%, transparent 65%);
  background-size: 220% 100%;
  background-position: -220% 0;
  transition: background-position .55s ease;
  pointer-events: none;
  border-radius: inherit;
}
.sol-hero-btn:hover::before { background-position: 220% 0; }

.sol-hero-btn:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow:
    -4px -4px 10px rgba(255,255,255,.08),
     4px  4px 14px rgba(0,0,0,.40),
     0 0 30px rgba(0,180,216,.30),
     0 0 60px rgba(0,180,216,.12);
  border-color: rgba(0,180,216,.50);
}
.sol-hero-btn:active {
  transform: translateY(0) scale(.98);
  box-shadow:
    inset -3px -3px 7px rgba(255,255,255,.06),
    inset  3px  3px 8px rgba(0,0,0,.30),
    0 0 16px rgba(0,180,216,.18);
}

/* Outline (Material) */
.sol-hero-btn--outline {
  color: #fff;
}

/* Primary + cyan glow (Compra) */
.sol-hero-btn--primary {
  background: linear-gradient(135deg, rgba(0,180,216,.25) 0%, rgba(0,90,180,.30) 100%);
  color: #fff;
  border-color: rgba(0,180,216,.50);
  box-shadow:
    -4px -4px 10px rgba(255,255,255,.08),
     4px  4px 12px rgba(0,0,0,.35),
     0 0 28px rgba(0,180,216,.35);
  animation: solBtnGlow 2.5s ease-in-out infinite;
}
.sol-hero-btn--primary:hover {
  box-shadow:
    -4px -4px 10px rgba(255,255,255,.10),
     4px  4px 14px rgba(0,0,0,.40),
     0 0 45px rgba(0,180,216,.55),
     0 0 80px rgba(0,180,216,.20);
}

/* Ícono grande */
.sol-hero-btn-icon .material-symbols-outlined {
  font-size: 40px;
  display: block;
}
.sol-hero-btn--outline .sol-hero-btn-icon .material-symbols-outlined { color: rgba(255,255,255,.95); }
.sol-hero-btn--primary .sol-hero-btn-icon .material-symbols-outlined { color: #fff; }
/* Glow en ícono del botón primario */
.sol-hero-btn--primary:hover .sol-hero-btn-icon .material-symbols-outlined {
  filter: drop-shadow(0 0 8px rgba(0,180,216,.70));
}

/* Label */
.sol-hero-btn-label {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.2px;
  line-height: 1;
}

/* Desc */
.sol-hero-btn-desc {
  font-size: 11px;
  font-weight: 400;
  opacity: .75;
  line-height: 1.4;
  white-space: pre-line;
}
.sol-hero-btn--primary .sol-hero-btn-desc { opacity: .6; }


/* LOGIN PAGE v5.0 — REEMPLAZADO POR v7.0 abajo */
/* (sección eliminada para evitar conflictos — ver LOGIN PAGE v7.0) */

/* Indicador scroll */
.sol-hero-scroll {
  display: flex; align-items: center; gap: 4px;
  color: rgba(255,255,255,.5);
  font-size: 11.5px;
  animation: heroBounce 1.8s ease-in-out infinite;
  cursor: default;
}
.sol-hero-scroll .material-symbols-outlined { font-size: 18px; }

/* ── Keyframes hero ── */
@keyframes heroFloat {
  from { transform: translateY(0px);   }
  to   { transform: translateY(-10px); }
}
@keyframes heroBounce {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(5px); }
}
@keyframes solBtnGlow {
  0%, 100% {
    box-shadow:
      -4px -4px 10px rgba(255,255,255,.08),
       4px  4px 12px rgba(0,0,0,.35),
       0 0 24px rgba(0,180,216,.30);
  }
  50% {
    box-shadow:
      -4px -4px 10px rgba(255,255,255,.10),
       4px  4px 14px rgba(0,0,0,.40),
       0 0 42px rgba(0,180,216,.55),
       0 0 70px rgba(0,180,216,.18);
  }
}

/* ── Modo oscuro ── */
[data-theme="dark"] .sol-hero {
  background: linear-gradient(135deg, #060f1f 0%, #091d45 40%, #0b3060 70%, #0e4070 100%);
  box-shadow:
    var(--neu-raised),
    0 0 70px rgba(34,211,238,.18),
    0 12px 48px rgba(6,15,31,.70);
}
[data-theme="dark"] .sol-hero::after {
  background: linear-gradient(to top, var(--bg, #1e2433) 0%, transparent 100%);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .sol-hero { min-height: 60vh; padding: 32px 16px; }
  .sol-hero-btns { gap: 14px; }
  .sol-hero-btn  { min-width: 140px; padding: 20px 20px; }
  .sol-hero-btn-label { font-size: 14px; }
  .sol-hero-btn-icon .material-symbols-outlined { font-size: 32px; }
}

/* ── Print: ocultar hero ── */
@media print {
  .sol-hero { display: none !important; }
}

/* ════════════════════════════════════════════════════════════
   MODAL DE REVISIÓN — AprobacionesPage
   Layout de dos columnas: datos+checklist | comentarios+acciones
   Animaciones: anim-scale-in en modal, slideUp en checklist rows
   ════════════════════════════════════════════════════════════ */

/* Overlay fullscreen */
.rev-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal, 1000);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fadeIn .2s ease both;
}

/* Modal container */
.rev-modal {
  background: var(--surface);
  border-radius: var(--r-xl, 18px);
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  width: 100%; max-width: 900px;
  max-height: 92vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

/* Header */
.rev-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  background: linear-gradient(135deg, #0d2b5e 0%, #1a4a9e 55%, #2563eb 100%);
  flex-shrink: 0;
}
.rev-header-left  { display: flex; align-items: center; gap: 14px; }
.rev-header-right { display: flex; align-items: center; gap: 10px; }
.rev-header-icon  {
  width: 44px; height: 44px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rev-header-title {
  font-size: 18px; font-weight: 900; color: #fff; margin: 0;
}
.rev-header-sub {
  font-size: 12px; color: rgba(255,255,255,.7); margin: 2px 0 0;
}
.rev-close-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background .18s;
}
.rev-close-btn:hover { background: rgba(255,255,255,.28); }

/* Body: dos columnas */
.rev-body {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 0; overflow: hidden; flex: 1;
}
.rev-col-main {
  padding: 20px; overflow-y: auto;
  border-right: 1px solid var(--border-light);
}
.rev-col-side {
  padding: 20px; overflow-y: auto;
  background: var(--surface-2);
  display: flex; flex-direction: column; gap: 16px;
}

/* Sección */
.rev-section { margin-bottom: 20px; }
.rev-section:last-child { margin-bottom: 0; }
.rev-section-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-3);
  margin: 0 0 12px;
}
.rev-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.rev-section-header .rev-section-title { margin-bottom: 0; }

/* Grid de datos */
.rev-data-grid { display: flex; flex-direction: column; gap: 6px; }
.rev-data-row {
  display: flex; gap: 10;
  padding: 7px 12px;
  background: var(--surface-2);
  border-radius: var(--r-md);
  border: 1px solid var(--border-light);
  font-size: 13px;
}
.rev-data-label {
  width: 130px; flex-shrink: 0;
  font-weight: 700; font-size: 11px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--text-3);
  align-self: flex-start; padding-top: 1px;
}
.rev-data-val { color: var(--text); font-weight: 500; flex: 1; }

/* ── CheckList ── */
.rev-checklist {
  display: flex; flex-direction: column; gap: 6px;
}

.rev-check-row {
  display: flex; align-items: center; gap: 0;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-light);
  background: var(--surface-2);
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
  user-select: none;
}
.rev-check-row:hover {
  background: var(--primary-ghost, #eff6ff);
  border-color: var(--primary);
  transform: translateX(2px);
}
.rev-check-row.checked {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
[data-theme="dark"] .rev-check-row.checked {
  border-color: #166534;
  background: rgba(22,163,74,.1);
}

/* Ocultar checkbox nativo */
.rev-checkbox { display: none; }

.rev-check-body {
  display: flex; align-items: center; gap: 10px; flex: 1;
}
.rev-check-num {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 800;
  transition: background .15s;
}
.rev-check-num.unchecked {
  background: var(--surface-3);
  color: var(--text-3);
}
.rev-check-text  { flex: 1; }
.rev-check-name  { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.rev-check-meta  { display: block; font-size: 11px; color: var(--text-3); margin-top: 1px; }
.rev-check-icon  { flex-shrink: 0; transition: color .15s; }

/* Resumen del checklist */
.rev-check-summary {
  padding: 8px 14px;
  background: var(--surface-3);
  border-radius: var(--r-md);
  text-align: right;
  margin-top: 4px;
}

/* Textarea de comentarios */
.rev-textarea {
  width: 100%; resize: vertical; min-height: 100px;
  font-size: 13px;
}

/* Banner de estado (aprobado/rechazado) */
.rev-status-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--r-lg);
  font-size: 13px; font-weight: 600;
}
.banner-apro {
  background: #f0fdf4; color: #15803d;
  border: 1.5px solid #bbf7d0;
}
.banner-rech {
  background: #fef2f2; color: #dc2626;
  border: 1.5px solid #fca5a5;
}
[data-theme="dark"] .banner-apro { background: rgba(22,163,74,.12); border-color: #166534; }
[data-theme="dark"] .banner-rech { background: rgba(220,38,38,.12); border-color: #7f1d1d; }

/* ── ACCIONES ── */
.rev-actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: auto;
}

/* Botón APROBAR grande — el CTA principal */
.rev-btn-aprobar {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px; font-weight: 900;
  background: linear-gradient(135deg, #15803d 0%, #16a34a 55%, #22c55e 100%);
  color: #fff;
  border: none; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; font-family: inherit;
  box-shadow: 0 6px 24px rgba(22,163,74,.4);
  transition: transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s;
  /* Shimmer sweep */
  position: relative; overflow: hidden;
}
.rev-btn-aprobar::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.22) 50%, transparent 62%);
  background-size: 220% 100%; background-position: -220% 0;
  transition: background-position .5s ease;
  pointer-events: none;
}
.rev-btn-aprobar:hover::before { background-position: 220% 0; }
.rev-btn-aprobar:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 36px rgba(22,163,74,.55);
}
.rev-btn-aprobar:active  { transform: translateY(-1px) scale(.99); }
.rev-btn-aprobar:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Botón RECHAZAR secundario */
.rev-btn-rechazar {
  width: 100%;
  padding: 11px 20px;
  font-size: 13px; font-weight: 700;
  background: transparent;
  color: #dc2626;
  border: 1.5px solid #fca5a5;
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; font-family: inherit;
  transition: background .18s, border-color .18s, transform .15s;
}
.rev-btn-rechazar:hover {
  background: #fef2f2;
  border-color: #dc2626;
  transform: translateY(-1px);
}
[data-theme="dark"] .rev-btn-rechazar {
  border-color: #7f1d1d; color: #f87171;
}
[data-theme="dark"] .rev-btn-rechazar:hover {
  background: rgba(220,38,38,.1);
  border-color: #ef4444;
}

/* Panel de rechazo inline */
.rev-reject-panel {
  background: #fef2f2; border: 1.5px solid #fca5a5;
  border-radius: var(--r-lg); padding: 14px;
  animation: popIn .25s cubic-bezier(.4,0,.2,1) both;
}
[data-theme="dark"] .rev-reject-panel {
  background: rgba(220,38,38,.08); border-color: #7f1d1d;
}

/* Responsive: una columna en móvil */
@media (max-width: 700px) {
  .rev-body { grid-template-columns: 1fr; }
  .rev-col-main { border-right: none; border-bottom: 1px solid var(--border-light); }
  .rev-col-side { background: var(--surface); }
  .rev-modal { max-height: 98vh; }
}

/* Print: ocultar overlay de revisión */
@media print { .rev-overlay { display: none !important; } }

/* ══════════════════════════════════════════════════════════════
   RevisionModal — Nuevos componentes (solicitante, tipo, items)
══════════════════════════════════════════════════════════════ */

/* Tarjeta solicitante en col-main */
.rev-sol-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; margin-bottom: 14px;
  background: linear-gradient(135deg, #0d2b5e 0%, #1e4fd8 100%);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 20px rgba(37,99,235,.22);
}
.rev-sol-avatar {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
}
.rev-sol-info { flex: 1; min-width: 0; }
.rev-sol-name {
  font-size: 14px; font-weight: 900; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rev-sol-meta {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: rgba(255,255,255,.65); margin-top: 3px;
  flex-wrap: wrap;
}
.rev-sol-meta .material-symbols-outlined { font-size: 13px; }
.rev-sol-folio {
  font-size: 11px; font-family: monospace; font-weight: 800;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  padding: 3px 10px; border-radius: 99px; flex-shrink: 0;
}

/* Strip tipo solicitud */
.rev-tipo-strip {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--r-md);
  margin-bottom: 4px; border: 1.5px solid;
}
.rev-tipo-strip strong { display: block; font-size: 13px; font-weight: 800; }
.rev-tipo-strip span  { font-size: 11px; color: var(--text-3); margin-top: 2px; display: block; }
.rev-tipo-fecha {
  margin-left: auto; display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.strip-mat {
  background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8;
}
.strip-comp {
  background: #f0fdf4; border-color: #bbf7d0; color: #15803d;
}
[data-theme="dark"] .strip-mat  { background: rgba(37,99,235,.08); border-color: rgba(37,99,235,.25); color: #93c5fd; }
[data-theme="dark"] .strip-comp { background: rgba(22,163,74,.08);  border-color: rgba(22,163,74,.25);  color: #86efac; }

/* Lista de artículos (sin checklist, solo lectura) */
.rev-items-list { display: flex; flex-direction: column; gap: 6px; }
.rev-item-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-radius: var(--r-md);
  border: 1px solid var(--border-light);
}
.rev-item-num {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
}
.rev-item-body  { flex: 1; min-width: 0; }
.rev-item-name  { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.rev-item-meta  { display: block; font-size: 11px; color: var(--text-3); margin-top: 1px; }

/* Zona CTA de aprobación (col-side) */
.rev-approve-cta {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px;
  background: var(--surface);
  border: 1.5px solid #bbf7d0;
  border-radius: var(--r-lg);
  margin-top: auto;
}
[data-theme="dark"] .rev-approve-cta { border-color: #166534; }
.rev-approve-cta-label {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--text-3); line-height: 1.5;
}

/* Col-side cuando está aprobada / rechazada */
.rev-col-side-apro,
.rev-col-side-rech {
  display: flex; flex-direction: column; gap: 14px; height: 100%;
}
.rev-apro-badge {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: #f0fdf4; border: 1.5px solid #bbf7d0;
  border-radius: var(--r-lg);
}
[data-theme="dark"] .rev-apro-badge {
  background: rgba(22,163,74,.08); border-color: #166534;
}
.rev-apro-badge-text strong { display: block; font-size: 14px; color: #15803d; font-weight: 800; }
.rev-apro-badge-text span   { font-size: 11.5px; color: var(--text-3); margin-top: 3px; display: block; line-height: 1.4; }
.rev-apro-nota { padding: 0 2px; }

.rev-rech-badge {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px;
  background: #fef2f2; border: 1.5px solid #fca5a5;
  border-radius: var(--r-lg);
}
[data-theme="dark"] .rev-rech-badge {
  background: rgba(220,38,38,.08); border-color: #7f1d1d;
}

/* ── Pantalla de animación de aprobación ── */
.rev-approving-screen {
  position: relative; overflow: hidden;
  width: 380px; max-width: 95vw;
  border-radius: var(--r-2xl, 22px);
  padding: 52px 36px 44px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,.45);
  text-align: center;
}
.rev-approving-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.rev-orb-1 {
  width: 220px; height: 220px;
  top: -80px; right: -80px;
  background: rgba(255,255,255,.07);
}
.rev-orb-2 {
  width: 150px; height: 150px;
  bottom: -60px; left: -40px;
  background: rgba(255,255,255,.05);
}
.rev-approving-icon {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  animation: revIconPulse 1s ease-in-out infinite;
  backdrop-filter: blur(6px);
  position: relative; z-index: 1;
}
.rev-approving-icon.rev-icon-done {
  animation: revIconDone .5s cubic-bezier(.34,1.56,.64,1) both;
  background: rgba(255,255,255,.28);
}
@keyframes revIconPulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 0 0   rgba(255,255,255,.2); }
  50%       { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(255,255,255,0);  }
}
@keyframes revIconDone {
  0%   { transform: scale(0.5) rotate(-10deg); opacity: 0; }
  100% { transform: scale(1)   rotate(0deg);   opacity: 1; }
}

.rev-approving-label {
  font-size: 16px; font-weight: 800; color: #fff;
  letter-spacing: -.2px; line-height: 1.3;
  animation: revLabelIn .3s ease both;
  position: relative; z-index: 1;
}
@keyframes revLabelIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rev-approving-folio {
  font-size: 13px; font-family: monospace; font-weight: 700;
  color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.12);
  padding: 4px 14px; border-radius: 99px;
  border: 1px solid rgba(255,255,255,.18);
  position: relative; z-index: 1;
}

/* ══════════════════════════════════════════════════════════════
   ARCHIVO — Tabs de Institución
   ══════════════════════════════════════════════════════════════ */
.inst-tab-bar {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.inst-tab-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  border: 2px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  font-weight: 800; font-size: 13px;
  cursor: pointer;
  transition: all .18s ease;
  font-family: inherit;
}
.inst-tab-btn:hover { border-color: var(--text-3); background: var(--surface-3); }
.inst-tab-btn.active-unes {
  border-color: #1e40af; background: #1e40af; color: #fff;
  box-shadow: 0 4px 14px rgba(30,64,175,.35);
}
.inst-tab-btn.active-colegio {
  border-color: #b91c1c; background: #b91c1c; color: #fff;
  box-shadow: 0 4px 14px rgba(185,28,28,.35);
}
.inst-tab-btn.active-all {
  border-color: #4b5563; background: #4b5563; color: #fff;
  box-shadow: 0 4px 14px rgba(75,85,99,.3);
}
.inst-tab-count {
  background: rgba(255,255,255,.25);
  color: #fff;
  border-radius: 99px; padding: 1px 7px;
  font-size: 11px; font-weight: 900; min-width: 20px; text-align: center;
}
.inst-tab-btn:not([class*='active']) .inst-tab-count {
  background: var(--surface-3); color: var(--text-3);
}

/* Badge de institución en tabla */
.inst-badge {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 99px; padding: 2px 9px;
  font-size: 11px; font-weight: 800;
  white-space: nowrap;
  border: 1px solid;
}
.inst-badge-unes {
  background: rgba(30,64,175,.09); color: #1e40af;
  border-color: rgba(30,64,175,.22);
}
.inst-badge-colegio {
  background: rgba(185,28,28,.09); color: #b91c1c;
  border-color: rgba(185,28,28,.22);
}

/* ══════════════════════════════════════════════════════════════
   MODAL REVISIÓN — Mejoras v8
   Bloques de detalles adicionales: presupuesto, observaciones
   ══════════════════════════════════════════════════════════════ */
.rev-detail-block {
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.rev-detail-block-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .06em; font-weight: 800;
  margin-bottom: 10px;
}
.rev-summary-card {
  border-radius: 12px; padding: 14px;
}
.rev-summary-card .rev-summary-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .06em; font-weight: 800;
  margin-bottom: 10px;
}
.rev-summary-folio {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding: 8px 10px;
  background: var(--surface); border-radius: 8px;
  border: 1px solid var(--border-light);
}
.rev-summary-row {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; margin-bottom: 6px;
}
.rev-summary-row:last-child { margin-bottom: 0; }
.rev-summary-icon {
  font-size: 14px; color: var(--text-3);
  flex-shrink: 0; margin-top: 2px;
}
.rev-summary-lbl {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-3); font-weight: 700;
  display: block;
}
.rev-summary-val {
  font-weight: 700; color: var(--text);
  display: block;
}

/* ── SELECTS con chevron personalizado ── */
.select-wrap {
  position: relative; display: inline-block;
}
.select-wrap > select {
  padding-right: 34px;
}
.select-chevron {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-3); font-size: 17px;
}

/* Barra de progreso */
.rev-approving-bar {
  width: 100%; height: 4px;
  background: rgba(255,255,255,.18);
  border-radius: 99px; overflow: hidden;
  position: relative; z-index: 1;
}
.rev-approving-fill {
  height: 100%;
  background: rgba(255,255,255,.8);
  border-radius: 99px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}

/* Pasos visuales */
.rev-approving-steps {
  display: flex; gap: 8px; align-items: center;
  position: relative; z-index: 1;
}
.rev-approving-step { display: flex; align-items: center; gap: 8px; }
.rev-approving-step:not(:last-child)::after {
  content: '';
  display: block; width: 24px; height: 2px;
  background: rgba(255,255,255,.25);
  border-radius: 99px;
}
.rev-approving-step.done::after { background: rgba(255,255,255,.6); }
.rev-approving-step-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: 2px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, border-color .3s;
}
.rev-approving-step.done .rev-approving-step-dot {
  background: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.9);
}
.rev-approving-step.current .rev-approving-step-dot {
  background: rgba(255,255,255,.5);
  border-color: #fff;
  animation: revDotPulse .8s ease-in-out infinite;
}
@keyframes revDotPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.25); }
}

/* ══════════════════════════════════════════════════════════════
   GestionPage — Nota interna del administrador (no imprimible)
══════════════════════════════════════════════════════════════ */

/* Panel de nota en modal */
.gest-admin-nota {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 14px; margin-bottom: 2px;
  padding: 12px 14px;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-left: 4px solid #d97706;
  border-radius: var(--r-md);
}
[data-theme="dark"] .gest-admin-nota {
  background: rgba(217,119,6,.08);
  border-color: rgba(217,119,6,.3);
  border-left-color: #d97706;
}
.gest-admin-nota-header {
  display: flex; align-items: center; gap: 8px;
}
.gest-admin-nota-icon {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: #fef3c7; border: 1px solid #fde68a;
  display: flex; align-items: center; justify-content: center;
}
[data-theme="dark"] .gest-admin-nota-icon { background: rgba(217,119,6,.15); border-color: rgba(217,119,6,.3); }
.gest-admin-nota-texto {
  font-size: 13px; font-weight: 600; color: var(--text);
  line-height: 1.5; margin: 0;
  padding: 6px 10px;
  background: rgba(255,255,255,.7);
  border-radius: var(--r-sm);
  border: 1px solid #fde68a;
}
[data-theme="dark"] .gest-admin-nota-texto { background: rgba(0,0,0,.15); border-color: rgba(217,119,6,.2); }

/* Pip en fila de tabla */
.gest-nota-pip {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 600;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 99px;
  padding: 1px 7px 1px 4px;
  cursor: default;
  max-width: 190px;
  overflow: hidden;
}
[data-theme="dark"] .gest-nota-pip {
  background: rgba(217,119,6,.12);
  border-color: rgba(217,119,6,.25);
  color: #fcd34d;
}
.gest-nota-pip .material-symbols-outlined { flex-shrink: 0; }

/* Ocultar elementos .no-print en impresión */
@media print { .no-print { display: none !important; } }


/* ════════════════════════════════════════════════════════════════
   FORMULARIOS PAGE v5.0 — Wizard institución + tipo
   ════════════════════════════════════════════════════════════════ */

.fm-wizard {
  max-width: 780px;
  margin: 0 auto;
  padding: 12px 0 40px;
  animation: slideUp .3s ease both;
}

.fm-step-header {
  text-align: center;
  margin-bottom: 32px;
}
.fm-step-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--neu-bg);
  border: none;
  box-shadow: var(--shadow-xs);
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-3);
  padding: 5px 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.fm-step-title {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.4px;
  margin: 0 0 8px;
}
.fm-step-sub {
  font-size: .88rem;
  color: var(--text-3);
  margin: 0;
}

/* ── Grid de institución ── */
.fm-inst-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* ── Card de institución — versión premium ── */
.fm-inst-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 36px 22px 26px;
  border-radius: 22px; border: none;
  cursor: pointer; font-family: inherit; text-align: center;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
  animation: popIn .35s cubic-bezier(.34,1.56,.64,1) both;
  position: relative; overflow: hidden;
}
.fm-inst-card:hover { transform: translateY(-8px) scale(1.03); }
.fm-inst-card:active { transform: scale(.96); }

/* Brillo superior en las cards de institución */
.fm-inst-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(180deg, rgba(255,255,255,.18) 0%, transparent 100%);
  border-radius: 22px 22px 0 0;
  pointer-events: none;
}

.fm-inst-icon-wrap {
  width: 90px; height: 90px; border-radius: 22px;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,.3); flex-shrink: 0;
  transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.fm-inst-label { font-size: 1.45rem; font-weight: 900; color: #fff; letter-spacing: -.3px; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.fm-inst-sub   { font-size: .84rem; color: rgba(255,255,255,.85); font-weight: 500; }
.fm-inst-flujo {
  font-size: .72rem; color: rgba(255,255,255,.8);
  background: rgba(0,0,0,.18); border-radius: 8px;
  padding: 5px 10px; display: flex; align-items: center; gap: 3px; margin-top: 4px;
  backdrop-filter: blur(4px);
}

/* Hover: icon wrap más luminoso */
.fm-inst-card:hover .fm-inst-icon-wrap {
  background: rgba(255,255,255,.32);
  border-color: rgba(255,255,255,.55);
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
}

/* .fm-inst-stepper removido — ya no se muestra el flujo de aprobación en la selección */

/* ── Campus cards — más premium ── */
.fm-campus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.fm-campus-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 32px 22px 26px;
  border-radius: 20px; border: none;
  cursor: pointer; font-family: inherit; text-align: center;
  position: relative; overflow: hidden;
  animation: popIn .35s cubic-bezier(.34,1.56,.64,1) both;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
}
.fm-campus-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(180deg, rgba(255,255,255,.2) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 20px 20px 0 0;
}
.fm-campus-card:active { transform: scale(.96) !important; }
.fm-campus-card:hover .fm-campus-icon-wrap {
  background: rgba(255,255,255,.32);
  transform: scale(1.1) translateY(-2px);
}
.fm-campus-icon-wrap {
  width: 76px; height: 76px; border-radius: 20px;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,.3);
  transition: background .25s, transform .25s, box-shadow .25s;
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
}
.fm-campus-label { font-size: 1.25rem; font-weight: 900; color: #fff; letter-spacing: -.2px; text-shadow: 0 2px 6px rgba(0,0,0,.2); }
.fm-campus-sub   { font-size: .8rem; color: rgba(255,255,255,.8); font-weight: 500; }

.fm-tipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.fm-tipo-card {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 10px; padding: 26px 22px; border-radius: var(--neu-r-lg);
  cursor: pointer; font-family: inherit; text-align: left;
  background: var(--neu-bg);
  border: none;
  box-shadow: var(--neu-raised);
  transition: var(--neu-t);
  animation: popIn .3s cubic-bezier(.34,1.56,.64,1) both;
}
.fm-tipo-card:hover  { box-shadow: var(--neu-raised-hover); }
.fm-tipo-card:active { box-shadow: var(--neu-inset); }
.fm-tipo-icon-wrap {
  width: 68px; height: 68px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.fm-tipo-label { font-size: 1.15rem; font-weight: 900; letter-spacing: -.3px; }
.fm-tipo-desc  { font-size: .82rem; color: var(--text-3); font-weight: 500; line-height: 1.5; }

.fm-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--neu-bg);
  border: none;
  box-shadow: var(--shadow-xs);
  border-radius: var(--neu-r-sm);
  color: var(--text-2); cursor: pointer; font-family: inherit;
  font-size: .82rem; font-weight: 600; padding: 7px 14px;
  margin-bottom: 16px; transition: var(--neu-t), color var(--t-fast);
}
.fm-back-btn:hover { box-shadow: var(--shadow-sm); color: var(--primary); }
.fm-back-btn:active { box-shadow: var(--neu-inset); }

.fm-paso3-header { margin-bottom: 16px; }
.fm-paso3-chips {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

.fm-chip {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 6px; font-size: .72rem; font-weight: 700;
  padding: 3px 8px; letter-spacing: .03em;
}
.fm-chip--mat { background: rgba(37,99,235,.1);  color: #2563eb; border: 1px solid rgba(37,99,235,.2); }
.fm-chip--com { background: rgba(8,145,178,.1);  color: #0891b2; border: 1px solid rgba(8,145,178,.2); }
.fm-chip--val { background: rgba(22,163,74,.1);  color: #16a34a; border: 1px solid rgba(22,163,74,.2); }

.fm-success {
  max-width: 480px; margin: 40px auto;
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  animation: popIn .4s cubic-bezier(.4,0,.2,1) both;
}
.fm-success-icon {
  width: 96px; height: 96px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.fm-success-title { font-size: 1.5rem; font-weight: 800; color: var(--text); margin: 0; }
.fm-success-folio {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 8px; padding: 6px 16px;
  font-size: .95rem; font-weight: 600; font-family: 'Courier New', monospace;
}
.fm-success-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.fm-success-inst {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 6px; padding: 2px 8px; font-size: .78rem; font-weight: 700;
}
.fm-success-flujo {
  font-size: .85rem; color: var(--text-2); max-width: 380px;
  line-height: 1.5; margin: 0;
  background: var(--surface-2); border-radius: 10px;
  padding: 10px 16px; border: 1px solid var(--border);
}
.fm-success-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 600px) {
  .fm-inst-grid, .fm-tipo-grid { grid-template-columns: 1fr; }
  .fm-inst-card  { padding: 24px 16px 20px; }
  .fm-step-title { font-size: 1.1rem; }
}


/* ════════════════════════════════════════════════════════════════
   LOGIN PAGE v7.0 — Rediseño premium con glows y animaciones
   ════════════════════════════════════════════════════════════════ */

/* ── Contenedor raíz ── */
.lp-root {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  /* Fondo claro forzado — no responde al tema oscuro */
  background: linear-gradient(145deg, #eef2ff 0%, #e0eaff 35%, #f0e8ff 65%, #ede9fe 100%) !important;
  color-scheme: light;
  overflow-y: auto;
  padding: 24px 16px; font-family: 'Inter', system-ui, sans-serif;
  z-index: 9999;
}

/* Fondo decorativo con gradiente animado */
.lp-bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.lp-bg-circle { position: absolute; border-radius: 50%; }
.lp-bg-circle--1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(37,99,235,.12), transparent 65%);
  top: -260px; left: -220px;
  animation: bgDrift1 18s ease-in-out infinite alternate;
}
.lp-bg-circle--2 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(124,58,237,.1), transparent 65%);
  bottom: -180px; right: -120px;
  animation: bgDrift2 22s ease-in-out infinite alternate;
}
.lp-bg-circle--3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(220,38,38,.07), transparent 65%);
  top: 35%; left: 45%;
  animation: bgDrift3 15s ease-in-out infinite alternate;
}
@keyframes bgDrift1 { 0%{transform:translate(0,0)} 100%{transform:translate(40px,30px)} }
@keyframes bgDrift2 { 0%{transform:translate(0,0)} 100%{transform:translate(-30px,-25px)} }
@keyframes bgDrift3 { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(-20px,15px) scale(1.2)} }

/* ── Tarjeta principal ── */
.lp-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 430px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow:
    0 32px 80px rgba(37,99,235,.12),
    0 8px 24px rgba(0,0,0,.06),
    0 0 0 1px rgba(255,255,255,.8) inset,
    0 0 0 1px rgba(37,99,235,.08);
  border: 1.5px solid rgba(37,99,235,.1);
  overflow: hidden;
  animation: popIn .4s cubic-bezier(.34,1.56,.64,1) both;
}

/* ── Cabecera ── */
.lp-header {
  padding: 34px 28px 22px; text-align: center;
  background: linear-gradient(180deg, #f5f8ff 0%, rgba(255,255,255,0) 100%);
  border-bottom: 1px solid rgba(37,99,235,.08);
}
.lp-logo-wrap {
  width: 80px; height: 80px; border-radius: 20px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  border: 2px solid rgba(37,99,235,.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow:
    0 8px 24px rgba(37,99,235,.22),
    0 0 0 6px rgba(37,99,235,.06);
}
.lp-title  { font-size: 1.45rem; font-weight: 900; color: #0f172a; letter-spacing: -.5px; margin: 0 0 4px; }
.lp-subtitle { font-size: .82rem; color: #94a3b8; font-weight: 500; margin: 0 0 14px; }

/* ── Legado: clases no usadas en v7 pero mantenidas por compatibilidad ── */
.lp-perfiles { padding: 18px 20px 8px; display: flex; flex-direction: column; gap: 8px; }
.lp-perfiles-hint { font-size: .75rem; color: var(--text-3, #94a3b8); font-weight: 500; text-align: center; margin: 0 0 8px; }
.lp-perfil-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px; border: none;
  cursor: pointer; font-family: inherit; text-align: left;
  transition: transform .15s, box-shadow .15s; width: 100%;
}
.lp-perfil-card:hover { transform: translateY(-2px) scale(1.01); }
.lp-perfil-card:active { transform: scale(.98); }
.lp-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.lp-card-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lp-card-label { font-size: .92rem; font-weight: 700; color: #fff; line-height: 1.2; }
.lp-card-sub   { font-size: .72rem; color: rgba(255,255,255,.75); font-weight: 500; }
.lp-card-badge { font-size: .6rem; font-weight: 800; padding: 2px 6px; border-radius: 6px; letter-spacing: .04em; text-transform: uppercase; flex-shrink: 0; }
.lp-pass-panel { animation: fadeIn .2s ease both; }
.lp-pass-header { display: flex; align-items: center; gap: 14px; padding: 20px 24px; position: relative; }
.lp-back-btn {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.2); border: none; border-radius: 8px;
  color: #fff; cursor: pointer; padding: 5px 6px; display: flex; transition: background .15s;
}
.lp-back-btn:hover { background: rgba(255,255,255,.35); }
.lp-pass-avatar {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  margin-left: 36px; flex-shrink: 0;
}
.lp-pass-form { padding: 20px 24px 16px; display: flex; flex-direction: column; gap: 12px; }
.lp-pass-label { font-size: .78rem; font-weight: 700; color: var(--text-2, #475569); letter-spacing: .01em; }
.lp-pass-input-wrap { position: relative; }
.lp-pass-input {
  width: 100%; padding: 11px 14px 11px 40px;
  border-radius: 10px; border: 1.5px solid var(--border, #e2e8f0);
  background: var(--surface-2, #f8fafc);
  font-family: inherit; font-size: .95rem; color: var(--text, #0f172a);
  outline: none; transition: border-color .15s, box-shadow .15s; box-sizing: border-box;
}
.lp-pass-input:focus { border-color: var(--primary, #2563eb); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.lp-submit-btn {
  padding: 12px 18px; border-radius: 10px; border: none; cursor: pointer;
  font-family: inherit; font-size: .95rem; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .15s, transform .15s; margin-top: 4px;
}
.lp-submit-btn:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.lp-submit-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Footer ── */
.lp-footer {
  padding: 12px 20px 18px; text-align: center;
  font-size: .72rem; color: #94a3b8; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  border-top: 1px solid rgba(37,99,235,.07);
  background: linear-gradient(0deg, #f8faff, rgba(255,255,255,0));
}

@media (max-width: 520px) {
  .lp-card { border-radius: 18px; }
  .lp-header { padding: 26px 18px 18px; }
  .lp-perfiles { padding: 14px 14px 6px; }
  .lp-pass-form { padding: 16px 18px 14px; }
}

/* ══════════════════════════════════════════════════════════════
   LOGIN v6.0 EXTRAS (campos y botón del nuevo formulario)
══════════════════════════════════════════════════════════════ */
.lp-field { display: flex; flex-direction: column; gap: 5px; }
.lp-label { font-size: .78rem; font-weight: 700; color: #475569; letter-spacing: .01em; }
.lp-input-wrap { position: relative; }
.lp-input-icon {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 18px; color: #94a3b8; pointer-events: none;
}
.lp-input {
  width: 100%; padding: 12px 14px 12px 42px;
  border-radius: 12px; border: 1.5px solid #e2e8f0;
  background: #f8faff; font-family: inherit;
  font-size: .95rem; color: #0f172a; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(0,0,0,.04) inset;
}
.lp-input:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(37,99,235,.1),
    0 2px 8px rgba(37,99,235,.08);
}
.lp-input--pass { padding-right: 44px; }

/* Campo contraseña bloqueado (perfil institucional) */
.lp-input[readonly] {
  background: #f0f4ff;
  color: #475569;
  cursor: default;
  border-color: #c7d7fe;
  letter-spacing: .1em;
  font-size: 1.2rem;
  padding-top: 9px;
}
.lp-input[readonly]:focus {
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
  border-color: #93c5fd;
}
.lp-show-btn {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #94a3b8; padding: 4px; display: flex; align-items: center;
  transition: color .15s;
}
.lp-show-btn:hover { color: #475569; }
.lp-form { padding: 22px 28px 18px; display: flex; flex-direction: column; gap: 14px; }
/* lp-panel-right .lp-form — eliminado en v9 */
.lp-submit {
  padding: 14px 18px; border-radius: 13px; border: none; cursor: pointer;
  font-family: inherit; font-size: 1rem; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #1340b8, #2563eb, #4338ca);
  background-size: 200% 200%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow:
    0 6px 24px rgba(37,99,235,.4),
    0 0 0 0 rgba(37,99,235,0),
    inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s, opacity .15s, background .3s;
  margin-top: 6px;
  letter-spacing: -.1px;
  position: relative; overflow: hidden;
  animation: btnGlow 2.5s ease-in-out infinite;
}
/* Shimmer sweep */
.lp-submit::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.3) 50%, transparent 65%);
  background-size: 250% 100%;
  background-position: -200% 0;
  transition: background-position .6s ease;
  pointer-events: none;
  border-radius: inherit;
}
.lp-submit:hover:not(:disabled)::before { background-position: 200% 0; }
.lp-submit:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow:
    0 12px 32px rgba(37,99,235,.5),
    0 0 60px rgba(99,68,232,.2),
    inset 0 1px 0 rgba(255,255,255,.25);
}
.lp-submit:active:not(:disabled) { transform: scale(.97); }
.lp-submit:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; animation: none; }
@keyframes btnGlow {
  0%,100% { box-shadow: 0 6px 24px rgba(37,99,235,.4), 0 0 0 0 rgba(37,99,235,0), inset 0 1px 0 rgba(255,255,255,.2); }
  50%      { box-shadow: 0 8px 32px rgba(37,99,235,.55), 0 0 28px rgba(99,68,232,.2), inset 0 1px 0 rgba(255,255,255,.2); }
}
/* ══════════════════════════════════════════════════════════════
   LOGIN v7.0 — Premium: glow logo, módulos, animaciones
══════════════════════════════════════════════════════════════ */

/* Glow pulsante en el logo — más intenso y elegante */
.lp-logo-glow {
  position: absolute; inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.5) 0%, rgba(99,68,232,.2) 50%, transparent 70%);
  animation: logoPulse 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes logoPulse {
  0%,100% { transform: scale(.75); opacity: .4; }
  50%      { transform: scale(1.3); opacity: 1; }
}
.lp-logo-wrap { position: relative; }
/* El ícono encima del glow */
.lp-logo-wrap .material-symbols-outlined { position: relative; z-index: 1; }

/* Separador decorativo animado */
.lp-divider {
  width: 60px; height: 2px; border-radius: 99px;
  background: linear-gradient(90deg, transparent, #2563eb, #7c3aed, transparent);
  margin: 10px auto 12px;
  animation: dividerGlow 3s ease-in-out infinite alternate;
}
@keyframes dividerGlow {
  0%   { opacity: .5; width: 40px; }
  100% { opacity: 1;  width: 80px; box-shadow: 0 0 8px rgba(37,99,235,.4); }
}

/* Fila de módulos */
.lp-modulos-row {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap; margin-top: 4px;
}

/* Botón de módulo clicable — versión premium */
.lp-modulo-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--mb, rgba(37,99,235,.08));
  border: 1.5px solid var(--mbr, rgba(37,99,235,.2));
  border-radius: 14px; padding: 8px 14px;
  font-size: .78rem; font-weight: 800;
  color: var(--mc, #2563eb);
  cursor: pointer; font-family: inherit;
  transition:
    background .22s cubic-bezier(.4,0,.2,1),
    border-color .22s,
    transform .25s cubic-bezier(.34,1.56,.64,1),
    box-shadow .22s;
  white-space: nowrap; position: relative; overflow: hidden;
  letter-spacing: .01em;
}
/* Shimmer sweep en hover */
.lp-modulo-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  background-size: 250% 100%; background-position: -200% 0;
  transition: background-position .55s ease; pointer-events: none; border-radius: inherit;
}
.lp-modulo-btn:hover::before { background-position: 200% 0; }
.lp-modulo-btn:hover {
  background: var(--mb, rgba(37,99,235,.16));
  border-color: var(--mc, #2563eb);
  transform: translateY(-4px) scale(1.06);
  box-shadow:
    0 8px 24px var(--ms, rgba(37,99,235,.28)),
    0 0 0 3px color-mix(in srgb, var(--mc,#2563eb) 10%, transparent);
}
.lp-modulo-btn:active { transform: scale(.95); }
.lp-micon  { flex-shrink: 0; }
.lp-mlabel { font-weight: 900; }
.lp-marrow { opacity: .5; transition: opacity .15s, transform .2s cubic-bezier(.34,1.56,.64,1); }
.lp-modulo-btn:hover .lp-marrow { opacity: 1; transform: translateY(3px); }

/* Chip de perfil activo — con glow */
.lp-active-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: color-mix(in srgb, var(--ac,#2563eb) 12%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--ac,#2563eb) 30%, transparent);
  border-radius: 14px; padding: 8px 16px;
  font-size: 12.5px; color: var(--ac,#2563eb);
  margin-top: 10px; max-width: 100%;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--ac,#2563eb) 20%, transparent);
  animation: popIn .3s cubic-bezier(.34,1.56,.64,1) both;
}
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
  .lp-active-chip { background: rgba(37,99,235,.1); border-color: rgba(37,99,235,.3); box-shadow: 0 4px 16px rgba(37,99,235,.2); }
  .lp-modulo-btn:hover { opacity: .88; border-color: var(--mc, #2563eb); }
}

/* Input con perfil seleccionado — resaltado por color del rol */
.lp-input--filled {
  border-color: var(--fill-color, #2563eb) !important;
  background: color-mix(in srgb, var(--fill-color,#2563eb) 5%, #fff) !important;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--fill-color,#2563eb) 15%, transparent),
    0 4px 16px color-mix(in srgb, var(--fill-color,#2563eb) 12%, transparent) !important;
}
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
  .lp-input--filled { border-color: #2563eb !important; box-shadow: 0 0 0 3px rgba(37,99,235,.1) !important; }
}

/* Animación heroFloat para partículas del login */
@keyframes heroFloat {
  from { transform: translateY(0) scale(1); opacity: var(--op, .4); }
  to   { transform: translateY(-14px) scale(1.2); opacity: calc(var(--op, .4) * 0.6); }
}

@media (max-width: 480px) {
  .lp-card { border-radius: 18px; }
  .lp-header { padding: 26px 18px 18px; }
  .lp-form { padding: 18px 18px 14px; }
  .lp-modulo-btn { padding: 7px 10px; font-size: .72rem; }
}

/* ══════════════════════════════════════════════════════════════
   LOGIN v9.0 — Tarjeta única, chips de módulo en fila
══════════════════════════════════════════════════════════════ */

/* Ancho cómodo para ver los 4 chips en una fila */
.lp9-card {
  max-width: 500px;
}

/* ─── Header de la tarjeta v9 ─── */
.lp9-header {
  padding: 28px 28px 0;
  background: linear-gradient(180deg, #f5f8ff 0%, rgba(255,255,255,0) 100%);
  border-bottom: 1px solid rgba(37,99,235,.07);
  padding-bottom: 18px;
}

/* Brand compacto en una fila */
.lp9-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.lp9-logo {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  border: 1.5px solid rgba(37,99,235,.18);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 4px 16px rgba(37,99,235,.18);
}
.lp9-brand-text { flex: 1; }
.lp9-title { font-size: 1.05rem; font-weight: 900; color: #0f172a; margin: 0 0 2px; letter-spacing: -.3px; }
.lp9-sub   { font-size: .72rem; color: #94a3b8; margin: 0; font-weight: 500; }

/* Chip conexión API */
.lp9-api-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f0fdf4; border: 1px solid #16a34a25;
  border-radius: 99px; padding: 3px 9px;
  font-size: 10px; font-weight: 700; color: #15803d;
  white-space: nowrap; flex-shrink: 0;
}
.lp9-api-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #16a34a; flex-shrink: 0;
  animation: apiPulse 2s ease-in-out infinite;
}
@keyframes apiPulse { 0%,100%{box-shadow:0 0 0 2px rgba(22,163,74,.2)} 50%{box-shadow:0 0 0 4px rgba(22,163,74,.15)} }

/* Divisor animado */
.lp9-divider {
  height: 1.5px; border-radius: 99px;
  background: linear-gradient(90deg, transparent, #2563eb55, #7c3aed55, transparent);
  margin: 0 0 10px;
}

/* Hint de módulos */
.lp9-mod-hint {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: #94a3b8; text-align: center;
  margin: 0 0 10px;
}

/* ── Fila de chips ── */
.lp9-chips-row {
  display: flex;
  gap: 7px;
  flex-wrap: nowrap;
  justify-content: center;
  position: relative;
}

/* Wrap para posicionar el dropdown */
.lp9-chip-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

/* Chip de módulo */
.lp9-chip {
  width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  background: var(--mb, rgba(37,99,235,.08));
  border: 1.5px solid var(--mbr, rgba(37,99,235,.2));
  border-radius: 13px;
  cursor: pointer; font-family: inherit;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  color: var(--mc, #2563eb);
  position: relative; overflow: hidden;
}
.lp9-chip::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.45) 50%, transparent 60%);
  background-size: 250% 100%; background-position: -200% 0;
  transition: background-position .5s ease; pointer-events: none; border-radius: inherit;
}
.lp9-chip:hover::before { background-position: 200% 0; }
.lp9-chip:hover {
  background: color-mix(in srgb, var(--mc,#2563eb) 14%, white);
  border-color: var(--mc, #2563eb);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--ms, rgba(37,99,235,.25));
}
.lp9-chip.lp9-chip--open {
  background: color-mix(in srgb, var(--mc,#2563eb) 16%, white);
  border-color: var(--mc, #2563eb);
  box-shadow: 0 4px 16px var(--ms, rgba(37,99,235,.2));
  border-bottom-left-radius: 4px; border-bottom-right-radius: 4px;
}
@supports not (background: color-mix(in srgb, red 10%, white)) {
  .lp9-chip:hover, .lp9-chip.lp9-chip--open { background: var(--mb); border-color: var(--mc); }
}
.lp9-chip-label {
  font-size: 11px; font-weight: 900; line-height: 1;
  color: var(--mc, #2563eb);
}
.lp9-chip-arrow {
  font-size: 12px; color: var(--mc, #2563eb); opacity: .6;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), opacity .15s;
}
.lp9-chip:hover .lp9-chip-arrow { opacity: 1; }

/* Dropdown de perfiles */
.lp9-dropdown {
  position: absolute;
  top: 100%; left: 0; right: 0;
  z-index: 200;
  background: #fff;
  border: 1.5px solid;
  border-top: none;
  border-radius: 0 0 13px 13px;
  padding: 5px 5px 7px;
  display: flex; flex-direction: column; gap: 3px;
  box-shadow: 0 12px 32px rgba(0,0,0,.14);
  animation: popIn .18s cubic-bezier(.34,1.56,.64,1) both;
  min-width: 180px;
}

/* Item de perfil en dropdown */
.lp9-acc-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 9px; border: none;
  cursor: pointer; text-align: left; font-family: inherit;
  background: transparent;
  transition: background .14s, transform .12s;
  width: 100%;
}
.lp9-acc-item:hover {
  background: #f1f5ff;
  transform: translateX(2px);
}

/* Bottom section */
.lp9-bottom {
  padding: 0 28px 20px;
}

/* Responsive: en pantallas estrechas los chips se ajustan */
@media (max-width: 480px) {
  .lp9-header { padding: 20px 16px 14px; }
  .lp9-brand { gap: 10px; }
  .lp9-logo { width: 44px; height: 44px; }
  .lp9-title { font-size: .92rem; }
  .lp9-chips-row { flex-wrap: wrap; gap: 6px; }
  .lp9-chip-wrap { flex: 1 1 calc(50% - 3px); min-width: 100px; }
  .lp9-bottom { padding: 0 16px 16px; }
  .lp-form { padding: 16px 16px 12px; }
}
@media (max-width: 340px) {
  .lp9-chip-wrap { flex: 1 1 100%; }
}

/* ══════════════════════════════════════════════════════════════
   GestionPage — Banners de estado en modal de comprobante
══════════════════════════════════════════════════════════════ */

/* Banner CTA para solicitudes aprobadas listas para entrega */
.gest-entrega-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(13,148,136,.08), rgba(20,184,166,.06));
  border: 1.5px solid rgba(20,184,166,.3);
  border-radius: var(--r-lg);
  flex-wrap: wrap;
}
.gest-entrega-cta-info {
  display: flex; align-items: center; gap: 12px; flex: 1; min-width: 200px;
}

/* Banner entregada */
.gest-entregada-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: #f0fdf4; border: 1.5px solid #bbf7d0;
  border-radius: var(--r-lg);
  flex-wrap: wrap;
}
[data-theme="dark"] .gest-entregada-banner { background: rgba(22,163,74,.08); border-color: #166534; }

/* Banner pendiente */
.gest-pendiente-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: #fffbeb; border: 1.5px solid #fde68a;
  border-radius: var(--r-lg);
}
[data-theme="dark"] .gest-pendiente-banner { background: rgba(217,119,6,.08); border-color: rgba(217,119,6,.3); }

/* Banner rechazada */
.gest-rechazada-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: #fef2f2; border: 1.5px solid #fca5a5;
  border-radius: var(--r-lg);
}
[data-theme="dark"] .gest-rechazada-banner { background: rgba(220,38,38,.08); border-color: #7f1d1d; }

/* ══════════════════════════════════════════════════════════════
   FormulariosPage — Secciones del formulario físico
══════════════════════════════════════════════════════════════ */

/* Separador de sección dentro del formulario */
.form-section-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--review-border);
}
.form-section-label .material-symbols-outlined { font-size: 15px; }

/* Grid de 3 columnas para Coordinador */
.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 680px) {
  .form-grid-3 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   ConfiguracionPage — Catálogo con toggle de disponibilidad
══════════════════════════════════════════════════════════════ */

/* Grid de tarjetas de artículo */
.cat-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

/* Tarjeta de artículo */
.cat-item-card {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: var(--surface-2);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  transition: all .18s ease;
}
.cat-item-card:hover { border-color: var(--primary); }

/* Artículo desactivado */
.cat-item-card.cat-item-off {
  opacity: .65;
  background: var(--surface);
  border-color: var(--border-light);
}
.cat-item-card.cat-item-off .cat-item-name {
  text-decoration: line-through;
  color: var(--text-3);
}

/* Nombre del artículo */
.cat-item-name {
  flex: 1; font-size: 12.5px; font-weight: 600;
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0;
}

/* Chip de estado */
.cat-item-chip {
  flex-shrink: 0;
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 99px;
  text-transform: uppercase;
}
.cat-item-chip.chip-on {
  background: var(--approved-bg);
  color: var(--approved-color);
  border: 1px solid var(--approved-border);
}
.cat-item-chip.chip-off {
  background: var(--rejected-bg);
  color: var(--rejected-color);
  border: 1px solid var(--rejected-border);
}

/* Botón eliminar del catálogo */
.cat-item-del {
  flex-shrink: 0;
  padding: 3px 6px !important;
  opacity: 0;
  transition: opacity .15s;
}
.cat-item-card:hover .cat-item-del { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   LoginPage v10 — Wizard 3 pasos: Institución → Función → Acceso
   Clases: lp10-*
══════════════════════════════════════════════════════════════ */

/* ── Tarjeta principal (sobreescribe lp-card para más altura) ── */
.lp10-card {
  width: 100%;
  max-width: 500px;
  min-height: auto;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,.18), 0 8px 30px rgba(0,0,0,.10);
  position: relative;
  z-index: 1;
}

/* ── Header fijo con logo + nombre + chip API ── */
.lp10-top-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px 14px;
  border-bottom: 1.5px solid var(--border-light, #e2e8f0);
  background: var(--surface, #fff);
  flex-shrink: 0;
}

/* ── Barra de progreso de 3 pasos ── */
.lp10-progress {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 14px 24px 10px;
  background: var(--surface, #fff);
  border-bottom: 1.5px solid var(--border-light, #e2e8f0);
  flex-shrink: 0;
  position: relative;
}

/* Línea conectora entre pasos */
.lp10-progress::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(50% - 80px);
  width: 160px;
  height: 2px;
  background: var(--border-light, #e2e8f0);
  z-index: 0;
}

.lp10-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
  max-width: 110px;
  cursor: default;
  position: relative;
  z-index: 1;
}

.lp10-progress-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-2, #f1f5f9);
  border: 2px solid var(--border-light, #e2e8f0);
  transition: all .28s cubic-bezier(.34,1.56,.64,1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.lp10-progress-step.active .lp10-progress-dot {
  border-color: currentColor;
  background: currentColor;
  box-shadow: 0 4px 14px currentColor;
}

.lp10-progress-step.current .lp10-progress-dot {
  transform: scale(1.2);
  box-shadow: 0 4px 18px currentColor;
}

/* Tilde dentro del dot cuando completado (no current) */
.lp10-progress-step.active:not(.current) .lp10-progress-dot::after {
  content: '✓';
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.lp10-progress-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text-3, #64748b);
  transition: color .2s;
  white-space: nowrap;
}

.lp10-progress-step.active .lp10-progress-label {
  color: var(--text, #0f172a);
  font-weight: 800;
}

.lp10-progress-step.current .lp10-progress-label {
  font-weight: 900;
}

/* ── Contenedor scrollable del contenido por paso ── */
.lp10-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 8px;
  background: var(--surface, #fff);
  min-height: 0;
  scroll-behavior: smooth;
}

/* Scrollbar fina */
.lp10-body::-webkit-scrollbar { width: 4px; }
.lp10-body::-webkit-scrollbar-track { background: transparent; }
.lp10-body::-webkit-scrollbar-thumb { background: var(--border-light, #e2e8f0); border-radius: 2px; }

/* ── Wrapper animado de cada paso ── */
.lp10-paso {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Header de cada paso: chip + título + descripción ── */
.lp10-paso-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 4px;
}

.lp10-paso-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-2, #f1f5f9);
  border: 1.5px solid var(--border-light, #e2e8f0);
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-3, #64748b);
  letter-spacing: .03em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 2px;
}

.lp10-paso-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--text, #0f172a);
  letter-spacing: -.4px;
  line-height: 1.2;
}

.lp10-paso-desc {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3, #64748b);
  line-height: 1.5;
}

/* ── Grid de 2 columnas para las cards de institución ── */
.lp10-inst-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Card clickable de institución ── */
.lp10-inst-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 16px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  outline: none;
  animation: fadeSlideUp .35s ease both;
  overflow: hidden;
}

.lp10-inst-card:focus-visible {
  outline: 3px solid var(--primary, #2563eb);
  outline-offset: 2px;
}

/* ── Botón volver (← Cambiar) ── */
.lp10-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface-2, #f1f5f9);
  border: 1.5px solid var(--border-light, #e2e8f0);
  color: var(--text-3, #64748b);
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
}

.lp10-back-btn:hover {
  background: var(--surface, #fff);
  border-color: var(--primary, #2563eb);
  color: var(--primary, #2563eb);
  transform: translateX(-2px);
}

/* ── Flujo visual (pasos internos de la institución) ── */
.lp10-flujo {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface-2, #f8fafc);
  border: 1.5px solid var(--border-light, #e2e8f0);
  border-radius: 14px;
  padding: 10px 12px;
  overflow: hidden;
}

.lp10-flujo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
}

.lp10-flujo-arrow {
  display: flex;
  justify-content: center;
  padding: 2px 0;
  opacity: .5;
}

/* ── Lista de roles ── */
.lp10-roles-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Item de rol clickable ── */
.lp10-rol-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--border-light, #e2e8f0);
  border-left: 4px solid var(--rc, #6b7280);
  background: var(--surface, #fff);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  outline: none;
  width: 100%;
}

.lp10-rol-item:focus-visible {
  outline: 3px solid var(--rc, #6b7280);
  outline-offset: 2px;
}

/*
 * LoginPage — SIEMPRE modo claro, independientemente del tema global.
 * Se sobreescriben las variables CSS para que la tarjeta de login
 * use siempre colores light aunque el usuario tenga dark mode activo.
 */
.lp-root,
.lp-card,
.lp10-card,
.lp10-top-bar,
.lp10-progress,
.lp10-body,
.lp10-paso,
.lp10-flujo,
.lp10-inst-card,
.lp10-rol-item,
.lp10-back-btn,
.lp10-paso-chip {
  color-scheme: light;
}

/* Fondo raíz siempre claro */
.lp-root {
  background: linear-gradient(145deg, #eef2ff 0%, #e0eaff 35%, #f0e8ff 65%, #ede9fe 100%) !important;
}

/* Tarjeta siempre blanca */
.lp10-card {
  background: #ffffff !important;
}

.lp10-top-bar,
.lp10-progress,
.lp10-body {
  background: #ffffff !important;
  color: #0f172a !important;
}

.lp10-progress-dot {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

.lp10-flujo {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

.lp10-back-btn {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #64748b !important;
}

.lp10-rol-item {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

.lp10-paso-chip {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #64748b !important;
}

/* Textos siempre oscuros dentro del login */
.lp10-paso-title  { color: #0f172a !important; }
.lp10-paso-desc   { color: #64748b !important; }
.lp10-flujo-item  { color: #0f172a; }

/* Inputs del login siempre claros */
.lp-root .lp-input {
  background: #f8faff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}
.lp-root .lp-label   { color: #475569 !important; }
.lp-root .lp-footer  { color: #94a3b8 !important; }

/* ── Responsive ── */
@media (max-width: 540px) {
  .lp10-card { max-width: 100%; border-radius: 18px; }
  .lp10-top-bar { padding: 14px 16px 12px; }
  .lp10-body { padding: 16px 16px 6px; }
  .lp10-inst-grid { grid-template-columns: 1fr; gap: 10px; }
  .lp10-inst-card { padding: 16px 14px 14px; flex-direction: row; text-align: left; }
  .lp10-progress { padding: 12px 16px 8px; }
  .lp10-paso-title { font-size: 16px; }
}

@media (max-width: 360px) {
  .lp10-progress-label { font-size: 9px; }
  .lp10-progress-dot { width: 18px; height: 18px; }
}

/* ══════════════════════════════════════════════════════════════
   LoginPage v13 — Grande, espacioso, modo claro/oscuro nativo
   Clases: lp13-*
   Dark mode: se activa automáticamente con [data-theme="dark"]
══════════════════════════════════════════════════════════════ */

/* ── Variables del login — Neumorphism + Cyan Glow UNES ── */
:root {
  --lp-bg:          var(--neu-bg);
  --lp-card:        var(--neu-bg);
  --lp-border:      rgba(0,180,216,.18);
  --lp-border-btn:  rgba(0,180,216,.18);
  --lp-text:        var(--text);
  --lp-text2:       var(--text-2);
  --lp-text3:       var(--text-3);
  --lp-surface:     var(--surface-2);
  --lp-surface2:    var(--surface-3);
  --lp-input-bg:    var(--neu-bg);
  --lp-notice-bg:   rgba(0,180,216,.08);
  --lp-notice-brd:  rgba(0,180,216,.22);
  --lp-notice-txt:  var(--cyan, #00b4d8);
  --lp-accent:      var(--cyan, #00b4d8);
  --lp-accent-hov:  var(--cyan-dark, #0088a8);
  --lp-accent-glow: rgba(0,180,216,.35);
  --lp-shadow:
    var(--neu-raised),
    0 0 28px rgba(0,180,216,.22);
  --lp-shadow-hov:
    var(--neu-raised-hover),
    0 0 40px rgba(0,180,216,.35);
  --lp-footer-bg:   var(--surface-2);
}

[data-theme="dark"] {
  --lp-bg:          var(--neu-bg);
  --lp-card:        var(--neu-bg);
  --lp-border:      rgba(34,211,238,.18);
  --lp-border-btn:  rgba(34,211,238,.18);
  --lp-text:        var(--text);
  --lp-text2:       var(--text-2);
  --lp-text3:       var(--text-3);
  --lp-surface:     var(--surface-2);
  --lp-surface2:    var(--surface-3);
  --lp-input-bg:    var(--neu-bg);
  --lp-notice-bg:   rgba(34,211,238,.10);
  --lp-notice-brd:  rgba(34,211,238,.25);
  --lp-notice-txt:  var(--cyan, #22d3ee);
  --lp-accent:      var(--cyan, #22d3ee);
  --lp-accent-hov:  var(--cyan-dark, #0891b2);
  --lp-accent-glow: rgba(34,211,238,.35);
  --lp-shadow:
    var(--neu-raised),
    0 0 28px rgba(34,211,238,.20);
  --lp-shadow-hov:
    var(--neu-raised-hover),
    0 0 40px rgba(34,211,238,.32);
  --lp-footer-bg:   var(--surface-2);
}

@keyframes lp13FadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Raíz + Ambient Cyan Glow ── */
.lp13-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 56px;
  background: var(--lp-bg);
  font-family: inherit;
  animation: lp13FadeUp .35s ease both;
  position: relative;
  /* Glow ambiente cyan en esquinas */
  overflow: hidden;
}
/* Orbes decorativos de luz cyan en el fondo */
.lp13-root::before,
.lp13-root::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.lp13-root::before {
  width: 500px; height: 500px;
  top: -180px; left: -180px;
  background: radial-gradient(circle, rgba(0,180,216,.12) 0%, transparent 70%);
  animation: lp13OrbFloat1 8s ease-in-out infinite alternate;
}
.lp13-root::after {
  width: 400px; height: 400px;
  bottom: -140px; right: -140px;
  background: radial-gradient(circle, rgba(0,180,216,.10) 0%, transparent 70%);
  animation: lp13OrbFloat2 10s ease-in-out infinite alternate;
}
@keyframes lp13OrbFloat1 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px,20px) scale(1.08); }
}
@keyframes lp13OrbFloat2 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-20px,-30px) scale(1.06); }
}

/* ── Tarjeta — Neumorphism raised + Cyan Glow ── */
.lp13-card {
  width: 100%;
  max-width: 540px;
  background: var(--neu-bg);
  border-radius: var(--neu-r-xl);
  border: 1px solid rgba(0,180,216,.14);
  box-shadow: var(--lp-shadow);
  overflow: hidden;
  transition: var(--neu-t);
  position: relative;
  z-index: 1;
}
.lp13-card:focus-within {
  box-shadow: var(--lp-shadow-hov);
  border-color: rgba(0,180,216,.32);
}

/* ── Toggle de tema — Neumorphism ── */
.lp13-theme-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px 9px 13px;
  border-radius: var(--neu-r-pill);
  border: none;
  background: var(--neu-bg);
  box-shadow: var(--shadow-sm);
  color: var(--lp-text2);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--neu-t), color var(--t-fast);
  z-index: 100;
}
.lp13-theme-btn:hover {
  box-shadow: var(--shadow-md);
  color: var(--primary);
}
.lp13-theme-btn:active {
  box-shadow: var(--neu-inset);
}
.lp13-theme-lbl {
  font-size: 12.5px;
}

/* ── Header + Cyan Glow ── */
.lp13-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 30px 22px;
  border-bottom: 1px solid rgba(0,180,216,.18);
  background: var(--lp-card);
  box-shadow: 0 2px 10px rgba(0,180,216,.08);
}
.lp13-header-logo {
  width: 50px;
  height: 50px;
  border-radius: var(--neu-r-md);
  background: var(--neu-bg);
  border: none;
  box-shadow:
    var(--shadow-sm),
    0 0 14px rgba(0,180,216,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--neu-t);
}
.lp13-header-logo:hover {
  box-shadow:
    var(--shadow-md),
    0 0 22px rgba(0,180,216,.38);
  transform: scale(1.05);
}
.lp13-header-text {
  flex: 1;
  min-width: 0;
}
.lp13-header-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--cyan, #00b4d8);
  text-shadow: 0 0 12px rgba(0,180,216,.30);
  line-height: 1.2;
  letter-spacing: -.2px;
}
.lp13-header-sub {
  font-size: 13px;
  color: var(--lp-text3);
  margin-top: 2px;
}

/* ── Barra de pasos + Cyan Glow ── */
.lp13-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 18px 30px 14px;
  background: var(--lp-surface);
  border-bottom: 1px solid rgba(0,180,216,.15);
  box-shadow: 0 2px 8px rgba(0,180,216,.06);
}
.lp13-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  flex: 1;
}
.lp13-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--lp-border-btn);
  background: var(--lp-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--lp-text3);
  transition: all .2s ease;
  position: relative;
  z-index: 1;
}
.lp13-step-num {
  font-size: 11px;
  font-weight: 700;
}
.lp13-step.active .lp13-step-dot {
  border-color: var(--lp-accent);
  background: var(--lp-accent);
  color: #fff;
  box-shadow:
    0 0 0 4px var(--lp-accent-glow),
    0 0 14px rgba(0,180,216,.45);
}
.lp13-step.done .lp13-step-dot {
  border-color: var(--lp-accent);
  background: var(--lp-accent);
  color: #fff;
  box-shadow: 0 0 8px rgba(0,180,216,.30);
}
.lp13-step-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--lp-text3);
  white-space: nowrap;
  transition: color .2s;
}
.lp13-step.active .lp13-step-lbl { color: var(--lp-accent); font-weight: 700; }
.lp13-step.done  .lp13-step-lbl  { color: var(--lp-accent); }
/* Línea conectora */
.lp13-step-line {
  position: absolute;
  top: 13px;
  left: calc(50% + 14px);
  right: calc(-50% + 14px);
  height: 2px;
  background: var(--lp-border-btn);
  z-index: 0;
  transition: background .2s;
}
.lp13-step.done .lp13-step-line {
  background: var(--lp-accent);
  opacity: .5;
  box-shadow: 0 0 6px rgba(0,180,216,.35);
}

/* ── Body ── */
.lp13-body {
  padding: 28px 30px 24px;
  background: var(--lp-card);
}

/* ── Paso genérico ── */
.lp13-paso {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lp13-paso-hint {
  font-size: 14px;
  color: var(--lp-text2);
  margin: 0;
  line-height: 1.4;
  font-weight: 500;
}

/* ── Lista instituciones ── */
.lp13-inst-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp13-inst-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--neu-r-lg);
  border: 1px solid rgba(0,180,216,.10);
  background: var(--neu-bg);
  box-shadow:
    var(--shadow-sm),
    0 0 10px rgba(0,180,216,.10);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
  transition: var(--neu-t);
  outline: none;
}
.lp13-inst-btn:hover {
  box-shadow:
    var(--shadow-md),
    0 0 20px rgba(0,180,216,.24);
  border-color: rgba(0,180,216,.30);
}
.lp13-inst-btn:active {
  box-shadow:
    var(--neu-inset),
    0 0 10px rgba(0,180,216,.14);
}
.lp13-inst-btn:focus-visible {
  outline: none;
  box-shadow:
    var(--neu-inset-focus),
    0 0 18px rgba(0,180,216,.28);
}
.lp13-inst-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}
.lp13-inst-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lp13-inst-name {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--lp-text);
}
.lp13-inst-sub {
  font-size: 12.5px;
  color: var(--lp-text3);
}
.lp13-inst-arrow {
  font-size: 20px !important;
  color: var(--lp-text3);
  flex-shrink: 0;
  transition: color .15s, transform .15s;
}
.lp13-inst-btn:hover .lp13-inst-arrow {
  color: var(--lp-accent);
  transform: translateX(3px);
}

/* ── Nav (volver + chip) ── */
.lp13-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lp13-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: var(--neu-r-md);
  border: none;
  background: var(--neu-bg);
  box-shadow: var(--shadow-xs);
  color: var(--lp-text2);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--neu-t), color var(--t-fast);
  white-space: nowrap;
}
.lp13-back:hover {
  box-shadow: var(--shadow-sm);
  color: var(--primary);
  transform: translateX(-2px);
}
.lp13-back:active { box-shadow: var(--neu-inset); }
.lp13-inst-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--neu-r-pill);
  background: var(--neu-bg);
  border: none;
  box-shadow: var(--shadow-xs);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--lp-text2);
}

/* ── Lista niveles ── */
.lp13-nivel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp13-nivel-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1.5px solid rgba(0,180,216,.15);
  background: var(--lp-card);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
  box-shadow: 0 0 8px rgba(0,180,216,.08);
  transition: border-color .15s, box-shadow .15s, background .15s, transform .12s;
  outline: none;
}
.lp13-nivel-btn:hover {
  border-color: var(--lp-accent);
  background: var(--lp-surface);
  box-shadow:
    0 4px 16px var(--lp-accent-glow),
    0 0 20px rgba(0,180,216,.22);
  transform: translateY(-1px);
}
.lp13-nivel-btn:active { transform: translateY(0) scale(.99); }
.lp13-nivel-btn:focus-visible {
  outline: 3px solid var(--lp-accent-glow);
  outline-offset: 2px;
}
.lp13-nivel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--lp-surface2);
  border: 1.5px solid var(--lp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lp-text2);
  flex-shrink: 0;
  transition: background .15s, border-color .15s, color .15s;
}
.lp13-nivel-btn:hover .lp13-nivel-icon {
  background: var(--lp-notice-bg);
  border-color: var(--lp-notice-brd);
  color: var(--lp-accent);
}
.lp13-nivel-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lp13-nivel-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--lp-text);
}
.lp13-nivel-desc {
  font-size: 12.5px;
  color: var(--lp-text3);
  line-height: 1.35;
}
.lp13-nivel-arrow {
  font-size: 20px !important;
  color: var(--lp-text3);
  flex-shrink: 0;
  transition: color .15s, transform .15s;
}
.lp13-nivel-btn:hover .lp13-nivel-arrow {
  color: var(--lp-accent);
  transform: translateX(3px);
}

/* ── Breadcrumb paso 2 ── */
.lp13-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--lp-surface2);
  border: 1.5px solid var(--lp-border);
  font-size: 12px;
  color: var(--lp-text2);
  font-weight: 600;
}

/* ── Perfil seleccionado ── */
.lp13-perfil {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--lp-surface);
  border: 1.5px solid var(--lp-border);
}
.lp13-perfil-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: var(--lp-notice-bg);
  border: 1.5px solid var(--lp-notice-brd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lp-accent);
  flex-shrink: 0;
}
.lp13-perfil-name {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--lp-text);
}
.lp13-perfil-desc {
  font-size: 12.5px;
  color: var(--lp-text2);
  margin-top: 2px;
}

/* ── Aviso ── */
.lp13-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--lp-notice-bg);
  border: 1px solid var(--lp-notice-brd);
  font-size: 13px;
  color: var(--lp-notice-txt);
  line-height: 1.5;
}

/* ── Campos ── */
.lp13-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lp13-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-text2);
}
.lp13-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.lp13-input-icon {
  position: absolute;
  left: 14px;
  font-size: 18px !important;
  color: var(--lp-text3);
  pointer-events: none;
  z-index: 1;
}
.lp13-input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  border-radius: var(--neu-r-md);
  border: none;
  background: var(--neu-bg);
  box-shadow: var(--neu-inset);
  color: var(--lp-text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: box-shadow .18s;
  color-scheme: inherit;
}
.lp13-input:focus {
  box-shadow: var(--neu-inset-focus);
}
.lp13-input--err {
  box-shadow:
    inset -4px -4px 9px var(--neu-light),
    inset  4px  4px 9px var(--neu-shadow),
    0 0 0 2px rgba(239,68,68,.45) !important;
}
.lp13-input--ok {
  box-shadow:
    inset -4px -4px 9px var(--neu-light),
    inset  4px  4px 9px var(--neu-shadow),
    0 0 0 2px rgba(34,197,94,.45) !important;
}
.lp13-input--pass {
  padding-right: 46px;
}
.lp13-eye {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  padding: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--lp-text3);
  transition: color .15s;
}
.lp13-eye:hover { color: var(--lp-text2); }
.lp13-field-msg {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  margin-top: 1px;
}
.lp13-field-msg--err { color: #ef4444; }
.lp13-field-msg--ok  { color: #16a34a; }

/* ── Botón submit — Neumorphism + Cyan Glow ── */
.lp13-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 15px 20px;
  border-radius: var(--neu-r-md);
  border: 1px solid rgba(0,180,216,.22);
  background: var(--neu-bg);
  box-shadow:
    var(--neu-raised),
    0 0 18px rgba(0,180,216,.22);
  color: var(--cyan, #00b4d8);
  font-size: 15.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: var(--neu-t);
  margin-top: 6px;
  letter-spacing: .01em;
}
.lp13-submit:hover:not(:disabled) {
  box-shadow:
    var(--neu-raised-hover),
    0 0 28px rgba(0,180,216,.38);
  color: var(--cyan-dark, #0088a8);
  border-color: rgba(0,180,216,.40);
}
.lp13-submit:active:not(:disabled) {
  box-shadow:
    var(--neu-inset),
    0 0 12px rgba(0,180,216,.20);
  transform: scale(.99);
  color: var(--cyan, #00b4d8);
}
.lp13-submit:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* ── Footer + cyan glow sutil ── */
.lp13-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 30px 16px;
  font-size: 12px;
  color: var(--lp-text3);
  background: var(--lp-footer-bg);
  border-top: 1px solid rgba(0,180,216,.15);
  box-shadow: 0 -2px 8px rgba(0,180,216,.06);
}

/* ══════════════════════════════════════════════════════════════
   TABLA DEMO — fuera de la tarjeta, al pie
══════════════════════════════════════════════════════════════ */
.lp13-demo-wrap {
  width: 100%;
  max-width: 540px;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.lp13-demo-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 12px;
  border: 1px solid var(--lp-border);
  background: var(--lp-card);
  color: var(--lp-text2);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}
.lp13-demo-toggle:hover {
  border-color: var(--lp-accent);
  color: var(--lp-accent);
  background: var(--lp-surface);
}
.lp13-demo-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  background: #fef9c3;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .06em;
  margin-left: 2px;
}
.lp13-demo-table-wrap {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid var(--lp-border);
  background: var(--lp-card);
  overflow: hidden;
  animation: lp13FadeUp .2s ease both;
}
.lp13-demo-table {
  width: 100%;
  border-collapse: collapse;
}
.lp13-demo-table thead th {
  padding: 10px 16px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--lp-text3);
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--lp-surface);
  border-bottom: 1px solid var(--lp-border);
}
.lp13-demo-table tbody tr {
  border-bottom: 1px solid var(--lp-border);
  cursor: pointer;
  transition: background .12s;
}
.lp13-demo-table tbody tr:last-child { border-bottom: none; }
.lp13-demo-table tbody tr:hover { background: var(--lp-surface); }
.lp13-demo-table tbody td {
  padding: 10px 16px;
  vertical-align: middle;
}
.lp13-demo-nombre {
  font-weight: 600;
  color: var(--lp-text);
  font-size: 13px;
}
.lp13-demo-rol {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  background: var(--lp-surface2);
  border: 1px solid var(--lp-border);
  color: var(--lp-text2);
  font-size: 11.5px;
  font-weight: 600;
}
.lp13-demo-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--lp-notice-bg);
  border: 1px solid var(--lp-notice-brd);
  color: var(--lp-accent);
  transition: all .12s;
}
.lp13-demo-table tbody tr:hover .lp13-demo-enter {
  background: var(--lp-accent);
  color: #fff;
  border-color: var(--lp-accent);
}

/* ── Responsive lp13 ── */
@media (max-width: 580px) {
  .lp13-root  { padding: 20px 12px 44px; }
  .lp13-card  { border-radius: 20px; }
  .lp13-header { padding: 20px 20px 16px; }
  .lp13-body  { padding: 20px 20px 18px; }
  .lp13-steps { padding: 14px 20px 12px; }
  .lp13-footer { padding: 11px 20px 13px; }
  .lp13-demo-wrap { max-width: 100%; }
  .lp13-theme-btn { top: 12px; right: 12px; padding: 7px 11px; }
  .lp13-theme-lbl { display: none; }
}
@media (max-width: 400px) {
  .lp13-header-title { font-size: 15px; }
  .lp13-step-lbl { font-size: 10px; }
  .lp13-inst-name, .lp13-nivel-name { font-size: 14px; }
  .lp13-submit { font-size: 14.5px; padding: 13px 16px; }
}

/* Toggle switch de disponibilidad */
.cat-toggle {
  position: relative; display: inline-block;
  width: 36px; height: 20px;
  flex-shrink: 0; cursor: pointer;
}
.cat-toggle input { opacity: 0; width: 0; height: 0; }
.cat-toggle-slider {
  position: absolute; inset: 0;
  background: #d1d5db; border-radius: 99px;
  transition: all .22s ease;
}
.cat-toggle-slider::before {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .22s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.cat-toggle input:checked + .cat-toggle-slider {
  background: var(--primary);
}
.cat-toggle input:checked + .cat-toggle-slider::before {
  transform: translateX(16px);
}
[data-theme="dark"] .cat-toggle-slider { background: #4b5563; }
[data-theme="dark"] .cat-toggle input:checked + .cat-toggle-slider { background: var(--primary); }

/* ══════════════════════════════════════════════════════════════
   FormulariosPage v5 — Layout responsive 2 columnas mejorado
══════════════════════════════════════════════════════════════ */

/* Layout principal del formulario — paso 3 */
.fm-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 22px;
  align-items: start;
  animation: slideUp .3s ease both;
}

/* Cabecera del paso 3 — ocupa el ancho total (span 2) */
.fm-paso3-header {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

/* Banner institucional del paso 3 */
.fm-inst-banner {
  transition: box-shadow .2s;
}
.fm-inst-banner:hover {
  box-shadow: none; /* el shadow lo maneja inline con accent color */
}

.fm-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* Aside / sidebar con sticky */
.fm-aside {
  min-width: 0;
}
.fm-sidebar { min-width: 0; }
.fm-sidebar-sticky { position: sticky; top: 88px; }

/* El card del aside siempre pegado */
.fm-aside .card { position: sticky; top: 20px; }

/* Grid interno de 2 columnas en el form */
.fm-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Mejorar el card-header en formularios */
.fm-main .card-header {
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(180deg, var(--surface-2, #f8faff) 0%, var(--surface, #fff) 100%);
}
.fm-main .card {
  box-shadow:
    0 1px 4px rgba(0,0,0,.05),
    0 4px 20px rgba(0,0,0,.04);
  border: 1px solid var(--border-light);
}
.fm-main .card:hover {
  box-shadow:
    0 2px 8px rgba(0,0,0,.06),
    0 8px 28px rgba(0,0,0,.07);
}

/* ── Item de compra ── */
.item-row-compra {
  padding: 18px 16px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-lg);
  margin-bottom: 14px;
  background: var(--surface);
  position: relative;
  transition: border-color .18s, box-shadow .18s;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.item-row-compra:last-child { margin-bottom: 0; }
.item-row-compra:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.07), 0 2px 8px rgba(0,0,0,.06);
}

/* Grid superior: Artículo | Marca | Cant | Precio */
.item-compra-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 90px 130px;
  gap: 12px;
  margin-bottom: 10px;
}

/* Badge número del artículo */
.item-num-badge {
  position: absolute; top: -11px; left: 18px;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  z-index: 1;
}
.item-num-badge--teal { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.item-num-badge--blue { background: linear-gradient(135deg, #2563eb, #3b82f6); }

/* Scroll del área de catálogo */
.chk-scroll-area {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 2px;
}
.chk-scroll-area::-webkit-scrollbar { width: 5px; }
.chk-scroll-area::-webkit-scrollbar-track { background: var(--surface-2); border-radius: 99px; }
.chk-scroll-area::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
.chk-scroll-area::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* Resumen de artículos seleccionados */
.fm-resumen-list {
  display: flex; flex-direction: column; gap: 5px;
  max-height: 280px; overflow-y: auto;
  margin-bottom: 4px;
}
.fm-resumen-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; padding: 5px 8px;
  border-radius: 6px; background: var(--surface-2);
}
.fm-resumen-total {
  display: flex; justify-content: space-between;
  align-items: center; font-size: 13px; font-weight: 800;
  color: var(--text); border-top: 1px solid var(--border-light);
  padding-top: 10px; margin-top: 6px;
}

/* ══════════════════════════════════════════════════════════════
   Checklist por categoría
══════════════════════════════════════════════════════════════ */

/* Bloque de categoría */
.chk-cat-block {
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-lg);
  margin: 0 0 10px 0;
  overflow: hidden;
}

/* Cabecera colapsable */
.chk-cat-header {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border: none; cursor: pointer;
  font-family: inherit;
  border-bottom: 1.5px solid transparent;
  transition: filter .15s;
}
.chk-cat-header:hover { filter: brightness(.97); }

/* Lista de ítems */
.chk-cat-items {
  padding: 4px 0 4px;
}

/* Fila de ítem */
.chk-item-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 16px;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
  transition: background .12s;
}
.chk-item-row:last-child { border-bottom: none; }
.chk-item-row:hover { background: var(--surface-2); }
.chk-item-row.chk-item-checked { background: #eff6ff; }
[data-theme="dark"] .chk-item-row.chk-item-checked { background: rgba(37,99,235,.08); }

/* Label con checkbox */
.chk-item-label {
  display: flex; align-items: center; gap: 10px;
  flex: 1; cursor: pointer; min-width: 0;
}
.chk-item-cb { position: absolute; opacity: 0; width: 0; height: 0; }

/* Ícono check */
.chk-item-check-icon {
  font-size: 20px !important;
  flex-shrink: 0;
  color: #9ca3af;
  transition: color .15s, font-variation-settings .15s;
}
.chk-item-checked .chk-item-check-icon { color: var(--primary); }

/* Nombre del artículo */
.chk-item-name {
  font-size: 13px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1;
}
.chk-item-checked .chk-item-name { color: var(--primary); font-weight: 700; }

/* Stepper de cantidad */
.chk-item-qty {
  display: flex; align-items: center; gap: 0;
  background: var(--surface-2); border: 1.5px solid var(--border-light);
  border-radius: var(--r-md); overflow: hidden;
  flex-shrink: 0;
}
.chk-qty-btn {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: none; background: transparent; cursor: pointer;
  color: var(--text-2); transition: background .12s, color .12s;
  font-family: inherit;
}
.chk-qty-btn:hover:not(:disabled) { background: var(--surface-3, #e5e7eb); color: var(--primary); }
.chk-qty-btn:disabled { opacity: .35; cursor: default; }
.chk-qty-plus:hover:not(:disabled) { background: var(--primary); color: #fff; }
.chk-qty-val {
  min-width: 28px; text-align: center;
  font-weight: 800; font-size: 14px; color: var(--primary);
  padding: 0 2px;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 900px) {
  /* El formulario pasa a 1 columna: aside se mueve al final */
  .fm-layout { grid-template-columns: 1fr; }
  .fm-aside .card { position: static; }
  .fm-sidebar-sticky { position: static; }
  /* Item compra: 2 columnas en tablet */
  .item-compra-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .fm-grid-2 { grid-template-columns: 1fr; }
  .form-grid-3 { grid-template-columns: 1fr 1fr; }
  /* Item compra: art + marca en fila, cant + precio en fila */
  .item-compra-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .form-grid-3 { grid-template-columns: 1fr; }
  .fm-grid-2 { grid-template-columns: 1fr; }
  /* Checklist: ítem más compacto en móvil */
  .chk-item-row { padding: 8px 12px; }
  .chk-item-name { font-size: 12.5px; }
  /* Card body padding reducido */
  .card-body { padding: 14px 12px; }
  .fm-inst-grid, .fm-tipo-grid { grid-template-columns: 1fr; }
  .fm-campus-grid { grid-template-columns: 1fr; }
  .fm-inst-card  { padding: 28px 18px 22px; }
  .fm-campus-card { padding: 26px 18px 20px; }
}

/* ════════════════════════════════════════════════════════════════
   MÓDULO VALES DE RECURSO — v1.0
   Expedientes, seguimiento de cuentas y movimientos
════════════════════════════════════════════════════════════════ */

/* ── Raíz del módulo ── */
.vl-root {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInUp .3s ease both;
}

/* ── Métricas superiores ── */
.vl-metricas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.vl-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1.5px solid transparent;
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: box-shadow .2s, transform .2s;
}
.vl-stat-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); transform: translateY(-2px); }
.vl-stat--green { border-color: #16a34a25; }
.vl-stat--amber { border-color: #f59e0b25; }
.vl-stat--red   { border-color: #dc262625; }
.vl-stat--purple{ border-color: #7c3aed25; }

.vl-stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.vl-stat--green .vl-stat-icon { background: #f0fdf4; color: #16a34a; }
.vl-stat--amber .vl-stat-icon { background: #fef3c7; color: #d97706; }
.vl-stat--red   .vl-stat-icon { background: #fee2e2; color: #dc2626; }
.vl-stat--purple .vl-stat-icon{ background: #f5f3ff; color: #7c3aed; }

.vl-stat-body { flex: 1; min-width: 0; }
.vl-stat-val  { font-size: 22px; font-weight: 900; letter-spacing: -.5px; color: var(--text); line-height: 1.1; }
.vl-stat-label{ font-size: 11.5px; color: var(--text-3); font-weight: 500; margin-top: 2px; }

/* ── Toolbar ── */
.vl-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.vl-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.vl-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .18s;
  font-family: inherit;
}
.vl-tab:hover { border-color: #16a34a; color: #16a34a; }
.vl-tab.active {
  background: #16a34a; color: #fff; border-color: #16a34a;
  box-shadow: 0 2px 10px #16a34a40;
}
.vl-tab-badge {
  background: rgba(255,255,255,.3);
  border-radius: 99px;
  padding: 1px 6px;
  font-size: 10.5px;
  font-weight: 800;
  min-width: 18px;
  text-align: center;
}
.vl-tab.active .vl-tab-badge { background: rgba(255,255,255,.25); }
.vl-tab:not(.active) .vl-tab-badge { background: var(--border); color: var(--text-3); }

.vl-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
}
.vl-search {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  min-width: 240px;
  transition: border-color .18s, box-shadow .18s;
}
.vl-search:focus-within { border-color: #16a34a; box-shadow: 0 0 0 3px #16a34a18; }
.vl-search input {
  border: none; background: transparent;
  font-size: 13px; color: var(--text); outline: none;
  flex: 1;
}
.vl-search input::placeholder { color: var(--text-3); }

/* ── Grid de cuentas ── */
.vl-cuentas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* ── Tarjeta de cuenta ── */
.vl-cuenta-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  cursor: pointer;
  transition: box-shadow .22s, transform .22s, border-color .22s;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
  animation: popIn .3s cubic-bezier(.34,1.56,.64,1) both;
}
.vl-cuenta-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #15803d, #16a34a, #22c55e);
  border-radius: 18px 18px 0 0;
}
.vl-cuenta-card:hover {
  box-shadow: 0 12px 36px rgba(22,163,74,.2);
  transform: translateY(-4px);
  border-color: #16a34a50;
}
.vl-card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.vl-card-body { display: flex; flex-direction: column; gap: 2px; }
.vl-card-montos {
  display: flex; align-items: center; gap: 0;
  background: var(--bg); border-radius: 10px; padding: 10px 12px;
}
.vl-card-monto-item { flex: 1; text-align: center; }
.vl-card-monto-sep  { width: 1px; height: 28px; background: var(--border); margin: 0 4px; }
.vl-card-monto-label{ display: block; font-size: 10px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.vl-card-monto-val  { display: block; font-size: 13.5px; font-weight: 800; color: var(--text); margin-top: 2px; }
.vl-card-progress   { display: flex; flex-direction: column; gap: 2px; }
.vl-card-footer     { display: flex; align-items: center; justify-content: space-between; }

/* ── Barra de progreso ── */
.vl-progress-bar {
  width: 100%; height: 8px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.vl-progress-fill {
  height: 100%;
  border-radius: 99px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
  min-width: 3px;
}

/* ── Estados vacío y loading ── */
.vl-loading, .vl-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 20px;
  color: var(--text-3);
  text-align: center;
}

/* ── Métricas del expediente ── */
.vl-metricas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px;
  background: var(--bg);
  border-radius: 14px;
  margin-bottom: 4px;
}
.vl-metrica {
  text-align: center;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
}
.vl-metrica-label { font-size: 10px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.vl-metrica-val   { font-size: 15px; font-weight: 900; margin-top: 4px; color: var(--text); }
.vl-metrica--autorizado { border-color: #e5e7eb; }
.vl-metrica--ejercido   { border-color: #fecaca; }
.vl-metrica--ejercido .vl-metrica-val { color: #dc2626; }
.vl-metrica--comprobado { border-color: #bbf7d0; }
.vl-metrica--comprobado .vl-metrica-val { color: #16a34a; }
.vl-metrica--saldo  { border-color: #fde68a; background: #fef9eb; }
.vl-metrica--saldo  .vl-metrica-val { color: #d97706; }
.vl-metrica--ok     { border-color: #bbf7d0; background: #f0fdf4; }
.vl-metrica--ok     .vl-metrica-val { color: #16a34a; }

/* ── Panel de expediente ── */
.vl-expediente-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(3px);
  z-index: 400;
  animation: fadeIn .2s ease both;
}
.vl-expediente-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(520px, 100vw);
  background: var(--surface);
  box-shadow: -8px 0 40px rgba(0,0,0,.2);
  z-index: 401;
  display: flex; flex-direction: column;
  animation: slideInRight .28s cubic-bezier(.34,1.56,.64,1) both;
  overflow: hidden;
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.vl-exp-header {
  padding: 18px 20px;
  display: flex; align-items: flex-start; gap: 12px;
  flex-shrink: 0;
  background: var(--surface);
}
.vl-exp-body {
  flex: 1; overflow-y: auto;
  padding: 16px 20px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.vl-progress-wrap { padding: 0 2px; }

/* Info del expediente */
.vl-exp-info {
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.vl-info-row {
  display: flex; align-items: flex-start;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.vl-info-row:last-child { border-bottom: none; }
.vl-info-key { min-width: 110px; font-size: 12px; color: var(--text-3); font-weight: 600; padding-top: 1px; }
.vl-info-val { font-size: 13px; color: var(--text); font-weight: 500; flex: 1; }

/* Acciones del expediente */
.vl-exp-acciones {
  display: flex; gap: 8px; flex-wrap: wrap;
}

/* Historial de movimientos */
.vl-movs-section { display: flex; flex-direction: column; gap: 10px; }
.vl-movs-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 800; color: var(--text-2);
  margin: 0;
}
.vl-movs-empty {
  display: flex; flex-direction: column;
  align-items: center; padding: 24px 0;
  color: var(--text-3);
}
.vl-movs-list { display: flex; flex-direction: column; gap: 8px; }
.vl-mov-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: border-color .15s;
  animation: fadeInUp .2s ease both;
}
.vl-mov-item:hover { border-color: var(--mov-color, #16a34a); }
.vl-mov-icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.vl-mov-body { flex: 1; min-width: 0; }
.vl-mov-desc { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.vl-mov-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 3px;
}
.vl-mov-monto {
  font-size: 15px; font-weight: 900; letter-spacing: -.3px;
  white-space: nowrap; flex-shrink: 0;
}

/* ── Modal de movimiento / nueva cuenta ── */
.vl-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .18s ease both;
}
.vl-modal {
  background: var(--surface);
  border-radius: 20px;
  width: 100%; max-width: 480px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  display: flex; flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
  animation: popIn .25s cubic-bezier(.34,1.56,.64,1) both;
}
.vl-modal--lg { max-width: 560px; }
.vl-modal-header {
  padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.vl-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
  display: flex; flex-direction: column; gap: 12px;
}
.vl-modal-footer {
  padding: 14px 20px 18px;
  display: flex; gap: 8px; justify-content: flex-end;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.vl-modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 8px; background: transparent;
  cursor: pointer; color: var(--text-2);
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.vl-modal-close:hover { background: var(--bg); color: var(--text); }

/* ── Pills de tipo de movimiento ── */
.vl-tipo-pills {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.vl-tipo-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 99px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: all .15s;
  font-family: inherit; color: var(--text-2);
}
.vl-tipo-pill:hover { border-color: var(--primary); color: var(--primary); }
.vl-tipo-pill.active {
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .vl-metricas-grid { grid-template-columns: repeat(2, 1fr); }
  .vl-metricas      { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .vl-metricas-grid { grid-template-columns: repeat(2, 1fr); }
  .vl-toolbar       { flex-direction: column; align-items: stretch; }
  .vl-toolbar-right { margin-left: 0; }
  .vl-search        { min-width: unset; width: 100%; }
  .vl-cuentas-grid  { grid-template-columns: 1fr; }
  .vl-expediente-panel { width: 100vw; }
}
@media (max-width: 480px) {
  .vl-metricas-grid { grid-template-columns: 1fr; }
  .vl-metricas      { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════════════════════
   NEUMORFISMO — Soft UI  v1.0
   Base: var(--neu-bg) ≈ #e8edf8 (light) / #161b22 (dark)
   Sombras duales: luz top-left + sombra bottom-right
   Inputs hundidos (inset). Sin bordes visibles.
   WCAG: indicador de foco visible adicional al box-shadow.
════════════════════════════════════════════════════════════ */

/* ── Superficie base neumórfica ─────────────────────────── */
.neu-surface {
  background: var(--neu-bg);
  border-radius: var(--neu-r-lg);
  box-shadow: var(--neu-raised);
  transition: var(--neu-t);
}

/* ── Botón neumórfico elevado (raised) ──────────────────── */
.neu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: var(--neu-r-md);
  border: none;
  background: var(--neu-bg);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--neu-raised);
  transition: var(--neu-t);
  outline: none;
  user-select: none;
  letter-spacing: .01em;
}
.neu-btn:hover:not(:disabled) {
  box-shadow: var(--neu-raised-hover);
  color: var(--text);
}
.neu-btn:active:not(:disabled) {
  box-shadow: var(--neu-raised-active);
  transform: scale(.98);
}
.neu-btn:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}
.neu-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* Variante acento (primary action) */
.neu-btn--primary {
  background: var(--neu-accent);
  color: #fff;
  box-shadow: var(--neu-accent-glow);
}
.neu-btn--primary:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: var(--neu-accent-glow), 0 6px 18px rgba(37,99,235,.3);
}

/* ── Input neumórfico (inset) ───────────────────────────── */
.neu-input {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--neu-r-sm);
  border: none;
  background: var(--neu-bg);
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  box-shadow: var(--neu-inset);
  transition: var(--neu-t);
  outline: none;
}
.neu-input::placeholder {
  color: var(--text-3);
}
.neu-input:focus {
  box-shadow: var(--neu-inset-focus);
}

/* ── Card neumórfica ────────────────────────────────────── */
.neu-card {
  background: var(--neu-bg);
  border-radius: var(--neu-r-lg);
  box-shadow: var(--neu-raised);
  padding: 20px 24px;
  transition: var(--neu-t);
}
.neu-card:hover {
  box-shadow: var(--neu-raised-hover);
}

/* ── Badge neumórfico pill ──────────────────────────────── */
.neu-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--neu-r-pill);
  font-size: 11px;
  font-weight: 700;
  background: var(--neu-bg);
  color: var(--text-2);
  box-shadow: var(--neu-raised);
  border: none;
}

/* ═══════════════════════════════════════════════════════
   DATE RANGE PICKER — neumórfico
═══════════════════════════════════════════════════════ */

.drp-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.drp-wrap--disabled { opacity: .45; pointer-events: none; }

.drp-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: .02em;
}

/* Trigger neumórfico */
.drp-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--neu-r-sm);
  border: none;
  background: var(--neu-bg);
  color: var(--text-3);
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--neu-raised);
  transition: var(--neu-t);
  text-align: left;
  outline: none;
}
.drp-trigger:hover {
  box-shadow: var(--neu-raised-hover);
  color: var(--text-2);
}
.drp-trigger--open,
.drp-trigger:focus-visible {
  box-shadow: var(--neu-inset-focus);
  color: var(--text);
}
.drp-trigger--has-value { color: var(--text); }

.drp-trigger-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drp-clear-btn {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-3);
  border-radius: 50%;
  transition: color .15s;
  font-family: inherit;
}
.drp-clear-btn:hover { color: var(--text); }

/* Popover */
.drp-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: var(--z-dropdown);
  background: var(--neu-bg);
  border-radius: var(--neu-r-lg);
  box-shadow: var(--neu-raised-hover), 0 24px 64px rgba(0,0,0,.18);
  padding: 16px;
  min-width: 300px;
  animation: scaleIn .18s cubic-bezier(.34,1.56,.64,1) both;
  transform-origin: top left;
}

/* Etiqueta de selección activa */
.drp-sel-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: var(--neu-r-sm);
  background: var(--neu-bg);
  box-shadow: var(--neu-inset);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 14px;
}

/* Mes — cabecera */
.drp-month { user-select: none; }

.drp-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.drp-month-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .01em;
}
.drp-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: var(--neu-r-sm);
  border: none;
  background: var(--neu-bg);
  color: var(--text-2);
  cursor: pointer;
  box-shadow: var(--neu-raised);
  transition: var(--neu-t);
  font-family: inherit;
}
.drp-nav-btn:hover {
  box-shadow: var(--neu-raised-hover);
  color: var(--text);
}
.drp-nav-btn:active {
  box-shadow: var(--neu-raised-active);
}
.drp-nav-btn:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Días de la semana */
.drp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
  gap: 2px;
}
.drp-weekday {
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-3);
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Grid de días */
.drp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

/* Día base */
.drp-day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--neu-r-sm);
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: box-shadow .15s, background .15s, color .15s;
  font-family: inherit;
  outline: none;
}
.drp-day:hover:not(.drp-day--disabled):not(.drp-day--start):not(.drp-day--end) {
  background: var(--neu-bg);
  box-shadow: var(--neu-raised);
  color: var(--text);
}
.drp-day:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 1px;
}

/* Día de otra vista (mes anterior/siguiente) */
.drp-day--other {
  color: var(--text-3);
  opacity: .4;
  cursor: default;
  pointer-events: none;
}

/* Hoy */
.drp-day--today {
  font-weight: 800;
  color: var(--neu-accent);
}
.drp-day--today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--neu-accent);
}

/* Inicio / Fin de rango → neumórfico con acento */
.drp-day--start,
.drp-day--end {
  background: var(--neu-accent);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--neu-accent-glow);
}
.drp-day--start:hover,
.drp-day--end:hover {
  filter: brightness(1.1);
  box-shadow: var(--neu-accent-glow), 0 4px 14px rgba(37,99,235,.35);
}

/* Días dentro del rango */
.drp-day--in-range {
  background: rgba(37,99,235,.1);
  color: var(--neu-accent);
  border-radius: 0;
}
.drp-day--start + .drp-day--in-range,
.drp-day--in-range:first-child { border-radius: var(--neu-r-sm) 0 0 var(--neu-r-sm); }
.drp-day--in-range + .drp-day--end { border-radius: 0 var(--neu-r-sm) var(--neu-r-sm) 0; }

/* Deshabilitado */
.drp-day--disabled {
  opacity: .3;
  cursor: not-allowed;
}

/* Foco activo (roving tabindex) */
.drp-day--focused {
  outline: 2px solid var(--neu-accent);
  outline-offset: 1px;
}

/* Hint + acciones */
.drp-hint {
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  min-height: 16px;
  margin: 10px 0 4px;
}
.drp-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid var(--neu-bg-dark);
  margin-top: 6px;
}
.drp-btn-clear {
  padding: 7px 14px;
  border-radius: var(--neu-r-sm);
  border: none;
  background: var(--neu-bg);
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--neu-raised);
  transition: var(--neu-t);
}
.drp-btn-clear:hover { box-shadow: var(--neu-raised-hover); color: var(--text-2); }
.drp-btn-close {
  padding: 7px 16px;
  border-radius: var(--neu-r-sm);
  border: none;
  background: var(--neu-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--neu-accent-glow);
  transition: var(--neu-t);
}
.drp-btn-close:hover { filter: brightness(1.1); }
.drp-btn-close:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Dark mode overrides */
[data-theme="dark"] .drp-day--in-range {
  background: rgba(59,130,246,.15);
  color: #60a5fa;
}
[data-theme="dark"] .drp-day--start,
[data-theme="dark"] .drp-day--end {
  background: #3b82f6;
  box-shadow: -4px -4px 10px rgba(255,255,255,.03), 4px 4px 10px rgba(59,130,246,.45);
}

/* ═══════════════════════════════════════════════════════
   PROGRESS INDICATORS — neumórficos
═══════════════════════════════════════════════════════ */

/* ── ProgressBar ────────────────────────────────────── */
.neu-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.neu-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.neu-progress-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}
.neu-progress-pct {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.3px;
  min-width: 36px;
  text-align: right;
}

/* Track — riel hundido */
.neu-progress-track {
  border-radius: var(--neu-r-pill);
  box-shadow: var(--neu-inset);
  background: var(--neu-bg);
  overflow: hidden;
  padding: 2px;
  position: relative;
}
.neu-progress-track--sm { height: 10px; }
.neu-progress-track--md { height: 14px; }
.neu-progress-track--lg { height: 18px; }

/* Elemento nativo oculto visualmente (accesibilidad) */
.neu-progress-native {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Riel de fondo */
.neu-progress-rail {
  width: 100%;
  height: 100%;
  border-radius: var(--neu-r-pill);
  overflow: hidden;
  position: relative;
}

/* Barra de valor */
.neu-progress-fill {
  height: 100%;
  border-radius: var(--neu-r-pill);
  min-width: 4px;
}

/* Barra indeterminada — animación izquierda→derecha */
.neu-progress-fill--indeterminate {
  width: 40%;
  animation: neu-indeterminate 1.4s cubic-bezier(.4,0,.6,1) infinite;
}

@keyframes neu-indeterminate {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%);  }
}

@media (prefers-reduced-motion: reduce) {
  .neu-progress-fill--indeterminate { animation: none; width: 100%; opacity: .5; }
  .neu-ring-spin { animation: none; }
  .neu-spinner   { animation: none; }
}

/* ── ProgressRing (SVG arc) ─────────────────────────── */
.neu-ring-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--neu-raised);
}
.neu-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--text-2);
  letter-spacing: -.5px;
}

/* Rotación del arco indeterminado */
.neu-ring-spin {
  animation: neu-ring-rotate 1.2s linear infinite;
  transform-origin: center;
}
@keyframes neu-ring-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── ProgressSpinner ────────────────────────────────── */
.neu-spinner-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.neu-spinner {
  border-radius: 50%;
  border-style: solid;
  border-width: 3px;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}
.neu-spinner-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}

/* ── Integración con formularios de la plataforma ─── */
/* Reemplaza form-control por neu-input en contextos específicos */
.neu-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.neu-form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: .02em;
}

/* Date picker dentro de filtros de Administración / Archivo */
.filter-row .drp-wrap,
.filter-row .drp-trigger {
  min-width: 220px;
}

/* Responsive */
@media (max-width: 640px) {
  .drp-popover { min-width: calc(100vw - 32px); left: 0; right: 0; }
  .drp-day    { width: 30px; height: 30px; font-size: 11.5px; }
  .drp-grid   { gap: 2px; }
}
