/* ══════════════════════════════════════════════════════════
   VINCULACIÓN DE PROVEEDORES — Portal Proveedor
   Paleta Cimento: verde oscuro #1B3A2D · dorado #C9A227
   ══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --verde:       #0F172A;
  --verde-med:   #1E293B;
  --verde-light: #EFF6FF;
  --dorado:      #2563EB;
  --dorado-light:#DBEAFE;
  --gris-bg:     #F8FAFC;
  --gris-borde:  #E2E8F0;
  --texto:       #0F172A;
  --texto-muted: #64748B;
  --blanco:      #ffffff;
  --sombra-sm:   0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --sombra-md:   0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --sombra-lg:   0 10px 40px rgba(0,0,0,.12);
  --radio:       12px;
  --radio-sm:    8px;
}

/* ── Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  color: var(--texto);
  background: var(--gris-bg);
  min-height: 100vh;
}

/* ── Portal Layout — Sidebar + Content ─────────────────── */
.portal-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar proveedor ─────────────────────────────────── */
.portal-sidebar {
  width: 260px;
  background: var(--verde);
  color: white;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.portal-sidebar .sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.portal-sidebar .sidebar-brand .brand-name {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
}

.portal-sidebar .sidebar-brand .brand-title {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.sidebar-user {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.15);
}

.sidebar-user .user-avatar {
  width: 40px;
  height: 40px;
  background: var(--dorado);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--verde);
  flex-shrink: 0;
}

.sidebar-user .user-name {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.sidebar-user .user-nit {
  font-size: 0.7rem;
  color: rgba(255,255,255,.55);
}

.sidebar-nav {
  padding: 12px 0;
  flex: 1;
}

.sidebar-nav .nav-section {
  padding: 16px 20px 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,.75);
  font-size: 0.83rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover {
  color: white;
  background: rgba(255,255,255,.08);
}

.sidebar-nav .nav-link.activo {
  color: white;
  background: rgba(255,255,255,.12);
  border-left-color: var(--dorado);
  font-weight: 600;
}

.sidebar-nav .nav-link i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.sidebar-footer a {
  color: rgba(255,255,255,.6);
  font-size: 0.8rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s;
}

.sidebar-footer a:hover { color: white; }

/* ── Portal Content ────────────────────────────────────── */
.portal-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.portal-topbar {
  background: white;
  border-bottom: 1px solid var(--gris-borde);
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.portal-topbar .page-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--texto);
}

.portal-topbar .topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notif-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gris-borde);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texto-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.notif-btn:hover { background: var(--gris-bg); color: var(--texto); }

.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background: #ef4444;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-main {
  padding: 28px 32px;
  flex: 1;
}

/* ── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra-sm);
  overflow: hidden;
}

.card-header {
  background: var(--blanco);
  border-bottom: 1px solid var(--gris-borde);
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.875rem;
}

.card-body { padding: 20px; }

/* ── Stat cards ────────────────────────────────────────── */
.stat-card {
  background: white;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 20px;
  box-shadow: var(--sombra-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.stat-card:hover { box-shadow: var(--sombra-md); transform: translateY(-1px); }

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 12px;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--texto-muted);
  margin-top: 4px;
}

/* ── Solicitud card portal ─────────────────────────────── */
.sol-card {
  background: white;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 20px;
  box-shadow: var(--sombra-sm);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.sol-card:hover {
  box-shadow: var(--sombra-md);
  transform: translateY(-2px);
  border-color: var(--verde);
  color: inherit;
  text-decoration: none;
}

.sol-card .sol-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.sol-card .sol-sedes {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--verde);
}

.sol-card .sol-num {
  font-size: 0.72rem;
  color: var(--texto-muted);
  margin-top: 2px;
}

.sol-card .sol-progress-wrap {
  margin: 12px 0;
}

.sol-card .progress {
  height: 5px;
  border-radius: 10px;
  background: var(--gris-borde);
}

.sol-card .progress-bar {
  background: linear-gradient(90deg, var(--verde), var(--verde-med));
  border-radius: 10px;
  transition: width 0.6s ease;
}

