/* M06 — Torre de control, Equipo, Mapa y Detalle de promotor (prototipo del Supervisor, pantallas 2 a 5).
   Solo tokens del sistema; los colores de estado salen del prototipo. */
.cnsf-chip--en-visita { background: var(--warn-bg); color: var(--cnsf-amber-text); }
.cnsf-chip--disponible { background: var(--ok-bg); color: var(--cnsf-green); }
.cnsf-chip--fuera-de-ruta { background: var(--err-bg); color: var(--cnsf-red); }
.cnsf-chip--sin-iniciar { background: var(--surface-alt); color: var(--text-muted); }

.cnsf-osa--verde { color: var(--cnsf-green); }
.cnsf-osa--ambar { color: var(--cnsf-amber-text); }
.cnsf-osa--rojo { color: var(--cnsf-red); }
.cnsf-osa--sin-dato { color: var(--text-muted); }

.cnsf-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--cnsf-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.cnsf-avatar--grande { width: 64px; height: 64px; font-size: 22px; }

.cnsf-etiqueta-dato {
  font-size: 11px;
  font-weight: 700;
  background: var(--surface-alt);
  padding: 3px 8px;
  border-radius: 8px;
}

.cnsf-torre__encabezado { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cnsf-campana { position: relative; color: var(--text); display: inline-flex; padding: 6px; }
.cnsf-campana__globo {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--cnsf-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.cnsf-torre__alertas {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--err-bg);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 16px;
  text-decoration: none;
}

.cnsf-torre__alertas-numero {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--cnsf-red);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cnsf-torre__alertas-texto { font-size: 13px; font-weight: 700; color: var(--cnsf-red-dark); }

.cnsf-torre__resumen { margin-top: 16px; background: var(--surface-alt); border-radius: 18px; padding: 20px; }
.cnsf-torre__resumen-fila { display: flex; justify-content: space-between; align-items: center; }
.cnsf-torre__cifra { font-size: 28px; font-weight: 800; }
.cnsf-torre__cifra--verde { color: var(--cnsf-green); }
.cnsf-torre__cifra-texto { font-size: 13px; font-weight: 600; }
.cnsf-torre__osa { text-align: right; }
.cnsf-torre__osa-valor { font-size: 20px; font-weight: 800; }

.cnsf-torre__estados { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
@media (min-width: 1024px) { .cnsf-torre__estados { grid-template-columns: repeat(4, 1fr); } }
.cnsf-torre__estado { border-radius: 14px; padding: 12px 14px; }
.cnsf-torre__estado-numero { font-size: 20px; font-weight: 800; }
.cnsf-torre__estado-texto { font-size: 11.5px; font-weight: 600; color: var(--text); }
.cnsf-torre__estado--en-visita { background: var(--warn-bg); color: var(--cnsf-amber-text); }
.cnsf-torre__estado--disponible { background: var(--ok-bg); color: var(--cnsf-green); }
.cnsf-torre__estado--fuera-de-ruta { background: var(--err-bg); color: var(--cnsf-red); }
.cnsf-torre__estado--sin-iniciar { background: var(--surface-alt); color: var(--text-muted); }

.cnsf-torre__accesos { display: flex; gap: 8px; margin-top: 16px; }
.cnsf-torre__accesos .cnsf-boton { flex: 1; text-align: center; padding-left: 6px; padding-right: 6px; }
.cnsf-torre__accesos .cnsf-boton:disabled { opacity: .5; cursor: not-allowed; }
.cnsf-torre__seccion { margin-top: 20px; text-transform: uppercase; font-size: 12px; letter-spacing: .03em; }
.cnsf-torre__actividad-texto { font-weight: 400; }

.cnsf-equipo__filtros { display: flex; gap: 6px; margin: 10px 0 14px; overflow-x: auto; }
.cnsf-equipo__filtro {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 100px;
  border: none;
  background: var(--surface-alt);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-family);
}

.cnsf-equipo__filtro--activo { background: var(--cnsf-green); color: #fff; }
.cnsf-equipo__tarjeta { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.cnsf-equipo__cuerpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cnsf-equipo__metricas { display: flex; gap: 8px; }
.cnsf-equipo__perfil { display: flex; gap: 14px; align-items: center; margin: 12px 0; }
.cnsf-equipo__estado { display: flex; gap: 6px; align-items: center; border-radius: 14px; padding: 14px 16px; font-size: 13px; }
.cnsf-equipo__estado-etiqueta { font-size: 14px; font-weight: 700; }
.cnsf-equipo__renglon { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.cnsf-equipo__contacto { margin-top: 20px; }

.cnsf-mapa { height: 420px; border-radius: 16px; overflow: hidden; border: 1px solid var(--surface-soft-alt); background: var(--surface-alt); z-index: 0; }
@media (min-width: 1024px) { .cnsf-mapa { height: 560px; } }
.cnsf-mapa__leyenda { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.cnsf-mapa__leyenda-item { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; }
.cnsf-mapa__punto { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.cnsf-mapa__pin-contenedor { background: transparent; border: none; }

.cnsf-mapa__pin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.cnsf-mapa__tarjeta { margin-top: 12px; }
