/* =====================================================
   ProMX Sanitarios - Sistema de gestion operativa
   Paleta: naranja #FF4105, negro #111111, blanco, grises,
   amarillo sanitario #E6F000, verde #16A34A, rojo #DC2626
   Regla 60/25/10/5: blancos y grises dominan, negro estructura,
   naranja solo en acciones, amarillo y estados como acento.
   Mobile first: la experiencia del operador manda.
   ===================================================== */

:root {
  --azul-900: #111111;
  --azul-800: #1a1a1a;
  --azul-700: #262626;
  --azul: #FF4105;
  --azul-suave: #FFEDE5;
  --verde: #16A34A;
  --verde-suave: #E7F6ED;
  --teal: #A8B200;
  --teal-suave: #FDFEDB;
  --gris-fondo: #F5F5F5;
  --gris-borde: #E5E7EB;
  --gris-texto: #6B7280;
  --texto: #111111;
  --blanco: #FFFFFF;
  --rojo: #DC2626;
  --rojo-suave: #FDE8E8;
  --ambar: #8A9300;
  --ambar-suave: #FDFEDB;
  --amarillo: #E6F000;

  --bs-primary: #FF4105;
  --bs-primary-rgb: 255, 65, 5;
  --bs-success: #16A34A;
  --bs-success-rgb: 22, 163, 74;
  --bs-danger: #DC2626;
  --bs-danger-rgb: 220, 38, 38;
  --bs-warning: #E6F000;
  --bs-warning-rgb: 230, 240, 0;
  --bs-body-color: #111111;
  --bs-border-radius: 0.6rem;
  --bs-border-radius-lg: 0.8rem;
}

* {
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background-color: var(--gris-fondo);
  color: var(--texto);
  font-size: 0.95rem;
}

/* ---------- Elementos base ---------- */

.btn {
  border-radius: 0.55rem;
  font-weight: 600;
}

.btn-lg {
  border-radius: 0.65rem;
}

.card {
  border-radius: 0.8rem;
  border-color: var(--gris-borde);
}

.card-header {
  border-bottom-color: var(--gris-borde);
  background-color: transparent;
}

.form-control,
.form-select {
  border-radius: 0.5rem;
  border-color: var(--gris-borde);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 0.2rem rgba(255, 65, 5, 0.15);
}

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

.text-secondary {
  color: var(--gris-texto) !important;
}

a {
  color: var(--azul);
}

/* Botones primarios: naranja con hover mas oscuro */
.btn-primary {
  --bs-btn-bg: #FF4105;
  --bs-btn-border-color: #FF4105;
  --bs-btn-hover-bg: #E93600;
  --bs-btn-hover-border-color: #E93600;
  --bs-btn-active-bg: #D13100;
  --bs-btn-active-border-color: #D13100;
  --bs-btn-disabled-bg: #FF4105;
  --bs-btn-disabled-border-color: #FF4105;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
}

.btn-outline-primary {
  --bs-btn-color: #FF4105;
  --bs-btn-border-color: #FF4105;
  --bs-btn-hover-bg: #FF4105;
  --bs-btn-hover-border-color: #FF4105;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #E93600;
  --bs-btn-active-border-color: #E93600;
  --bs-btn-active-color: #fff;
}

.btn-success {
  --bs-btn-bg: #16A34A;
  --bs-btn-border-color: #16A34A;
  --bs-btn-hover-bg: #12873E;
  --bs-btn-hover-border-color: #12873E;
  --bs-btn-active-bg: #107536;
  --bs-btn-active-border-color: #107536;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
}

.btn-outline-success {
  --bs-btn-color: #16A34A;
  --bs-btn-border-color: #16A34A;
  --bs-btn-hover-bg: #16A34A;
  --bs-btn-hover-border-color: #16A34A;
  --bs-btn-hover-color: #fff;
}

.btn-danger {
  --bs-btn-bg: #DC2626;
  --bs-btn-border-color: #DC2626;
  --bs-btn-hover-bg: #B91C1C;
  --bs-btn-hover-border-color: #B91C1C;
  --bs-btn-active-bg: #A31717;
  --bs-btn-active-border-color: #A31717;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
}

.btn-outline-danger {
  --bs-btn-color: #DC2626;
  --bs-btn-border-color: #DC2626;
  --bs-btn-hover-bg: #DC2626;
  --bs-btn-hover-border-color: #DC2626;
  --bs-btn-hover-color: #fff;
}