/* ── Badges de estado ──────────────────────────────────── */
.badge-estado {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-estado.borrador        { background: #f1f5f9; color: #64748b; }
.badge-estado.enviado         { background: #dbeafe; color: #1d4ed8; }
.badge-estado.recepcion       { background: #fef3c7; color: #92400e; }
.badge-estado.juridica        { background: #ede9fe; color: #5b21b6; }
.badge-estado.firma           { background: #d1fae5; color: #065f46; }
.badge-estado.contabilidad    { background: #cffafe; color: #164e63; }
.badge-estado.completado      { background: #dcfce7; color: #14532d; }
.badge-estado.rechazado       { background: #fee2e2; color: #991b1b; }
.badge-estado.requiere_info   { background: #ffedd5; color: #9a3412; }

/* ── Botones ────────────────────────────────────────────── */
.btn-verde {
  background: var(--verde);
  color: white;
  border: none;
  border-radius: var(--radio-sm);
  padding: 9px 20px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-verde:hover { background: var(--verde-med); color: white; }

.btn-dorado {
  background: var(--dorado);
  color: white;
  border: none;
  border-radius: var(--radio-sm);
  padding: 9px 20px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-dorado:hover { background: #1D4ED8; color: white; }

.btn-ghost {
  background: transparent;
  color: var(--texto-muted);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-sm);
  padding: 9px 20px;
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-ghost:hover { background: var(--gris-bg); color: var(--texto); border-color: #c1c9d6; }

/* ── Login / Auth ───────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--sombra-lg);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
}

.auth-card .auth-header {
  background: var(--verde);
  padding: 28px 32px;
  text-align: center;
  color: white;
}

.auth-card .auth-header .auth-logo-wrap {
  margin-bottom: 8px;
}

.auth-card .auth-header h1 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.auth-card .auth-header p {
  font-size: 0.78rem;
  color: rgba(255,255,255,.65);
  margin: 4px 0 0;
}

.auth-card .auth-body {
  padding: 28px 32px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--texto-muted);
  font-size: 0.75rem;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gris-borde);
}

/* ── Form inputs ────────────────────────────────────────── */
.form-control, .form-select {
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-sm);
  font-size: 0.83rem;
  padding: 8px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: 'Inter', sans-serif;
}

.form-control:focus, .form-select:focus {
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(27,58,45,.12);
  outline: none;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 5px;
}

/* ── Formulario multi-paso ───────────────────────────────── */
.form-wizard-header {
  background: white;
  border-bottom: 1px solid var(--gris-borde);
  padding: 0 24px;
  overflow-x: auto;
}

.paso-tabs {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: none;
}

.paso-tabs .nav-item { flex-shrink: 0; }

.paso-tabs .nav-link {
  color: var(--texto-muted);
  border-radius: 0;
  border-bottom: 3px solid transparent;
  padding: 14px 16px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: all 0.15s;
}

.paso-tabs .nav-link:hover { color: var(--verde); background: var(--verde-light); }

.paso-tabs .nav-link.active {
  color: var(--verde);
  border-bottom-color: var(--verde);
  font-weight: 600;
  background: var(--verde-light);
}

.paso-tabs .nav-link.completado {
  color: #059669;
}

.paso-tabs .nav-link.completado::before {
  content: '✓ ';
  font-weight: 700;
}

.seccion-formulario { display: none; }
.seccion-formulario.activa { display: block; }

/* ── Sección del formulario ─────────────────────────────── */
.form-section {
  background: white;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--sombra-sm);
}

.form-section-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gris-borde);
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
}

.form-section-header .section-icon {
  width: 30px;
  height: 30px;
  background: var(--verde-light);
  color: var(--verde);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.form-section-header strong {
  font-size: 0.875rem;
  font-weight: 600;
}

.form-section-body { padding: 20px; }

/* ── Readonly fields ────────────────────────────────────── */
.field-readonly {
  background: var(--gris-bg);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-sm);
  padding: 8px 12px;
  font-size: 0.83rem;
  color: var(--texto-muted);
  min-height: 36px;
}

/* ── Radio/Check estilo tarjeta ─────────────────────────── */
.radio-card-group {
  display: flex;
  gap: 10px;
}

.radio-card {
  flex: 1;
  position: relative;
}

.radio-card input[type=radio] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}

.radio-card label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid var(--gris-borde);
  border-radius: var(--radio-sm);
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--texto-muted);
  transition: all 0.15s;
  background: white;
  user-select: none;
}

.radio-card input[type=radio]:checked + label {
  border-color: var(--verde);
  background: var(--verde-light);
  color: var(--verde);
}

.radio-card label:hover { border-color: #94a3b8; color: var(--texto); }

/* ── Documentos upload ──────────────────────────────────── */
.doc-upload-box {
  border: 2px dashed var(--gris-borde);
  border-radius: var(--radio);
  padding: 16px;
  transition: all 0.2s;
  background: white;
}

.doc-upload-box:hover { border-color: var(--verde); background: var(--verde-light); }
.doc-upload-box.valido { border-color: #10b981; border-style: solid; background: #f0fdf4; }
.doc-upload-box.invalido { border-color: #ef4444; border-style: solid; background: #fff5f5; }

.doc-upload-box .doc-icon {
  width: 36px;
  height: 36px;
  background: var(--verde-light);
  color: var(--verde);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.doc-upload-box.valido .doc-icon { background: #dcfce7; color: #16a34a; }

/* ── Progress bar formulario ────────────────────────────── */
.form-progress-bar {
  height: 4px;
  background: var(--gris-borde);
}

.form-progress-bar .bar {
  height: 100%;
  background: linear-gradient(90deg, var(--verde), var(--dorado));
  transition: width 0.5s ease;
}

/* ── Tabla datos ────────────────────────────────────────── */
table.table {
  font-size: 0.83rem;
}

table.table th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--texto-muted);
  border-bottom: 1px solid var(--gris-borde);
  padding: 10px 12px;
  background: var(--gris-bg);
}

table.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gris-borde);
  vertical-align: middle;
}

/* ── Perfil proveedor ───────────────────────────────────── */
.profile-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
  padding: 28px 32px;
  color: white;
  border-radius: var(--radio);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.profile-hero::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}

.profile-hero .hero-avatar {
  width: 64px;
  height: 64px;
  background: var(--dorado);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--verde);
  margin-bottom: 12px;
}

.profile-hero h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

.profile-hero .nit-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.15);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.75rem;
  margin-top: 6px;
}

/* ── Document card perfil ───────────────────────────────── */
.doc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-sm);
  background: white;
  transition: all 0.15s;
  margin-bottom: 8px;
}

.doc-card:hover { border-color: var(--verde); box-shadow: var(--sombra-sm); }

.doc-card .doc-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.doc-card .doc-info { flex: 1; min-width: 0; }
.doc-card .doc-name { font-size: 0.83rem; font-weight: 600; }
.doc-card .doc-meta { font-size: 0.72rem; color: var(--texto-muted); }

/* ── Flash messages ─────────────────────────────────────── */
.flash-container {
  padding: 12px 32px 0;
}

.flash-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radio-sm);
  font-size: 0.83rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.flash-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; }
