body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #1f2937;
  background-color: #f8f9fa;
}

/* Fuerza tipografía consistente en toda la UI (incluye forms y botones) */
html, body,
button, input, select, textarea,
.form-control, .form-select, .btn,
.dropdown-menu, .nav-link, .navbar,
.table, .card, .modal, .badge {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}


/* ===== Base look & feel (mockup style) ===== */
:root{
    --bg: #f5f7fb;
    --card: #ffffff;
    --border: #e6eaf2;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #2563eb;
    --sidebar: #0b1220;
    --sidebar2: #0f1b2d;
  }
  
  body{
    background: var(--bg);
    color: var(--text);
  }
  
  /* ===== Titles ===== */
  .page-title{
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  
  /* ===== Cards ===== */
  .card{
    border: 1px solid var(--border);
    border-radius: 14px;
  }
  
  /* ===== Buttons ===== */
  .btn{
    border-radius: 12px;
  }
  
  /* Botón chico tipo “pill” */
  .btn-xs{
    padding: .35rem .6rem;
    font-size: .85rem;
    border-radius: 10px;
  }
  
  /* ===== Badges ===== */
  .badge{
    border-radius: 999px;
    padding: .45rem .7rem;
  }
  
  .badge.badge-soft-success{
    background: rgba(34,197,94,.15);
    color: #15803d !important;
    border: 1px solid rgba(34,197,94,.35);
    font-weight: 600;
  }
  
  
  .badge.badge-soft-danger{
    background: rgba(239,68,68,.15);
    color: #b91c1c !important;
    border: 1px solid rgba(239,68,68,.35);
    font-weight: 600;
  }
  
  
  .badge-soft-warning{
    background:#fff6e6;
    color:#b54708;
    border: 1px solid rgba(181, 71, 8, .20);
    font-weight: 600;
  }
  
  .badge-soft-info{
    background:#e7f3ff;
    color:#0b5ed7;
    border: 1px solid rgba(11, 94, 215, .20);
    font-weight: 600;
  }
  
  /* ===== Tables (mockup-like) ===== */
  .table-wrap{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow-x: auto;
  }
  
  /* Mantener tabla “pegada” al wrap */
  .table{
    margin: 0;
    border-color: var(--border);
  }
  
  .table thead th{
    background: #e8f0ff !important;
    color: #0f172a;
    font-weight: 700;
    border-bottom: 1px solid var(--border) !important;
  }
  
  /* Celdas */
  .table td, .table th{
    padding: 14px 14px;
  }
  
  .table tbody td{
    vertical-align: middle;
    border-top: 1px solid var(--border);
  }
  
  /* Rayado y hover suave */
  .table-striped > tbody > tr:nth-of-type(odd) > *{
    --bs-table-accent-bg: rgba(15, 23, 42, 0.03);
  }
  
  .table-hover > tbody > tr:hover > *{
    --bs-table-accent-bg: rgba(37, 99, 235, 0.06);
  }
/* ===== Badges "soft" (más visibles) ===== */
.badge{
  font-weight: 700;
  padding: .45rem .8rem;
  border-radius: 999px;
  letter-spacing: .2px;
}

/* BORRADOR (azul suave, pero legible) */
.badge-soft-info{
  background: rgba(37, 99, 235, .14);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, .28);
}

/* En revisión (amarillo/naranjo suave) */
.badge-soft-warning{
  background: rgba(245, 158, 11, .16);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, .30);
}

/* Error / rechazado (rojo suave) */
.badge-soft-danger{
  background: rgba(239, 68, 68, .14);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, .28);
}

/* OK / listo (verde suave) */
.badge-soft-success{
  background: rgba(34, 197, 94, .14);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, .28);
}

/* =========================
   Tablas – tipografía y ritmo visual
   ========================= */

   .table {
    font-size: 13px;
}

.table thead th {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #374151;
  text-align: center;
}

/* Centrar contenido de celdas de tabla */
.table tbody td {
  text-align: center;
}


