/* =========================================
   APP CSS - EMPLEANDO SUBA (Marca Bogotá)
   Mantiene clases existentes: .text-brand .btn-brand .bg-brand .card-dashboard ...
   ========================================= */

/* Colores de marca (Bogotá) */
:root {
  /* Marca Bogotá */
  --bogota-red: #e4032e;
  --bogota-yellow: #fab62d;

  /* Institucional */
  --bogota-blue: #225495;
  --bogota-blue-dark: #173b6a;

  /* Neutros */
  --gray-900: #111214;
  --gray-700: #3a3d42;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --white: #ffffff;

  /* Semánticos para compatibilidad con tu UI */
  --brand: var(--bogota-blue); /* header, textos de marca */
  --brand-soft: rgba(34, 84, 149, 0.08); /* fondos suaves */
  --brand-dark: var(--bogota-blue-dark); /* hover azul */

  --action: var(--bogota-red); /* botón principal */
  --action-hover: #c90227; /* hover rojo */

  /*
   * Asegura que cualquier modal de Bootstrap quede por encima
   * de capas fijas del layout (sidebar/topbar/widgets flotantes).
   */
  --bs-backdrop-zindex: 1990;
  --bs-modal-zindex: 2000;
}

/* Fondo general tipo dashboard */
body {
  background-color: #f3f4f6;
}

/* Texto e identificadores de marca */
.text-brand {
  color: var(--brand) !important;
}

.bg-brand {
  background-color: var(--brand) !important;
}

.bg-brand-soft {
  background-color: var(--brand-soft) !important;
  color: var(--brand) !important;
}

/* Botón principal de marca (CTA Bogotá: rojo) */
.btn-brand {
  background-color: var(--action);
  color: #fff;
  border-radius: 999px;
  border: 1px solid var(--action);
  font-weight: 700;
}

.btn-brand:hover {
  background-color: var(--action-hover);
  border-color: var(--action-hover);
  color: #fff;
}

/* Cards tipo dashboard */
.card-dashboard {
  border-radius: 1.25rem;
  border: 0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  background-color: #ffffff;
}

/* Efecto hover sutil en cards */
.card-dashboard,
.card-dashboard .card {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.card-dashboard:hover,
.card-dashboard .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
}

/* Header de cards limpio */
.card-dashboard .card-header {
  background-color: #ffffff;
  border-bottom: 1px solid #edf1f7;
  border-top-left-radius: 1.25rem;
  border-top-right-radius: 1.25rem;
}

/* Tablas modernas */
.table-modern thead {
  background-color: #f9fafb;
}

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

/* Iconos de estados vacíos */
.empty-state-icon {
  font-size: 2.2rem;
  color: #c0c4ce;
}

/* Animación de entrada */
.fade-in {
  animation: fadeInUp 0.4s ease-out;
}

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

/* Wizard */
.wizard-steps .wizard-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(34, 84, 149, 0.15);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: 0.25s;
}

.wizard-steps .wizard-dot.active {
  background: var(--action);
  color: white;
  box-shadow: 0 0 10px rgba(228, 3, 46, 0.25);
}

/* Icon circle */
.icon-circle-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(34, 84, 149, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--brand);
  margin: auto;
}

/* Secciones / listas */
.section-block {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}
/* Sensación de escalera / avance */
.brand-steps .list-group-item {
  position: relative;
}

.brand-steps .list-group-item::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(34, 84, 149, 0.25);
}

.brand-steps .list-group-item.active::after {
  background: var(--action);
}
/* Bloque importante */
.important-note {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(
    90deg,
    rgba(228, 3, 46, 0.1),
    rgba(250, 182, 45, 0.18)
  );
  border: 1px solid rgba(228, 3, 46, 0.25);
}

.important-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--action);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.important-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gray-900);
}

.important-subtitle {
  font-size: 0.85rem;
  color: var(--gray-700);
}
/* =========================
   HERO PROCESO INSCRIPCIÓN
========================= */

.process-hero {
  padding: 2.5rem 1.5rem;
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(34, 84, 149, 0.06),
    rgba(250, 182, 45, 0.1)
  );
  border: 1px solid rgba(17, 18, 20, 0.06);
}

.process-lead {
  font-size: 1.15rem;
  color: var(--gray-900);
  max-width: 760px;
  line-height: 1.6;
}

.process-sub {
  font-size: 0.95rem;
  color: var(--gray-700);
  max-width: 720px;
}

/* Énfasis LOCAL */
.highlight-local {
  color: var(--action);
  position: relative;
  padding: 0 4px;
}

.highlight-local::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 6px;
  background: rgba(250, 182, 45, 0.55);
  z-index: -1;
  border-radius: 4px;
}

/* Divisor de marca */
.process-divider {
  width: 120px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--action), var(--accent));
}

/* Badge informativo */
.process-badge {
  background: rgba(34, 84, 149, 0.12);
  color: var(--brand);
  font-weight: 600;
}
/* Panel derecha */
.step-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(34, 84, 149, 0.05);
  border: 1px solid rgba(17, 18, 20, 0.06);
}

/* Lista bonita de items del paso */
.step-items li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 18, 20, 0.06);
  margin-bottom: 10px;
}

.step-items li i {
  margin-top: 2px;
}

/* Caja de aceptación */
.accept-box {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(34, 84, 149, 0.3);
  background: rgba(34, 84, 149, 0.05);
}

/* Mejorar el botón disabled visualmente */
a.btn.disabled[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
  filter: grayscale(0.1);
}