.flash-error   { background: #fff5f5; border: 1px solid #fecaca; color: #991b1b; }
.flash-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* ── SAGRILAFT text box ─────────────────────────────────── */
.sagrilaft-box {
  background: #fafafa;
  border: 1px solid var(--gris-borde);
  border-left: 4px solid var(--verde);
  border-radius: var(--radio-sm);
  padding: 16px 20px;
  max-height: 280px;
  overflow-y: auto;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--texto-muted);
}

.sagrilaft-box::-webkit-scrollbar { width: 5px; }
.sagrilaft-box::-webkit-scrollbar-track { background: #f1f1f1; }
.sagrilaft-box::-webkit-scrollbar-thumb { background: var(--gris-borde); border-radius: 10px; }

/* ── Scrollbar global ───────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c1c9d6; border-radius: 10px; }

/* ── Timeline ───────────────────────────────────────────── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content:''; position:absolute; left:10px; top:0; bottom:0; width:2px; background: var(--gris-borde); }
.timeline-item { position:relative; margin-bottom:20px; }
.timeline-item::before {
  content:''; position:absolute; left:-22px; top:4px;
  width:10px; height:10px; border-radius:50%;
  background: var(--dot-color, var(--dorado));
  border:2px solid white;
  box-shadow: 0 0 0 2px var(--dot-color, var(--dorado));
}

/* ── Empty state ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--texto-muted);
}

.empty-state .empty-icon {
  width: 64px;
  height: 64px;
  background: var(--verde-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--verde);
  margin: 0 auto 16px;
}

.empty-state h5 { font-size: 1rem; font-weight: 600; color: var(--texto); margin-bottom: 6px; }
.empty-state p { font-size: 0.83rem; margin: 0; }

/* ── Service cards ──────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.service-card {
  background: white;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover { box-shadow: var(--sombra-md); transform: translateY(-2px); }
.service-card.locked { opacity: .65; }
.service-card.locked:hover { transform: none; box-shadow: var(--sombra-sm); }

.service-card-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--gris-borde);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.service-icon.blue  { background: var(--dorado-light); color: var(--dorado); }
.service-icon.slate { background: #F1F5F9; color: #64748B; }
.service-icon.green { background: #DCFCE7; color: #16A34A; }
.service-icon.amber { background: #FEF3C7; color: #D97706; }

.service-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 3px;
}

.service-card-desc {
  font-size: 0.78rem;
  color: var(--texto-muted);
  line-height: 1.5;
}

.service-card-body {
  padding: 16px 20px;
  flex: 1;
}

.service-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--gris-borde);
  background: var(--gris-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F1F5F9;
  color: #64748B;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* sidebar coming-soon items */
.nav-link-soon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  color: rgba(255,255,255,.3);
  font-size: 0.8rem;
  font-weight: 400;
  cursor: default;
  user-select: none;
}