.btn-warning {
  --bs-btn-bg: #E6F000;
  --bs-btn-border-color: #E6F000;
  --bs-btn-hover-bg: #CBD400;
  --bs-btn-hover-border-color: #CBD400;
  --bs-btn-active-bg: #B4BC00;
  --bs-btn-active-border-color: #B4BC00;
  --bs-btn-color: #111111;
  --bs-btn-hover-color: #111111;
  --bs-btn-active-color: #111111;
}

.btn-outline-warning {
  --bs-btn-color: #6B6300;
  --bs-btn-border-color: #E6F000;
  --bs-btn-hover-bg: #E6F000;
  --bs-btn-hover-border-color: #E6F000;
  --bs-btn-hover-color: #111111;
}

/* Botones grandes para el operador (una mano, guantes, sol) */
.btn-accion {
  min-height: 46px;
  font-weight: 700;
  border-radius: 0.6rem;
}

.btn-accion-lg {
  min-height: 54px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 0.7rem;
}

/* ---------- Logo ---------- */

.logo-caja {
  background: var(--blanco);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.logo-caja img {
  height: 100%;
  width: auto;
}

.login-logo-img {
  display: block;
  margin: 0 auto 0.4rem;
  width: 120px;
  height: auto;
}

/* ---------- Badges de estado ---------- */

.badge-estado {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35em 0.7em;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Pendiente: amarillo con texto negro (identidad ProMX) */
.estado-pendiente {
  background: var(--amarillo);
  color: #111111;
}

.estado-asignada {
  background: var(--gris-fondo);
  color: #374151;
}

.estado-en-ruta {
  background: var(--azul);
  color: #fff;
}

.estado-en-proceso {
  background: var(--azul-suave);
  color: #E93600;
}

.estado-completada {
  background: var(--verde-suave);
  color: #12873E;
}

.estado-cancelada {
  background: var(--rojo-suave);
  color: #B91C1C;
}

.estado-incidencia {
  background: var(--rojo);
  color: #fff;
}

.estado-info {
  background: var(--teal-suave);
  color: #8A9300;
}

.estado-pagada {
  background: var(--verde-suave);
  color: #12873E;
}

.estado-parcial {
  background: var(--teal-suave);
  color: #8A9300;
}

/* ---------- Login ---------- */

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(255, 65, 5, 0.28), transparent 70%),
    linear-gradient(160deg, #111111 0%, #1a1a1a 100%);
  padding: 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--blanco);
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  padding: 2.4rem 2rem 2rem;
}

.login-logo {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--azul) 0%, #E93600 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto 1rem;
}

.login-titulo {
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.2rem;
}

.login-subtitulo {
  font-size: 0.85rem;
  color: var(--gris-texto);
  text-align: center;
  margin-bottom: 1.6rem;
}

/* ---------- Layout administrativo: sidebar negro ---------- */

.admin-sidebar {
  width: 262px;
  background: #111111;
  color: #9CA3AF;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1045;
}

/* Gana a los estilos del offcanvas de Bootstrap en cualquier pantalla */
.admin-sidebar.offcanvas-lg,
.admin-sidebar.offcanvas {
  background-color: #111111;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  overflow: hidden;
}

.brand-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Naranja ProMX: visible sobre negro y sobre blanco */
.brand-name {
  color: #FF4105;
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.72rem;
  color: #FF4105;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 0.7rem 1.5rem;
}

.nav-seccion {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #6B7280;
  padding: 0.9rem 0.55rem 0.35rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  background: transparent;
  border: 0;
  color: #6B7280;
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  margin-bottom: 1px;
}

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

/* Hover naranja: visible sobre fondo negro o blanco */
.sidebar-link:hover {
  background: rgba(255, 65, 5, 0.16);
  color: #FF4105;
}

.sidebar-link.active {
  background: var(--azul);
  color: #fff;
  font-weight: 600;
}

.sidebar-toggle .chevron {
  transition: transform 0.2s;
  font-size: 0.75rem;
  color: #6B7280;
}

.sidebar-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.sidebar-sublink {
  display: block;
  color: #6B7280;
  text-decoration: none;
  padding: 0.42rem 0.7rem 0.42rem 2.6rem;
  border-radius: 0.45rem;
  font-size: 0.85rem;
  margin-bottom: 1px;
}

.sidebar-sublink:hover {
  color: #FF4105;
  background: rgba(255, 65, 5, 0.12);
}

.sidebar-sublink.active {
  color: var(--azul);
  background: rgba(255, 65, 5, 0.14);
  font-weight: 600;
}