.table tbody td {
    vertical-align: middle;
}

.table .badge {
    font-size: 12px;
    font-weight: 500;
}

/* =========================
   Layout shell + Sidebar (moderno)
   ========================= */

   .app-shell {
    background: #f6f7fb;
}

.app-sidebar {
    width: 260px;
    background: #111827; /* gris azulado profesional */
    padding: 18px !important;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.app-sidebar .sidebar-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.9;
    margin-bottom: 14px;
}

.app-sidebar .nav {
    gap: 6px;
}

.app-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255,255,255,0.78) !important;
    text-decoration: none;
}

.app-sidebar .nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff !important;
}

.app-sidebar .nav-link.active {
    background: rgba(59,130,246,0.18); /* azul suave */
    color: #fff !important;
    border: 1px solid rgba(59,130,246,0.25);
}

.app-sidebar .nav-link i {
    font-size: 16px;
    opacity: 0.95;
}
/* =========================
   Main content – spacing profesional
   ========================= */

   .app-main {
    padding: 28px 32px;
}

.app-main h1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 18px;
}

.app-main h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #374151;
}

/* =========================
   Header de sección (títulos consistentes)
   ========================= */

   .section-header h1,
   .section-header h2 {
       font-size: 16px;
       font-weight: 600;
       margin: 0;
       color: #111827;
   }
   
   .section-header .subtitle {
       margin-top: 2px;
       font-size: 13px;
       color: #6b7280;
   }
   
   .section-actions .btn {
       border-radius: 999px; /* pill */
       font-weight: 600;
       padding: 8px 14px;
   }
   
   /* =========================
   Cards – estilo global enterprise
   ========================= */

.card {
  border: 1px solid #e9edf5;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.card-body {
  padding: 18px 18px;
}
/* =========================
   Tablas – hover y feedback visual
   ========================= */

   .table tbody tr {
    transition: background-color 0.15s ease;
}

.table tbody tr:hover {
    background-color: #f1f5f9;
}

/* =========================
   Wizard steps (nav-pills) – estilo moderno
   ========================= */

   .wizard-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.wizard-steps .nav-link {
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12.5px;
    font-weight: 600;
    background: #eef2ff;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.wizard-steps .nav-link.active {
    background: rgba(59,130,246,0.18);
    border-color: rgba(59,130,246,0.25);
    color: #111827;
}

.wizard-steps .nav-link.disabled {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
    opacity: 1; /* que no se vea “apagado feo” */
    cursor: not-allowed;
}

/* =========================
   Wizard – panel del paso + acciones
   ========================= */

   .wizard-panel {
    background: #ffffff;
    border: 1px solid #e9edf5;
    border-radius: 16px;
    padding: 18px;
    margin-top: 14px;
}

.wizard-panel .form-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
}

.wizard-panel .form-control,
.wizard-panel .form-select {
    border-radius: 12px;
    padding: 10px 12px;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.wizard-actions .btn {
    border-radius: 999px;
    padding: 9px 16px;
    font-weight: 700;
}
/* =========================
   Wizard – títulos de sección reutilizables
   ========================= */

   .wizard-section-title {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
}

.wizard-section-title .title {
    font-size: 14.5px;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.wizard-section-title .desc {
    margin-top: 3px;
    font-size: 12.5px;
    color: #6b7280;
}

/* FIX: opciones invisibles en selects */
select option {
  color: #212529 !important;   /* texto oscuro */
  background-color: #ffffff !important;
}

/* ===============================
   FIX SELECTS WIZARD OTI
   Paso 2 y siguientes
   =============================== */

   .wizard-panel select,
   .wizard-panel select option {
       color: #1f2937 !important;          /* gris oscuro */
       background-color: #ffffff !important;
   }
   
   /* Para dropdown abierto en Chrome */
   .wizard-panel select:focus option {
       background-color: #ffffff !important;
       color: #1f2937 !important;
   }
   