.nav-link-soon .soon-badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: .04em;
  background: rgba(255,255,255,.1);
  border-radius: 4px;
  padding: 2px 5px;
  color: rgba(255,255,255,.35);
  margin-left: auto;
}

/* portal welcome bar */
.portal-welcome {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
  padding: 24px 32px;
  color: white;
  margin-bottom: 28px;
  border-radius: var(--radio);
}

.portal-welcome h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.portal-welcome p {
  font-size: 0.82rem;
  color: rgba(255,255,255,.6);
  margin: 0;
}

/* ── Process stepper ────────────────────────────────────── */
.process-stepper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding: 8px 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 80px;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% + 16px);
  right: calc(-50% + 16px);
  height: 2px;
  background: var(--gris-borde);
  z-index: 0;
}

.step-item.done:not(:last-child)::after {
  background: var(--dorado);
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid var(--gris-borde);
  background: white;
  color: var(--texto-muted);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.step-item.done .step-circle {
  background: var(--dorado);
  border-color: var(--dorado);
  color: white;
}

.step-item.active .step-circle {
  background: white;
  border-color: var(--dorado);
  color: var(--dorado);
  box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}

.step-item.error .step-circle {
  background: #FEF2F2;
  border-color: #EF4444;
  color: #EF4444;
}

.step-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--texto-muted);
  text-align: center;
  margin-top: 6px;
  line-height: 1.3;
  max-width: 72px;
}

.step-item.done .step-label { color: var(--dorado); font-weight: 600; }
.step-item.active .step-label { color: var(--texto); font-weight: 700; }

/* ── Status banner ───────────────────────────────────────── */
.status-banner {
  border-radius: var(--radio);
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-banner.banner-activo {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border: 1px solid #BFDBFE;
}

.status-banner.banner-requiere {
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  border: 1px solid #FDE68A;
}

.status-banner.banner-completado {
  background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
  border: 1px solid #BBF7D0;
}

.status-banner.banner-rechazado {
  background: linear-gradient(135deg, #FFF1F2, #FFE4E6);
  border: 1px solid #FECDD3;
}

.status-banner.banner-borrador {
  background: linear-gradient(135deg, #F8FAFC, #F1F5F9);
  border: 1px solid #E2E8F0;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .portal-sidebar { display: none; }
  .portal-main { padding: 16px; }
  .portal-topbar { padding: 0 16px; }
  .flash-container { padding: 8px 16px 0; }
}