.sidebar-badge {
  margin-left: auto;
  background: var(--rojo);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

.sidebar-footer {
  padding: 0.9rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: #FF4105;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Pie del sidebar: nombre y rol en naranja (visible sobre negro o blanco) */
.sidebar-usuario-nombre {
  color: #FF4105;
  font-weight: 600;
  font-size: 0.85rem;
}

.sidebar-usuario-rol {
  font-size: 0.72rem;
  color: #FF4105;
  opacity: 0.85;
}

.sidebar-salir {
  color: #6B7280;
  font-size: 1rem;
}

.sidebar-salir:hover {
  color: #FF4105;
}

.admin-main {
  margin-left: 262px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: var(--blanco);
  border-bottom: 1px solid var(--gris-borde);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.topbar-titulo {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.contenido {
  padding: 1.5rem;
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 991.98px) {
  .admin-main {
    margin-left: 0;
  }

  .admin-sidebar {
    width: 280px;
  }

  .contenido {
    padding: 1rem;
  }
}

/* ---------- Tarjetas de indicadores (dashboard) ---------- */

.stat-card {
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: 0.8rem;
  padding: 1rem 1.1rem;
  height: 100%;
  text-decoration: none;
  color: var(--texto);
  display: block;
  transition: box-shadow 0.15s, transform 0.15s;
}

.stat-card:hover {
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.1);
  transform: translateY(-1px);
  color: var(--texto);
}

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

.stat-numero {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
}

.stat-etiqueta {
  font-size: 0.78rem;
  color: var(--gris-texto);
  font-weight: 600;
}

.stat-mini {
  font-size: 0.8rem;
  color: var(--gris-texto);
}

.stat-mini .punto {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.35rem;
}

/* ---------- Tarjeta de operacion (operador y listados) ---------- */

.op-card {
  position: relative;
  border-radius: 0.8rem;
}

.op-card-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 0.8rem 0 0 0.8rem;
}

.op-tipo-icono {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.op-card-completada {
  opacity: 0.75;
}

/* ---------- Layout del operador (mobile first, negro + naranja) ---------- */

.op-topbar {
  background: var(--azul-900);
  color: #fff;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.op-brand {
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.op-brand .logo-caja {
  width: 34px;
  height: 34px;
  overflow: hidden;
}

.op-brand .logo-caja img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.op-topbar-derecha {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.op-topbar-derecha a {
  color: #9CA3AF;
  font-size: 1.05rem;
}

.op-usuario {
  font-weight: 600;
  font-size: 0.9rem;
}

.op-contenido {
  padding: 1rem 1rem 6.5rem;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--blanco);
  border-top: 1px solid var(--gris-borde);
  display: flex;
  z-index: 1040;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -4px 18px rgba(17, 17, 17, 0.08);
}

.bottom-nav a {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.2rem 0.5rem;
  color: var(--gris-texto);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

.bottom-nav a i {
  font-size: 1.15rem;
}

.bottom-nav a.active {
  color: var(--azul);
}

.fab {
  position: fixed;
  right: 1.1rem;
  bottom: calc(76px + env(safe-area-inset-bottom, 0));
  z-index: 1040;
  background: var(--rojo);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 22px rgba(220, 38, 38, 0.4);
}

.fab:active {
  transform: scale(0.96);
}

/* ---------- Chips de incidencia (opciones rapidas) ---------- */

.incidencia-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.chip-incidencia {
  border: 1.5px solid var(--gris-borde);
  background: var(--blanco);
  border-radius: 0.6rem;
  padding: 0.7rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--texto);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  min-height: 84px;
  justify-content: center;
}

.chip-incidencia i {
  font-size: 1.2rem;
  color: var(--gris-texto);
}

.chip-incidencia.seleccionado {
  border-color: var(--rojo);
  background: var(--rojo-suave);
  color: #B91C1C;
}

.chip-incidencia.seleccionado i {
  color: var(--rojo);
}

/* ---------- Fotos ---------- */

.foto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.foto-thumb {
  position: relative;
  border-radius: 0.55rem;
  overflow: hidden;
  aspect-ratio: 1;
  display: block;
  background: #E8EDF3;
}

.foto-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.foto-thumb .foto-etiqueta {
  position: absolute;
  left: 0.3rem;
  bottom: 0.3rem;
  background: rgba(17, 17, 17, 0.78);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
}

.foto-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ---------- Linea de tiempo (historial) ---------- */

.timeline {
  position: relative;
  padding-left: 1.4rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.32rem;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 2px;
  background: var(--gris-borde);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.1rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.4rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--azul);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--azul-suave);
}

/* ---------- Estado vacio ---------- */

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gris-texto);
}