/* Ajuste general de cards */
.card-dashboard {
  border: 1px solid rgba(17, 18, 20, 0.06);
}

/* Mejoras de tipografía */
.process-lead strong {
  font-weight: 800;
}
/* ============ LISTA DE PASOS (izquierda) ============ */

.brand-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-steps .list-group-item {
  border: 1px solid rgba(17, 18, 20, 0.08);
  border-radius: 16px;
  padding: 14px 14px;
  background: #fff;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.brand-steps .list-group-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.1);
  border-color: rgba(228, 3, 46, 0.22);
}

.brand-steps .list-group-item.active {
  background: linear-gradient(
    180deg,
    rgba(228, 3, 46, 0.06),
    rgba(250, 182, 45, 0.08)
  );
  border-color: rgba(228, 3, 46, 0.28);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

/* Dot con look premium */
.step-dot {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(34, 84, 149, 0.1);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  position: relative;
}

.step-dot-num {
  font-weight: 900;
  font-size: 1.05rem;
}

.brand-steps .list-group-item.active .step-dot {
  background: var(--action);
  color: #fff;
  box-shadow: 0 0 0 0.25rem rgba(228, 3, 46, 0.12);
}

/* Título y descripción */
.step-title {
  font-size: 1rem;
  color: var(--gray-900);
}

.step-desc {
  margin-top: 2px;
  line-height: 1.35;
}

/* Icono en pastilla */
.step-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(34, 84, 149, 0.08);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-steps .list-group-item.active .step-icon {
  background: rgba(228, 3, 46, 0.12);
  color: var(--action);
}

/* Línea tipo “escala” (opcional, se ve muy bien) */
.brand-steps .list-group-item {
  position: relative;
}

.brand-steps .list-group-item::before {
  content: "";
  position: absolute;
  left: 32px;
  top: -12px;
  width: 2px;
  height: 12px;
  background: rgba(17, 18, 20, 0.08);
}

.brand-steps .list-group-item:first-child::before {
  display: none;
}
.count-box {
  min-width: 90px;
  background: #f9fafb;
  border-radius: 14px;
  padding: 14px 10px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.count-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-color, #0b2d5b);
  line-height: 1;
}

.count-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6c757d;
  margin-top: 4px;
}
.text-brand:hover {
  text-decoration: underline;
  opacity: 0.9;
}
/*coloreado de paso al guardar*/
.step-nav.step-done {
  background-color: #e6f4ea;
  border-left: 4px solid #28a745;
}

.step-nav.step-done .fw-bold {
  color: #1e7e34;
}

.step-nav.step-done::after {
  content: "✔";
  color: #28a745;
  font-weight: bold;
  margin-left: auto;
}
.dropzone {
  border: 2px dashed #d7dce3;
  border-radius: 14px;
  padding: 26px 16px;
  text-align: center;
  background: #f6f8fb;
  cursor: pointer;
  transition: 0.15s ease;
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-direction: column;
}

.dropzone .dz-icon {
  font-size: 54px;
  color: #97a7bb;
  line-height: 1;
}

.dropzone .dz-link {
  color: #0d6efd;
  font-weight: 600;
}

.dropzone.is-dragover {
  border-color: #0d6efd;
  background: #eef5ff;
}

.upload-form.is-uploading .dropzone {
  opacity: 0.75;
  pointer-events: none;
}

.upload-form.is-success .dropzone {
  border-color: #198754;
  background: #eef9f1;
}

.upload-form.is-success .dz-icon {
  color: #198754;
}

.upload-form.is-success .dropzone::after {
  content: "\2713";
  position: absolute;
  transform: translate(120px, -70px);
  color: #198754;
  font-weight: 800;
  font-size: 20px;
}

.upload-form.is-error .dropzone {
  border-color: #dc3545;
  background: #fff1f2;
}

.upload-status {
  min-height: 18px;
}
/* ===========================
   Transiciones / Animaciones
   =========================== */
.fade-in-up {
  animation: fadeInUp 0.55s ease both;
}
.fade-in {
  animation: fadeIn 0.45s ease both;
}
.delay-1 {
  animation-delay: 0.08s;
}
.delay-2 {
  animation-delay: 0.16s;
}
.delay-3 {
  animation-delay: 0.24s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Respeta usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  .fade-in-up,
  .fade-in {
    animation: none !important;
  }
}
/* ===========================
   Page Transitions (global)
   =========================== */
.page {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.26s ease,
    transform 0.26s ease;
}
.page.page-ready {
  opacity: 1;
  transform: translateY(0);
}
.page.page-leave {
  opacity: 0;
  transform: translateY(6px);
}

/* Respeta reduce motion */
@media (prefers-reduced-motion: reduce) {
  .page {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
/* ===========================
   SIDEBAR / RESPONSIVE FIX
   =========================== */

.app-shell {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: 280px;
  background: #fff;
  border-right: 1px solid #e9ecef;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 40; /* importante */
}

.content {
  flex: 1;
  min-width: 0;
}

/* Backdrop base */
.sidebar-backdrop {
  display: none;
}

/* MOBILE / TABLET */
@media (max-width: 991.98px) {
  .sidebar {
    position: fixed; /* clave */
    top: 0;
    left: -320px; /* oculto */
    height: 100vh;
    width: 280px;
    z-index: 1055; /* por encima de navbar */
    transition: left 0.22s ease;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  }

  .sidebar.open {
    left: 0; /* visible */
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.45);
    z-index: 1050; /* debajo del sidebar */
  }

  .sidebar-backdrop.show {
    display: block;
  }
}