.empty-state i {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
  color: #B7C3D1;
}

/* ---------- Pills de tipo de operacion (formulario) ---------- */

.tipo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tipo-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tipo-pill span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--gris-borde);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--texto);
  cursor: pointer;
  background: var(--blanco);
  transition: all 0.12s;
}

.tipo-pill input:checked + span {
  border-color: var(--azul);
  background: var(--azul-suave);
  color: #E93600;
}

/* ---------- Grafica del dashboard (barras CSS) ---------- */

.grafica-barras {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  height: 130px;
}

.barra-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  height: 100%;
  justify-content: flex-end;
}

.barra {
  width: 100%;
  max-width: 42px;
  background: linear-gradient(180deg, var(--azul) 0%, #E93600 100%);
  border-radius: 6px 6px 3px 3px;
  min-height: 4px;
}

.barra-vacia {
  background: var(--gris-borde);
}

.barra-valor {
  font-size: 0.72rem;
  font-weight: 700;
  color: #E93600;
}

.barra-etiqueta {
  font-size: 0.68rem;
  color: var(--gris-texto);
  font-weight: 600;
}

/* ---------- Filas de detalles (rentas / operaciones) ---------- */

.tabla-detalles .quitar-detalle {
  border: 0;
  background: transparent;
  color: var(--rojo);
  font-size: 1rem;
  padding: 0.2rem 0.5rem;
}

/* ---------- Alertas del dashboard ---------- */

.lista-alertas {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lista-alertas li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--gris-borde);
  font-size: 0.86rem;
}

.lista-alertas li:last-child {
  border-bottom: 0;
}

.lista-alertas i {
  margin-top: 0.15rem;
}

/* ---------- Toasts ---------- */

.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 92vw;
}

.toast-pa {
  background: var(--texto);
  color: #fff;
  border-radius: 0.65rem;
  padding: 0.75rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: toast-in 0.25s ease;
}

.toast-pa.ok {
  background: var(--verde);
}

.toast-pa.error {
  background: var(--rojo);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Cabecera de Mi Dia ---------- */

.mi-dia-saludo {
  background: linear-gradient(140deg, #111111 0%, #1c1c1c 60%, #FF4105 175%);
  color: #fff;
  border-radius: 0.9rem;
  padding: 1.2rem 1.3rem;
}

.mi-dia-saludo .fecha-hoy {
  color: #9CA3AF;
  font-size: 0.85rem;
}

.mi-dia-progreso {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  margin-top: 0.8rem;
}

.mi-dia-progreso .progreso-barra {
  background: var(--azul);
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s;
}

/* ---------- Mi Dia: secciones y tarjeta destacada ---------- */

.seccion-titulo {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gris-texto);
  margin: 1.1rem 0 0.6rem;
}

.op-card-destacada {
  box-shadow: 0 0 0 2px var(--azul), 0 8px 22px rgba(17, 17, 17, 0.14) !important;
}

/* ---------- Notificaciones ---------- */

.btn-bell {
  color: #9CA3AF;
  font-size: 1.15rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.btn-bell:hover {
  color: #FF4105;
}

.badge-notif {
  position: absolute;
  top: -7px;
  right: -10px;
  background: #FF4105;
  color: #fff;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
  padding: 3px 5px;
  border: 2px solid #111111;
}

.topbar .btn-bell {
  color: #6B7280;
}

.topbar .btn-bell:hover {
  color: #FF4105;
}

.topbar .badge-notif {
  border-color: #ffffff;
}

.notif-item {
  white-space: normal;
}

/* ---------- Varios ---------- */

.borde-tipo {
  border-left: 5px solid;
}

.panel-alerta {
  border-left: 4px solid var(--rojo);
}

.panel-exito {
  border-left: 4px solid var(--verde);
}

.fw-semi {
  font-weight: 600;
}

.fs-08 {
  font-size: 0.8rem;
}

.progreso-delgado {
  height: 6px;
  border-radius: 999px;
}

/* Tarjetas como alternativa a tablas en movil */
.card-movil {
  border: 1px solid var(--gris-borde);
  border-radius: 0.8rem;
  background: var(--blanco);
  padding: 1rem;
}

@media (min-width: 768px) {
  .d-md-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}
